这是indexloc提供的服务,不要输入任何密码
Skip to content

bgra8unorm storage textures without bgra8unorm-storage, should generate WGSL error? #4711

@greggman

Description

@greggman

if you have

@group(0) @binding(0) var tex: texture_storage_2d<bgra8unorm, read>;

But you have not requested the 'bgra8unorm-storage' feature, you don't get WGSL error at shader module creation time.

This seems inconsistent with the idea that in compat you do WGSL error for these (#4568):

@group(0) @binding(0) var tex: texture_storage_2d<rg32float, read>;
@group(0) @binding(1) var tex: texture_storage_2d<rg32sint, read>;
@group(0) @binding(2) var tex: texture_storage_2d<rg32uint, read>;

related to #4728

Metadata

Metadata

Assignees

Labels

apiWebGPU APIpotentially breakingCould require a breaking change to the APIwgslWebGPU Shading Language Issueswgsl resolvedResolved - waiting for a change to the WGSL specification

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions