Merge branch 'hlsl_fix_hit_t_arg' of https://github.com/skkkksdkfak/SPIRV-Cross

This commit is contained in:
Hans-Kristian Arntzen 2023-03-21 12:21:47 +01:00
commit 202bf05386

View File

@ -6243,7 +6243,7 @@ void CompilerHLSL::emit_instruction(const Instruction &instruction)
case OpRayQueryGenerateIntersectionKHR:
{
flush_variable_declaration(ops[0]);
statement(to_expression(ops[0]), ".CommitProceduralPrimitiveHit(", ops[1], ");");
statement(to_expression(ops[0]), ".CommitProceduralPrimitiveHit(", to_expression(ops[1]), ");");
break;
}
case OpRayQueryConfirmIntersectionKHR: