From f086cd021e597fec4586d72c58a899e5931383ec Mon Sep 17 00:00:00 2001 From: skkkksdkfak Date: Fri, 24 Feb 2023 11:00:41 +0100 Subject: [PATCH] Fix argument for CommitProceduralPrimitiveHit. --- spirv_hlsl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spirv_hlsl.cpp b/spirv_hlsl.cpp index 23ad2bf1..edbbdeeb 100644 --- a/spirv_hlsl.cpp +++ b/spirv_hlsl.cpp @@ -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: