Skip to content

Commit 0d0ce46

Browse files
committed
Refactor copyTextureToTexture test for texture formats
Also expanded the multisample depth test and add multisample stencil placeholder. Issue: gpuweb#4181
1 parent b1b1ae6 commit 0d0ce46

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/webgpu/gpu_test.ts

+5
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,11 @@ export class GPUTestBase extends Fixture<GPUTestSubcaseBatchState> {
535535
if (isCompatibilityDevice(this.device)) {
536536
this.skip(`texture format '${format}' is not supported`);
537537
}
538+
const feature = getRequiredFeatureForTextureFormat(format);
539+
this.skipIf(
540+
!!feature && !this.device.features.has(feature),
541+
`texture format '${format}' requires feature: '${feature}`
542+
);
538543
}
539544
const feature = getRequiredFeatureForTextureFormat(format);
540545
this.skipIf(

0 commit comments

Comments
 (0)