Add logic to allow lazy rendering
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user