Skip to content

Commit 8406040

Browse files
committed
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.
1 parent 180bf4b commit 8406040

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/webgpu/api/validation/resource_usages/texture/in_render_misc.spec.ts

+6
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ g.test('subresources,set_bind_group_on_same_index_depth_stencil_texture')
155155
format: 'depth24plus-stencil8',
156156
usage: GPUTextureUsage.TEXTURE_BINDING | GPUTextureUsage.RENDER_ATTACHMENT,
157157
size: [kTextureSize, kTextureSize, 1],
158+
...(t.isCompatibility && {
159+
textureBindingViewDimension: '2d-array',
160+
}),
158161
});
159162

160163
const conflictedToNonReadOnlyAttachmentBindGroup = t.createBindGroupForTest(
@@ -170,6 +173,9 @@ g.test('subresources,set_bind_group_on_same_index_depth_stencil_texture')
170173
format: 'rgba8unorm',
171174
usage: GPUTextureUsage.TEXTURE_BINDING | GPUTextureUsage.STORAGE_BINDING,
172175
size: [kTextureSize, kTextureSize, 1],
176+
...(t.isCompatibility && {
177+
textureBindingViewDimension: '2d-array',
178+
}),
173179
});
174180
const validBindGroup = t.createBindGroupForTest(
175181
colorTexture.createView({

0 commit comments

Comments
 (0)