diff options
| author | Yong He <yonghe@outlook.com> | 2023-11-21 17:22:41 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-21 17:22:41 -0800 |
| commit | 5af36cf4ca7a81d91fb03cdf39e40b6b4175fa2d (patch) | |
| tree | d52737e72f83c760724827691c67d0f03b9c71ea /source/slang/slang-emit-hlsl.cpp | |
| parent | 383c0ef172fb19b3b9c7270fb6429ce19fd1b332 (diff) | |
Add SPIRV intrinsics for texture footprint query. (#3345)
* Add SPIRV intrinsics for texture footprint query.
* Cleanup.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-emit-hlsl.cpp')
| -rw-r--r-- | source/slang/slang-emit-hlsl.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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; } |
