add runtime-initialized 'hmd_traits' struct to streamline hmd-specific checks

This commit is contained in:
amwatson
2026-05-10 19:11:17 +02:00
committed by xytovl
parent 86c19fc5cc
commit d70c1fb414
9 changed files with 261 additions and 233 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ stream_defoveator::pipeline_t & stream_defoveator::ensure_pipeline(size_t view,
// Fragment shader
auto specialization = make_specialization_constants(
int32_t(alpha),
VkBool32(need_srgb_conversion(guess_model())));
VkBool32(runtime_hmd_traits().needs_srgb_conversion));
auto fragment_shader = load_shader(device, "reprojection.frag");
vk::pipeline_builder pipeline_info{