Conversation
Related to gpuweb#3847 --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/gpuweb/cts/issues/3847?shareId=XXXX-XXXX-XXXX-XXXX).
| } | ||
| if (t.isCompatibility) { | ||
| t.skipIfTextureFormatNotUsableAsStorageTexture(t.params.format); | ||
| t.skipIfTextureFormatNotUsableAsStorageTexture(t.params.format, t.device); |
There was a problem hiding this comment.
This is not possible because no device has been selected yet.
npm run typecheck will catch this and other issues. I also strongly recommend using VSCode or otherwise having working TypeScript integration so you will see this in your IDE/editor.
Please run the full tests npm test and ensure the test is running as expected in a real browser before sending for review (you can open the PR as a "draft" if needed). In this case npm start to start a server and then open http://localhost:8080/standalone/?compatibility=1&q=webgpu:api,operation,storage_texture,read_only:basic:format=%22bgra8unorm%22;* because you need to test with compatibility=1.
There's no really good general solution to this right now (#3848), but since there is already special logic here to check for bgra8unorm-storage, I think you can simply skip this check when the format is bgra8unorm.
There was a problem hiding this comment.
I get that the PR is incorrect but it's also not clear what problem it's trying to solve with regards to #3847. The code at line 580 should have already skipped the test if bgra8unorm-storage is not supported.
There was a problem hiding this comment.
IIUC the problem is the opposite: if the format is bgra8unorm, then we enable bgra8unorm-storage... but then skipIfTextureFormatNotUsableAsStorageTexture skips the test anyway, because the capability tables say it won't work.
Related to #3847
For more details, open the Copilot Workspace session.