Skip to content

Commit 5a67cd5

Browse files
committed
Fix textureLoad test for multisampled textures
Multisampled textures are required to have RENDER_ATTACHMENT usage. This was working by accident as `createTextureWithRandopmDataAndGetTexels` as adding the RENDER_ATTACHMENT usage. That usage addition is removed in this PR so the bug that it was not added here surfaced.
1 parent c73636f commit 5a67cd5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/webgpu/shader/execution/expression/call/builtin/textureLoad.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,10 @@ Parameters:
369369
const descriptor: GPUTextureDescriptor = {
370370
format,
371371
size: [8, 8],
372-
usage: GPUTextureUsage.COPY_DST | GPUTextureUsage.TEXTURE_BINDING,
372+
usage:
373+
GPUTextureUsage.COPY_DST |
374+
GPUTextureUsage.TEXTURE_BINDING |
375+
GPUTextureUsage.RENDER_ATTACHMENT,
373376
sampleCount,
374377
};
375378
const { texels, texture } = await createTextureWithRandomDataAndGetTexels(t, descriptor);

0 commit comments

Comments
 (0)