From 5af36cf4ca7a81d91fb03cdf39e40b6b4175fa2d Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 21 Nov 2023 17:22:41 -0800 Subject: Add SPIRV intrinsics for texture footprint query. (#3345) * Add SPIRV intrinsics for texture footprint query. * Cleanup. --------- Co-authored-by: Yong He --- source/slang/slang-emit-hlsl.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/slang/slang-emit-hlsl.cpp') diff --git a/source/slang/slang-emit-hlsl.cpp b/source/slang/slang-emit-hlsl.cpp index 9b333c281..416e8b0a1 100644 --- a/source/slang/slang-emit-hlsl.cpp +++ b/source/slang/slang-emit-hlsl.cpp @@ -937,6 +937,11 @@ void HLSLSourceEmitter::emitSimpleTypeImpl(IRType* type) m_writer->emit("NvHitObject"); return; } + case kIROp_TextureFootprintType: + { + m_writer->emit("uint4"); + return; + } default: break; } -- cgit v1.2.3