diff options
| author | Anders Leino <aleino@nvidia.com> | 2024-11-06 13:14:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-06 13:14:35 +0200 |
| commit | f8294202ce8d5658f6308eeaed634058db9bbb4b (patch) | |
| tree | 400d8379f8bd49749d0985e21eaf9e3deb5a356d /tests/bugs | |
| parent | 79056cd7e0ba261a007e21a98a6f49cb0b032e25 (diff) | |
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.
Diffstat (limited to 'tests/bugs')
| -rw-r--r-- | tests/bugs/mutating/resource-specialization-inout.slang | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/bugs/mutating/resource-specialization-inout.slang b/tests/bugs/mutating/resource-specialization-inout.slang index 78e8f44fc..d2f9a3b9e 100644 --- a/tests/bugs/mutating/resource-specialization-inout.slang +++ b/tests/bugs/mutating/resource-specialization-inout.slang @@ -1,7 +1,6 @@ // Bug related to resource specialization on unused resource typed fields. //TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj -//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu //TEST_INPUT: Texture2D(size=4, content = one):name t2D Texture2D t2D; |
