From f8294202ce8d5658f6308eeaed634058db9bbb4b Mon Sep 17 00:00:00 2001 From: Anders Leino Date: Wed, 6 Nov 2024 13:14:35 +0200 Subject: Make various parameters and return types require specialization when targeting WGSL (#5483) Structured buffer types translate to array types in the WGSL emitter. WGSL doesn't allow passing runtime-sized arrays to functions. Similarly for pointers to texture handles. Also, structured buffers (runtime-sized arrays) cannot be returned in WGSL. This closes issue #5228, issue #5278 and issue #5288 by enabling specialized functions to be generated in these cases, in order to work around these constraints. --- tests/expected-failure-github.txt | 3 --- 1 file changed, 3 deletions(-) (limited to 'tests/expected-failure-github.txt') diff --git a/tests/expected-failure-github.txt b/tests/expected-failure-github.txt index 150e36ad1..dfb99eb35 100644 --- a/tests/expected-failure-github.txt +++ b/tests/expected-failure-github.txt @@ -32,7 +32,6 @@ tests/bugs/gh-3980.slang.7 syn (wgpu) tests/bugs/gh-471.slang.1 syn (wgpu) tests/bugs/gh-518.slang.2 syn (wgpu) tests/bugs/gh-566.slang.1 syn (wgpu) -tests/bugs/mutating/resource-specialization-inout.slang.1 syn (wgpu) tests/bugs/nested-switch.slang.3 syn (wgpu) tests/bugs/obfuscate-specialization-naming.slang.2 syn (wgpu) tests/bugs/op-assignment-unify-mat.slang.4 syn (wgpu) @@ -51,7 +50,6 @@ tests/compute/compile-time-loop.slang.2 syn (wgpu) tests/compute/constexpr.slang.2 syn (wgpu) tests/compute/discard-stmt.slang.2 syn (wgpu) tests/compute/func-param-legalize.slang.1 syn (wgpu) -tests/compute/func-resource-param.slang.4 syn (wgpu) tests/compute/global-init.slang.2 syn (wgpu) tests/compute/interface-shader-param-in-struct.slang.4 syn (wgpu) tests/compute/interface-shader-param.slang.5 syn (wgpu) @@ -98,5 +96,4 @@ tests/language-feature/types/opaque/return-opaque-type-in-struct.slang.2 syn (wg tests/language-feature/types/opaque/return-opaque-type.slang.1 syn (wgpu) tests/metal/groupshared-threadlocal-same-parameter.slang.4 syn (wgpu) tests/optimization/func-resource-result/func-resource-result-complex.slang.2 syn (wgpu) -tests/optimization/func-resource-result/func-resource-result-simple.slang.4 syn (wgpu) tests/pipeline/compute/compute-system-values.slang.3 syn (wgpu) -- cgit v1.2.3