Skip to content

Commit 25773c0

Browse files
committed
Compat: Fix readonly depth-stencil sampling
1 parent 49dd714 commit 25773c0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/webgpu/api/operation/memory_sync/texture/readonly_depth_stencil.spec.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,16 @@ testing while the other one is used for sampling.
3131
})
3232
)
3333
.beforeAllSubcases(t => {
34+
const { format } = t.params;
35+
const formatInfo = kTextureFormatInfo[format];
36+
const hasDepth = formatInfo.depth !== undefined;
37+
const hasStencil = formatInfo.stencil !== undefined;
38+
3439
t.selectDeviceForTextureFormatOrSkipTestCase(t.params.format);
40+
t.skipIf(
41+
t.isCompatibility && hasDepth && hasStencil,
42+
'compatibility mode does not support different TEXTURE_BINDING views of the same texture in a single draw calls'
43+
);
3544
})
3645
.fn(t => {
3746
const { format, depthReadOnly, stencilReadOnly } = t.params;

0 commit comments

Comments
 (0)