From eb4ee724763ae5b9386d0f32e32eef4fc81a49a9 Mon Sep 17 00:00:00 2001 From: Anders Leino Date: Wed, 20 Nov 2024 19:12:29 +0200 Subject: 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 --- tests/compute/texture-sampling-no-1d-arrays.slang | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tests') 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; -- cgit v1.2.3