Skip to content

Commit 75309ac

Browse files
committed
Compat: Fix pipeline_bind_group_compat.spec.ts for 0 storage bufs/texs
1 parent 9273480 commit 75309ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/webgpu/api/validation/encoding/programmable/pipeline_bind_group_compat.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ g.test('buffer_binding,render_pipeline')
534534

535535
t.skipIf(
536536
(type === 'storage' || type === 'read-only-storage') &&
537-
t.isCompatibility &&
537+
t.isCompatiblity &&
538538
!(t.device.limits.maxStorageBuffersInFragmentStage! > 1),
539539
`maxStorageBuffersInFragmentStage(${t.device.limits.maxStorageBuffersInFragmentStage}) is not >= 1`
540540
);
@@ -788,14 +788,14 @@ g.test('bgl_resource_type_mismatch')
788788

789789
t.skipIf(
790790
t.isCompatibility &&
791-
resourceIsStorageTexture(plResourceType) &&
791+
(resourceIsStorageTexture(plResourceType) || resourceIsStorageTexture(bgResourceType)) &&
792792
!(t.device.limits.maxStorageTexturesInFragmentStage! >= 1),
793793
`maxStorageTexturesInFragmentStage(${t.device.limits.maxStorageTexturesInFragmentStage}) is not >= 1`
794794
);
795795

796796
t.skipIf(
797797
t.isCompatibility &&
798-
resourceIsStorageBuffer(plResourceType) &&
798+
(resourceIsStorageBuffer(plResourceType) || resourceIsStorageBuffer(bgResourceType)) &&
799799
!(t.device.limits.maxStorageBuffersInFragmentStage! >= 1),
800800
`maxStorageBuffersInFragmentStage(${t.device.limits.maxStorageBuffersInFragmentStage}) is not >= 1`
801801
);

0 commit comments

Comments
 (0)