You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IG_ASSERT(it->second.Width == mFramebufferWidth && it->second.Height == mFramebufferHeight, "Size of framebuffer changed between iterations");
961
971
it->second.Data.syncForHost();
962
972
if (willBeModified)
963
973
it->second.Data.markDirtyOnHost();
964
-
return DeviceImageProxy<float>{
965
-
.DataPtr = it->second.Data.HostPtr,
966
-
.Width = it->second.Width,
967
-
.Height = it->second.Height
968
-
};
974
+
returnmapToProxyHost(it->second);
969
975
} else {
970
-
// Note: Currently only the device side is allowed to create new AOVs. This is only by design to catch some common mistakes, but if a use-case arise we might change this in the future.
app.set_help_flag("-h,--help", "Shows help message and exit");
54
54
55
55
app.add_option("scene", InputScene, "Scene file to load. Can be a Ignis scene file or a glTF file.")->required()->check(CLI::ExistingFile);
56
+
57
+
if (type != ApplicationType::Trace)
58
+
app.add_option("--continue", ContinueImage, "Image to continue rendering from. Must be an output of Ignis with embedded meta-data and the same input scene and settings.")->check(CLI::ExistingFile);
59
+
56
60
app.add_flag("-q,--quiet", Quiet, "Do not print messages into console");
57
61
app.add_flag_callback(
58
62
"-v,--verbose", [&]() { VerbosityLevel = L_DEBUG; }, "Set the verbosity level to 'debug'. Shortcut for --log-level debug");
IG_LOG(L_ERROR) << "Trying to load a previous framebuffer using an image without proper meta-data. Are you sure this image was generated with Ignis?" << std::endl;
492
+
returnfalse;
493
+
}
494
+
495
+
if (metaData.TechniqueType.has_value() && *metaData.TechniqueType != technique())
496
+
IG_LOG(L_WARNING) << "Previous framebuffer was rendered with a different technique. Previous '" << *metaData.TechniqueType << "' might be incompatible with the current '" << technique() << "'." << std::endl;
497
+
if (metaData.CameraType.has_value() && *metaData.CameraType != camera())
498
+
IG_LOG(L_WARNING) << "Previous framebuffer was rendered with a different camera. Previous '" << *metaData.CameraType << "' might be incompatible with the current '" << camera() << "'." << std::endl;
499
+
500
+
if (image.channels != 3)
501
+
image = image.castTo(3);
502
+
503
+
IG_ASSERT(mDevice, "Expected device to be available");
504
+
mDevice->resize(mFilmWidth, mFilmHeight); // Ensure the device is properly sized
0 commit comments