Skip to content

Commit

Permalink
Fixup storage texture var restrictions in test (gpuweb#3774)
Browse files Browse the repository at this point in the history
Test cases for read-only storage textures should not be skipped as they
are permitted in vertex shaders.

This is a followup from:
gpuweb#3772 (comment)
  • Loading branch information
sudonatalie authored May 30, 2024
1 parent 3f9ae5e commit 0027988
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ g.test('resource_compatibility')
t.skipIf(
t.params.stage === 'vertex' &&
((wgslResource.buffer !== undefined && wgslResource.buffer.type === 'storage') ||
wgslResource.storageTexture !== undefined),
(wgslResource.storageTexture !== undefined &&
wgslResource.storageTexture.access !== 'read-only')),
'Storage buffers and textures cannot be used in vertex shaders'
);
const emptyVS = `
Expand Down

0 comments on commit 0027988

Please sign in to comment.