Skip to content

Commit

Permalink
Compat: fix in-render-misc.spec.ts for compat
Browse files Browse the repository at this point in the history
In compat, have a '2d-array' view of a texture the texture
must have 'textureBindingViewDimension: '2d-array' at creation time.
  • Loading branch information
greggman committed Nov 11, 2023
1 parent 180bf4b commit 8406040
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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({
Expand Down

0 comments on commit 8406040

Please sign in to comment.