diff options
Diffstat (limited to 'tests/hlsl/simple')
| -rw-r--r-- | tests/hlsl/simple/allow-uav-conditional.hlsl | 4 | ||||
| -rw-r--r-- | tests/hlsl/simple/compute-numthreads.hlsl | 4 | ||||
| -rw-r--r-- | tests/hlsl/simple/literal-typing.hlsl | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/tests/hlsl/simple/allow-uav-conditional.hlsl b/tests/hlsl/simple/allow-uav-conditional.hlsl index 1526244a2..3f12c9be8 100644 --- a/tests/hlsl/simple/allow-uav-conditional.hlsl +++ b/tests/hlsl/simple/allow-uav-conditional.hlsl @@ -2,6 +2,10 @@ // Check output for `[allow_uav_conditional]` +#ifndef __SLANG__ +#define gBuffer _SV07gBuffer +#endif + RWStructuredBuffer<uint> gBuffer : register(u0); [numthreads(16,1,1)] diff --git a/tests/hlsl/simple/compute-numthreads.hlsl b/tests/hlsl/simple/compute-numthreads.hlsl index ba18a8d16..4f3291671 100644 --- a/tests/hlsl/simple/compute-numthreads.hlsl +++ b/tests/hlsl/simple/compute-numthreads.hlsl @@ -2,6 +2,10 @@ // Confirm that we properly pass along the `numthreads` attribute on an entry point. +#ifndef __SLANG__ +#define b _SV01b +#endif + RWStructuredBuffer<float> b; [numthreads(32,1,1)] diff --git a/tests/hlsl/simple/literal-typing.hlsl b/tests/hlsl/simple/literal-typing.hlsl index 359b875f9..48ea5b2cb 100644 --- a/tests/hlsl/simple/literal-typing.hlsl +++ b/tests/hlsl/simple/literal-typing.hlsl @@ -17,6 +17,10 @@ Bad foo(int x) { Bad b; b.bad = x; return b; } // we either respect the suffix and call the right overload, // or ignore it and call the wrong one. +#ifndef __SLANG__ +#define b _SV01b +#endif + RWStructuredBuffer<uint> b; [numthreads(32,1,1)] void main(uint3 tid : SV_DispatchThreadID) |
