diff options
author | Hans-Kristian Arntzen <post@arntzen-software.no> | 2020-06-04 16:50:28 +0300 |
---|---|---|
committer | Hans-Kristian Arntzen <post@arntzen-software.no> | 2020-06-04 16:50:28 +0300 |
commit | 275974e062743f26c294d29a47e9492bacb25175 (patch) | |
tree | 8462f18056d16966b2ccdbd6bea775d85285e32f /spirv_hlsl.cpp | |
parent | d385bf096f5dabbc4cdaeb6872b0f64be1a63ad0 (diff) |
GLSL: Implement sparse feedback.
Diffstat (limited to 'spirv_hlsl.cpp')
-rw-r--r-- | spirv_hlsl.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/spirv_hlsl.cpp b/spirv_hlsl.cpp index ce94d4ef..cfa04cf3 100644 --- a/spirv_hlsl.cpp +++ b/spirv_hlsl.cpp @@ -2607,8 +2607,11 @@ void CompilerHLSL::emit_fixup() } } -void CompilerHLSL::emit_texture_op(const Instruction &i) +void CompilerHLSL::emit_texture_op(const Instruction &i, bool sparse) { + if (sparse) + SPIRV_CROSS_THROW("Sparse feedback not yet supported in HLSL."); + auto *ops = stream(i); auto op = static_cast<Op>(i.op); uint32_t length = i.length; @@ -4886,7 +4889,7 @@ void CompilerHLSL::emit_instruction(const Instruction &instruction) } case OpImageQueryLod: - emit_texture_op(instruction); + emit_texture_op(instruction, false); break; case OpImageQuerySizeLod: |