From ccf2611c024ab12dcccd978f3f501d4ee9fc52bc Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 2 Oct 2023 03:33:58 -0700 Subject: Add SPIRV intrinsics for ShaderExecutionReordering and RW/Buffer. (#3252) * Add SPIRV intrinsics for ShaderExecutionReordering. * Add intrinsics for `Buffer` and `RWBuffer`. * Various spirv fixes. * Marshal bool vector type. * Inline global constants + OpFOrdNotEqual->OpFUnordNotEqual. * Fix. --------- Co-authored-by: Yong He --- source/slang/slang-emit-spirv-ops.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/slang/slang-emit-spirv-ops.h') diff --git a/source/slang/slang-emit-spirv-ops.h b/source/slang/slang-emit-spirv-ops.h index 9bd645e5d..f64fc7f9a 100644 --- a/source/slang/slang-emit-spirv-ops.h +++ b/source/slang/slang-emit-spirv-ops.h @@ -311,6 +311,13 @@ SpvInst* emitOpTypeRayQuery(IRInst* inst) ); } +SpvInst* emitOpTypeHitObject(IRInst* inst) +{ + return emitInstMemoized( + getSection(SpvLogicalSectionID::ConstantsAndTypes), inst, SpvOpTypeHitObjectNV, kResultID + ); +} + // https://registry.khronos.org/SPIR-V/specs/unified1/SPIRV.html#OpTypeArray template SpvInst* emitOpTypeArray(IRInst* inst, const T1& elementType, const T2& length) -- cgit v1.2.3