diff options
Diffstat (limited to 'tests/language-feature/capability')
| -rw-r--r-- | tests/language-feature/capability/capability-invalid-fragment-in-compute.slang | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/tests/language-feature/capability/capability-invalid-fragment-in-compute.slang b/tests/language-feature/capability/capability-invalid-fragment-in-compute.slang index 946ba4470..ccf834167 100644 --- a/tests/language-feature/capability/capability-invalid-fragment-in-compute.slang +++ b/tests/language-feature/capability/capability-invalid-fragment-in-compute.slang @@ -1,7 +1,7 @@ -//TEST:SIMPLE(filecheck=CHECK): -target hlsl -emit-spirv-directly -entry computeMain -stage compute -allow-glsl -DPRE -//TEST:SIMPLE(filecheck=CHECK): -target hlsl -emit-spirv-directly -entry computeMain -stage compute -allow-glsl -DPOST -//TEST:SIMPLE(filecheck=CHECK_IGNORE_CAPS): -target hlsl -emit-spirv-directly -entry computeMain -stage compute -allow-glsl -ignore-capabilities -DPRE -//TEST:SIMPLE(filecheck=CHECK_IGNORE_CAPS): -target hlsl -emit-spirv-directly -entry computeMain -stage compute -allow-glsl -ignore-capabilities -DPOST +//TEST:SIMPLE(filecheck=CHECK): -target hlsl -emit-spirv-directly -entry computeMain -stage compute -allow-glsl +//TEST:SIMPLE(filecheck=CHECK): -target hlsl -emit-spirv-directly -entry computeMain -stage compute -allow-glsl +//TEST:SIMPLE(filecheck=CHECK_IGNORE_CAPS): -target hlsl -emit-spirv-directly -entry computeMain -stage compute -allow-glsl -ignore-capabilities +//TEST:SIMPLE(filecheck=CHECK_IGNORE_CAPS): -target hlsl -emit-spirv-directly -entry computeMain -stage compute -allow-glsl -ignore-capabilities // CHECK_IGNORE_CAPS-NOT: error 36107 // CHECK: error 36107 @@ -11,11 +11,5 @@ Texture2D<int> rw; [numthreads(1,1,1)] void computeMain() { -#ifdef PRE - rw.Load(0); -#endif - clip(0.0f); -#ifdef POST - rw.Load(0); -#endif + clip(0.0f); // clip is not supported in compute shader, so this throws an error. }
\ No newline at end of file |
