diff options
| author | Darren Wihandi <65404740+fairywreath@users.noreply.github.com> | 2025-01-08 22:50:57 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-08 19:50:57 -0800 |
| commit | 2249d6ffb19e4db8580c76ccb04ab4ca3ddc8394 (patch) | |
| tree | a5d975e79c60fe735a5d9f5948a5534e3a37ec5b /tests/spirv | |
| parent | 63b8d9e1d0b0bba66f13013aa6b80bd9fab4036b (diff) | |
Add SampleCmpLevel intrinsics (#6004)
* add SampleCmpLevel intrinsics
* update tests
* fix typo
* fix broken glsl test
* refactor SampleCmpLevelZero
* fix metallib test
* fix broken test on dx12
---------
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'tests/spirv')
| -rw-r--r-- | tests/spirv/sampler-shadow.slang | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/spirv/sampler-shadow.slang b/tests/spirv/sampler-shadow.slang index 89bdbc405..35b96e746 100644 --- a/tests/spirv/sampler-shadow.slang +++ b/tests/spirv/sampler-shadow.slang @@ -1,6 +1,7 @@ //TEST:SIMPLE(filecheck=CHECK): -target spirv // CHECK: OpImageSampleDrefExplicitLod +// CHECK: OpImageSampleDrefExplicitLod Sampler2DShadow ss; @@ -10,4 +11,7 @@ RWStructuredBuffer<float> output; void computeMain() { output[0] = ss.SampleCmpLevelZero(float2(0.0), 0.5); -}
\ No newline at end of file + + float level = 1.5; + output[1] = ss.SampleCmpLevel(float2(0.0), 0.5, level); +} |
