From fa00850a03941d68cab6125cd74d3681417ea4f6 Mon Sep 17 00:00:00 2001 From: crocdialer Date: Sat, 12 Oct 2024 11:22:00 +0200 Subject: [PATCH] CLI option to disable mesh-sahder --- projects/pbr_viewer/pbr_viewer_load_store.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/pbr_viewer/pbr_viewer_load_store.cpp b/projects/pbr_viewer/pbr_viewer_load_store.cpp index 3c03ea9..416b56e 100644 --- a/projects/pbr_viewer/pbr_viewer_load_store.cpp +++ b/projects/pbr_viewer/pbr_viewer_load_store.cpp @@ -713,7 +713,8 @@ bool PBRViewer::parse_override_settings(int argc, char *argv[]) options.add_options()("no-validation", "disable vulkan validation"); options.add_options()("l,labels", "enable vulkan debug-labels"); options.add_options()("no-labels", "disable vulkan debug-labels"); - options.add_options()("no-raytracing", "disable vulkan raytracing-extensions"); + options.add_options()("no-raytracing", "disable vulkan raytracing extensions"); + options.add_options()("no-mesh-shader", "disable vulkan mesh-shader extensions"); options.add_options()("files", "provided input files", cxxopts::value>()); options.parse_positional("files"); @@ -778,6 +779,7 @@ bool PBRViewer::parse_override_settings(int argc, char *argv[]) m_settings.enable_ray_query_features = false; m_settings.enable_raytracing_pipeline_features = false; } + if(result.count("no-mesh-shader")) { m_settings.enable_mesh_shader_device_features = false; } spdlog::set_level(m_settings.log_level); return true; } \ No newline at end of file