Add logic to allow lazy rendering

This commit is contained in:
Georg Hagen
2024-07-01 21:13:21 +02:00
parent 3dd7269470
commit 142c683c7f
4 changed files with 18 additions and 5 deletions

View File

@@ -17,9 +17,10 @@ namespace OpenVulkano
{
namespace
{
const char *NUM_THREADS_STR = "num_threads";
const char *FRAMEBUFFER_CLEAR_COLOR_STR = "framebuffer_clear_color";
const char *PREFER_FRAMEBUFFER_FORMAT_SRGB_STR = "prefer_framebuffer_format_srgb";
const char* NUM_THREADS_STR = "NumThreads";
const char* FRAMEBUFFER_CLEAR_COLOR_STR = "FramebufferClearColor";
const char* PREFER_FRAMEBUFFER_FORMAT_SRGB_STR = "PreferFramebufferFormatSRGB";
const char* LAZY_RENDERING_STR = "LazyRendering";
}
EngineConfiguration::EngineConfiguration()
@@ -50,6 +51,11 @@ namespace OpenVulkano
{
root[PREFER_FRAMEBUFFER_FORMAT_SRGB_STR] >> m_preferFramebufferFormatSRGB;
}
if (root.has_child(LAZY_RENDERING_STR))
{
root[LAZY_RENDERING_STR] >> m_lazyRendering;
}
}
EngineConfiguration* EngineConfiguration::GetEngineConfiguration()