diff options
| author | Anders Leino <aleino@nvidia.com> | 2024-11-20 19:12:29 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-20 09:12:29 -0800 |
| commit | eb4ee724763ae5b9386d0f32e32eef4fc81a49a9 (patch) | |
| tree | d2d06885201e447ba9d5e3897e5d546c9e26f453 /tests/compute | |
| parent | 00765c3d5fd81267ad22255ff5d1f103b0959e10 (diff) | |
Enable WGPU texture sampling test (#5617)
* Limit number of MIP levels on 1d textures to be 1
This avoids running into a WebGPU limitation, and helps to address issue #4943.
* Update Slang-RHI to get WGPU fixes
* Enable WGPU texture sampling test
This helps to address issue #4943.
---------
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'tests/compute')
| -rw-r--r-- | tests/compute/texture-sampling-no-1d-arrays.slang | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/compute/texture-sampling-no-1d-arrays.slang b/tests/compute/texture-sampling-no-1d-arrays.slang index ed982ef70..f95050fca 100644 --- a/tests/compute/texture-sampling-no-1d-arrays.slang +++ b/tests/compute/texture-sampling-no-1d-arrays.slang @@ -3,7 +3,9 @@ //TEST(compute):COMPARE_RENDER_COMPUTE: -shaderobj -output-using-type -mtl -//TEST_INPUT: Texture1D(size=4, content = one):name=t1D +// WebGPU only supports 1 MIP level for 1d textures +// https://www.w3.org/TR/webgpu/#abstract-opdef-maximum-miplevel-count +//TEST_INPUT: Texture1D(size=4, content = one, mipMaps=1):name=t1D //TEST_INPUT: Texture2D(size=4, content = one):name=t2D //TEST_INPUT: Texture3D(size=4, content = one):name=t3D //TEST_INPUT: TextureCube(size=4, content = one):name=tCube @@ -12,9 +14,6 @@ //TEST_INPUT: Sampler:name=samplerState //TEST_INPUT: ubuffer(data=[0 0 0 0], stride=4):out,name=outputBuffer -// There are still some issues to fix in RHI, see issue #4943 -//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -wgpu - Texture1D t1D; Texture2D t2D; Texture3D t3D; |
