cts
cts copied to clipboard
skipIfTextureFormatNotUsableAsStorageTexture does not handle bgra8unorm well
To be used as storage texture, bgra8unorm requires the feature bgra8unorm-storage. This necessitates selecting an appropriate device. However, skipIfTextureFormatNotUsableAsStorageTexture does not consider that feature and filters out the format currently.
The various queries should be updated to take a device so the GPUFeature can be checked. Currently test logic requires not checking the format query if bgra8unorm is used.
This is a case of #3848, however it's fine if we initially fix it ad-hoc.