Skip to content

Commit 93f5d13

Browse files
authored
Refresh of disabled WGPU tests (shader-slang#5614)
Some tests are now passing and are enabled. Other tests are still failing, but are given comments categorizing the failures. Tests in the 'Not supported in WGSL' category are also removed from the expected failures list. (Though they are still kept disabled for WebGPU, of course.) This closes shader-slang#5519.
1 parent e9caf5d commit 93f5d13

39 files changed

+32
-32
lines changed

tests/autodiff/custom-intrinsic.slang

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute -shaderobj -output-using-type
22
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj -output-using-type
3+
// slang-test/WGPU: IR opcode during code emit #5263
34
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
45

56
//TEST_INPUT:ubuffer(data=[0 0 0 0 0], stride=4):out,name=outputBuffer

tests/autodiff/diff-ptr-type-array.slang

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK): -shaderobj -output-using-type
22
//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK): -vk -shaderobj -output-using-type
3+
// WGSL: Runtime-sized arrays not in 'storage' address space are being generated #5613
34
//DISABLE_TEST(compute):COMPARE_COMPUTE:-wgpu
45

56
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name=outputBuffer

tests/bugs/atomic-coerce.slang

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj
22
//TEST(compute,vulkan):COMPARE_COMPUTE_EX:-vk -slang -compute -shaderobj
33
//TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
4+
// Not supported in WGSL: Use of traditional atomics intrinsics (InterlockedXXX functions)
45
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
56

67
//TEST_INPUT:ubuffer(data=[0 0 0 0 ], stride=4):out,name outputBuffer

tests/bugs/buffer-swizzle-store.slang

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj -output-using-type
22
//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute -shaderobj -output-using-type
33
//TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl -output-using-type
4+
// Slang-RHI/WGPU: Invalid bind group layout entry used #5612
45
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
56

67
//TEST_INPUT: RWTexture2D(format=R16G16_FLOAT, size=4, content = one, mipMaps = 1):name g_test

tests/bugs/dxbc-double-problem.slang

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
//TEST(compute):COMPARE_COMPUTE_EX:-dx12 -compute -use-dxil -output-using-type -shaderobj
55
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-dx12 -compute -output-using-type -shaderobj
66
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
7+
// Not supported in WGSL: Double and other unsupported scalar types
78
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
89

910
// The problem this test shows is around handling of double with dxbc on D3D12. In that combination

tests/bugs/frexp-double.slang

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//TEST(smoke,compute):COMPARE_COMPUTE(filecheck-buffer=BUF):-cuda -output-using-type
77
//metal currently does not support `double`
88
//DISABLE_TEST(smoke,compute):COMPARE_COMPUTE(filecheck-buffer=BUF):-slang -shaderobj -mtl -output-using-type
9+
// Not supported in WGSL: Double and other unsupported scalar types
910
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
1011

1112
// BUF: type: int32_t

tests/bugs/gh-3980.slang

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
//TEST(compute):COMPARE_COMPUTE_EX(filecheck-buffer=BUF):-cpu -compute -output-using-type
66
//TEST(compute):COMPARE_COMPUTE_EX(filecheck-buffer=BUF):-cuda -compute -output-using-type
77
//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=BUF):-slang -shaderobj -mtl -output-using-type
8-
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
98

109
// Slang removes parentheses characters for the bitwise operators when they are not needed.
1110
// DXC prints warning messages even when the expression is correct.

tests/bugs/gh-518.slang

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj
22
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -dx12 -shaderobj
33
//TEST_DISABLED(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute -shaderobj
4+
// Not supported in WGSL: Arrays of textures or buffers
45
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
56

67
// Note: can't actually test this on Vulkan right now because

tests/bugs/op-assignment-unify-mat.slang

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj
44
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj -cpu
55
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
6+
// Not supported in WGSL: Integer matrices
67
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
78

89
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name outputBuffer

tests/compute/atomics-buffer.slang

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// RWBuffer does not work with the GFX backend as expected with Metal
1313
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
1414
//TEST:SIMPLE(filecheck=METALLIB): -target metallib -stage compute -entry computeMain
15+
// Not supported in WGSL: Use of traditional atomics intrinsics (InterlockedXXX functions)
1516
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -wgpu
1617

1718
//METALLIB: @computeMain

tests/compute/atomics-groupshared.slang

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -vk -shaderobj
66
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -cuda -shaderobj
77
//TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
8+
// Not supported in WGSL: Use of traditional atomics intrinsics (InterlockedXXX functions)
89
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -wgpu
910

1011
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name outputBuffer

tests/compute/atomics.slang

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -vk -shaderobj
66
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -cuda -shaderobj
77
//TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
8+
// Not supported in WGSL: Use of traditional atomics intrinsics (InterlockedXXX functions)
89
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -wgpu
910

1011
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out, name outputBuffer

tests/compute/buffer-type-splitting.slang

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//TEST(compute):COMPARE_COMPUTE:-cpu
22
//TEST(compute):COMPARE_COMPUTE: -shaderobj
33
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
4+
// Not supported in WGSL: Arrays of textures or buffers
45
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -wgpu
56

67
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name=outputBuffer

tests/compute/constant-buffer-memory-packing.slang

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
//TEST(compute, vulkan):COMPARE_COMPUTE_EX(filecheck-buffer=BUF):-vk -compute
1010
//TEST(compute):COMPARE_COMPUTE_EX(filecheck-buffer=BUF):-mtl -compute
1111

12-
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
1312

1413
// CPP/CUDA due to natural layout rules will recieve the following ROW matrix:
1514
// {1,2,3}

tests/compute/constexpr.slang

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
//TEST(compute):COMPARE_COMPUTE_EX:-slang -gcompute -shaderobj
33
//DISABLED://TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -gcompute -shaderobj
44
//TEST(compute):COMPARE_COMPUTE_EX:-mtl -gcompute -shaderobj
5-
//DISABLE_TEST(compute):COMPARE_COMPUTE:-wgpu
65

76
//TEST_INPUT: Texture2D(size=4, content = one):name tex
87
//TEST_INPUT: Sampler:name samp

tests/compute/func-cbuffer-param.slang

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute -shaderobj
1111
//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-cpu -compute -shaderobj
1212

13-
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
1413

1514
struct Data
1615
{

tests/compute/interface-shader-param-in-struct.slang

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -dx12 -profile sm_6_0 -use-dxil
88
//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute
99
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
10+
// Passing, but: slang-test: Test context Slang session is leaking #5610
1011
//DISABLE_TEST(compute):COMPARE_COMPUTE:-wgpu
1112

1213
// A lot of the setup is the same as for `interface-shader-param`,

tests/compute/interface-shader-param.slang

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute
1010
//TEST(compute):COMPARE_COMPUTE_EX:-cpu -compute
1111
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
12+
// Passing, but: slang-test: Test context Slang session is leaking #5610
1213
//DISABLE_TEST(compute):COMPARE_COMPUTE:-wgpu
1314

1415
// First we will define some fake interfaces for testing.

tests/compute/loop-unroll.slang

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
// Note VK output is not loop unrolled
77
//TEST(compute):COMPARE_COMPUTE:-vk -shaderobj
88
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
9+
// Not supported in WGSL: Arrays of textures or buffers
910
//DISABLE_TEST(compute):COMPARE_COMPUTE:-wgpu
1011

1112
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out, name buffers[0]

tests/compute/matrix-layout.hlsl

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -xslang -matrix-layout-row-major -shaderobj
1111
//TEST(compute,compatibility-issue):COMPARE_COMPUTE_EX:-slang -compute -dx12 -use-dxil -xslang -matrix-layout-row-major -shaderobj
1212
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
13-
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
1413

1514
// Not testing on Vulkan because of lack of support
1615
// for integer matrices in GLSL. Slang needs to

tests/compute/texture-get-dimensions.slang

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//DISABLE_TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute -shaderobj
77
// TODO(JS): Doesn't work on CUDA as there aren't any CUDA functions to get dimensions.
88
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-cuda -compute -shaderobj
9+
// Not supported in WGSL: 1D array texture not supported in WGSL
910
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -wgpu
1011

1112
//TEST_INPUT: Texture1D(size=4, content = one):name t1D

tests/compute/texture-sampling.slang

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
//TEST_INPUT: Sampler:name=samplerState
1414
//TEST_INPUT: ubuffer(data=[0 0 0 0], stride=4):out,name=outputBuffer
1515
// There is no texture_1d_array type in WGSL https://github.com/shader-slang/slang/issues/5223
16+
// Not supported in WGSL: 1D array texture not supported in WGSL
1617
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -wgpu
1718

1819
Texture1D t1D;

tests/compute/texture-simple.slang

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
//DISABLE_TEST_INPUT: Texture1D(format=R_Float32, size=4, content = one, mipMaps=1):name tLoad1D
1010
//Texture1D<float> tLoad1D;
1111

12+
// Not supported in WGSL: 1D array texture not supported in WGSL
1213
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -wgpu
1314

1415
//TEST_INPUT: Texture1D(size=4, content = one):name t1D

tests/compute/transcendental-double.slang

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// When using double on vulkan the values are incorrect(!)
88
//DISABLE_TEST(compute,vulkan):COMPARE_COMPUTE:-vk -output-using-type -shaderobj
99
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
10+
// Not supported in WGSL: Double and other unsupported scalar types
1011
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -wgpu
1112

1213
//TEST_INPUT:ubuffer(data=[0 0 0 0 0 0 0 0], stride=4):out,name=outputBuffer

tests/expected-failure-github.txt

-26
Original file line numberDiff line numberDiff line change
@@ -6,40 +6,14 @@ tests/language-feature/saturated-cooperation/fuse.slang (vk)
66
tests/bugs/byte-address-buffer-interlocked-add-f32.slang (vk)
77
tests/serialization/obfuscated-serialized-module-test.slang.2 syn (mtl)
88
tests/autodiff/custom-intrinsic.slang.2 syn (wgpu)
9-
tests/bugs/atomic-coerce.slang.3 syn (wgpu)
109
tests/bugs/buffer-swizzle-store.slang.3 syn (wgpu)
11-
tests/bugs/dxbc-double-problem.slang.6 syn (wgpu)
12-
tests/bugs/frexp-double.slang.7 syn (wgpu)
13-
tests/bugs/gh-3980.slang.7 syn (wgpu)
14-
tests/bugs/gh-518.slang.2 syn (wgpu)
15-
tests/bugs/op-assignment-unify-mat.slang.4 syn (wgpu)
16-
tests/bugs/user-attribute-lookup.slang.2 syn (wgpu)
17-
tests/compute/atomics (wgpu)
18-
tests/compute/atomics-buffer (wgpu)
19-
tests/compute/atomics-groupshared (wgpu)
20-
tests/compute/buffer-type-splitting (wgpu)
21-
tests/compute/constant-buffer-memory-packing.slang.6 syn (wgpu)
22-
tests/compute/constexpr.slang.2 syn (wgpu)
23-
tests/compute/func-cbuffer-param.slang.4 syn (wgpu)
2410
tests/compute/interface-shader-param-in-struct.slang.4 syn (wgpu)
2511
tests/compute/interface-shader-param.slang.5 syn (wgpu)
26-
tests/compute/loop-unroll.slang.7 syn (wgpu)
27-
tests/compute/matrix-layout.hlsl.3 syn (wgpu)
28-
tests/compute/texture-get-dimensions (wgpu)
29-
tests/compute/texture-sampling (wgpu)
30-
tests/compute/texture-simple (wgpu)
31-
tests/compute/transcendental-double (wgpu)
3212
tests/hlsl-intrinsic/byte-address-buffer/byte-address-struct.slang.5 syn (wgpu)
33-
tests/hlsl-intrinsic/classify-double.slang.6 syn (wgpu)
34-
tests/hlsl-intrinsic/matrix-float.slang.6 syn (wgpu)
35-
tests/hlsl-intrinsic/matrix-int.slang.6 syn (wgpu)
36-
tests/hlsl-intrinsic/scalar-double-simple.slang.7 syn (wgpu)
37-
tests/hlsl/packoffset.slang.5 syn (wgpu)
3813
tests/language-feature/constants/static-const-in-generic-interface.slang.1 syn (wgpu)
3914
tests/language-feature/enums/strongly-typed-id.slang.1 syn (wgpu)
4015
tests/language-feature/generics/tuple.slang.1 syn (wgpu)
4116
tests/language-feature/generics/variadic-0.slang.4 syn (wgpu)
4217
tests/language-feature/shader-params/interface-shader-param-ordinary.slang.4 syn (wgpu)
4318
tests/language-feature/swizzles/matrix-swizzle-write-array.slang.3 syn (wgpu)
4419
tests/language-feature/swizzles/matrix-swizzle-write-swizzle.slang.3 syn (wgpu)
45-
tests/optimization/func-resource-result/func-resource-result-complex.slang.2 syn (wgpu)

tests/hlsl-intrinsic/byte-address-buffer/byte-address-struct.slang

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -dx12 -use-dxil -shaderobj
1010
//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-slang -vk -compute -shaderobj
1111
//TEST(compute):COMPARE_COMPUTE_EX:-slang -cuda -compute -shaderobj
12+
// WGSL: Signed int initialized using unsigned int #5283
1213
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
1314

1415
// Note: This input should really be just a `ByteAddressBuffer`,

tests/hlsl-intrinsic/classify-double.slang

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute -shaderobj -render-feature double
55
//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-cuda -compute -shaderobj
66
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
7+
// Not supported in WGSL: Double and other unsupported scalar types
78
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
89

910
// inf, -inf, nan, finite

tests/hlsl-intrinsic/matrix-float.slang

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//DISABLE_TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute -output-using-type -shaderobj
88
//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-cuda -compute -output-using-type -shaderobj
99
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
10+
// Not supported in WGSL: Integer matrices, Double and other unsupported scalar types
1011
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
1112

1213
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name outputBuffer

tests/hlsl-intrinsic/matrix-int.slang

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//DISABLE_TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute -shaderobj
77
//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-cuda -compute -shaderobj
88
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
9+
// Not supported in WGSL: Integer matrices
910
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
1011

1112
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name outputBuffer

tests/hlsl-intrinsic/scalar-double-simple.slang

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute -shaderobj -render-feature double
99
//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-cuda -compute -shaderobj
1010
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
11+
// Not supported in WGSL: Double and other unsupported scalar types
1112
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
1213

1314
//TEST_INPUT:ubuffer(data=[0 0 0 0 0 0 0 0], stride=4):out,name outputBuffer

tests/hlsl/packoffset.slang

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// Metal does not support custom data layout.
77
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
88

9-
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
109

1110
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name=outputBuffer
1211
RWStructuredBuffer<float> outputBuffer;

tests/language-feature/constants/static-const-in-generic-interface.slang

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// static-const-in-generic-interface.slang
22

33
//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK): -shaderobj
4+
// WGSL: Functions cannot be called at module scope #5607
45
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
56

67
// Test that `static const` variable declarations inside of

tests/language-feature/enums/strongly-typed-id.slang

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK): -shaderobj
2+
// WGSL: No matching overload for operator... #5606
23
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
34

45
enum MyId : uint {}

tests/language-feature/generics/tuple.slang

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK): -shaderobj -output-using-type
2+
// WGPU: f16 extension not allowed in current environment #5605
23
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
34

45
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name=outputBuffer

tests/language-feature/generics/variadic-0.slang

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK): -shaderobj -output-using-type
22
//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK): -cpu -shaderobj -output-using-type
33
//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK): -vk -shaderobj -output-using-type
4+
// WGPU: f16 extension not allowed in current environment #5605
45
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
56

67
//TEST:SIMPLE(filecheck=CHECK): -target glsl

tests/language-feature/shader-params/interface-shader-param-ordinary.slang

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -dx12 -profile sm_6_0 -use-dxil
1010
//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute
1111
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
12+
// Slang-RHI/WGPU: Too small buffer is bound #5604
1213
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
1314

1415
interface IModifier

tests/language-feature/swizzles/matrix-swizzle-write-array.slang

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//TEST(compute):COMPARE_COMPUTE: -compute -shaderobj -output-using-type
22
//TEST(compute, vulkan):COMPARE_COMPUTE: -vk -compute -shaderobj -output-using-type
33
//TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl -output-using-type
4+
// WGSL: Assign to swizzle expression not allowed #5603
45
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
56

67
// Test that matrix swizzle writes work correctly

tests/language-feature/swizzles/matrix-swizzle-write-swizzle.slang

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//TEST(compute):COMPARE_COMPUTE: -compute -shaderobj -output-using-type
22
//TEST(compute, vulkan):COMPARE_COMPUTE: -vk -compute -shaderobj -output-using-type
33
//TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl -output-using-type
4+
// WGSL: Assign to swizzle expression not allowed #5603
45
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
56

67
// Test that writing to swizzles of matrix swizzles works correctly

tests/optimization/func-resource-result/func-resource-result-complex.slang

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj
44
//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute -shaderobj
5+
// Not supported in WGSL: Arrays of textures or buffers
56
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
67

78
// Test that a function that returns a resource type can be

0 commit comments

Comments
 (0)