From 840604023d8575255b5191e61821083c14d2718c Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Fri, 10 Nov 2023 16:00:59 +0900 Subject: [PATCH] Compat: fix in-render-misc.spec.ts for compat In compat, have a '2d-array' view of a texture the texture must have 'textureBindingViewDimension: '2d-array' at creation time. --- .../resource_usages/texture/in_render_misc.spec.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/webgpu/api/validation/resource_usages/texture/in_render_misc.spec.ts b/src/webgpu/api/validation/resource_usages/texture/in_render_misc.spec.ts index 1b80a2f73e9c..b52967743918 100644 --- a/src/webgpu/api/validation/resource_usages/texture/in_render_misc.spec.ts +++ b/src/webgpu/api/validation/resource_usages/texture/in_render_misc.spec.ts @@ -155,6 +155,9 @@ g.test('subresources,set_bind_group_on_same_index_depth_stencil_texture') format: 'depth24plus-stencil8', usage: GPUTextureUsage.TEXTURE_BINDING | GPUTextureUsage.RENDER_ATTACHMENT, size: [kTextureSize, kTextureSize, 1], + ...(t.isCompatibility && { + textureBindingViewDimension: '2d-array', + }), }); const conflictedToNonReadOnlyAttachmentBindGroup = t.createBindGroupForTest( @@ -170,6 +173,9 @@ g.test('subresources,set_bind_group_on_same_index_depth_stencil_texture') format: 'rgba8unorm', usage: GPUTextureUsage.TEXTURE_BINDING | GPUTextureUsage.STORAGE_BINDING, size: [kTextureSize, kTextureSize, 1], + ...(t.isCompatibility && { + textureBindingViewDimension: '2d-array', + }), }); const validBindGroup = t.createBindGroupForTest( colorTexture.createView({