Skip to content

Commit fb1f8ec

Browse files
committed
enable some validation features in RenderManager
1 parent 695bc18 commit fb1f8ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

library/graphics/RenderManager.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,11 @@ namespace gf {
508508
.enable_validation_layers()
509509
.enable_extension(VK_EXT_DEBUG_UTILS_EXTENSION_NAME)
510510
.set_debug_callback(&debug_callback)
511+
#ifndef NDEBUG
512+
.add_validation_feature_enable(VK_VALIDATION_FEATURE_ENABLE_GPU_ASSISTED_EXT)
511513
// .add_validation_feature_enable(VK_VALIDATION_FEATURE_ENABLE_BEST_PRACTICES_EXT)
514+
.add_validation_feature_enable(VK_VALIDATION_FEATURE_ENABLE_SYNCHRONIZATION_VALIDATION_EXT)
515+
#endif
512516
;
513517

514518
// for (auto extension : extension_names) {

0 commit comments

Comments
 (0)