Skip to content

Commit

Permalink
Merge pull request #2389 from rdb/patch-1
Browse files Browse the repository at this point in the history
Allow empty structs in legacy HLSL
  • Loading branch information
HansKristian-Work authored Oct 14, 2024
2 parents b28b355 + 46ba543 commit 5f48411
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spirv_hlsl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6725,6 +6725,7 @@ string CompilerHLSL::compile()
backend.support_case_fallthrough = false;
backend.force_merged_mesh_block = get_execution_model() == ExecutionModelMeshEXT;
backend.force_gl_in_out_block = backend.force_merged_mesh_block;
backend.supports_empty_struct = hlsl_options.shader_model <= 30;

// SM 4.1 does not support precise for some reason.
backend.support_precise_qualifier = hlsl_options.shader_model >= 50 || hlsl_options.shader_model == 40;
Expand Down

0 comments on commit 5f48411

Please sign in to comment.