diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/spirv/texture-query-lod.slang | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/spirv/texture-query-lod.slang b/tests/spirv/texture-query-lod.slang new file mode 100644 index 000000000..ad2597466 --- /dev/null +++ b/tests/spirv/texture-query-lod.slang @@ -0,0 +1,14 @@ +//TEST:SIMPLE(filecheck=CHK): -target spirv -entry main -stage fragment +//TEST:SIMPLE(filecheck=CHK): -target spirv-asm -entry main -stage fragment + +#version 450 core + +layout (location = 0) in highp vec2 uv; +layout (location = 0) out mediump vec4 fragment; +layout (set = 0, binding = 0) uniform highp isampler2D sampler; + +void main() +{ + // CHK: OpCapability ImageQuery + fragment = vec4(textureQueryLod(sampler, uv), 0.0, 1.0); +} |
