Skip to content

Commit 53b10fb

Browse files
committed
Allow bgra8unorm in pipeline layout be compatible with rgba8unorm in WGSL
This patch allows the bgra8unorm storage texture format be compatible with the WGSL texel format `rgba8unorm` when the optional feature "bgra8unorm-storage" is enabled as WGSL doesn't support `bgra8unorm` as a valid texel format.
1 parent baf40d9 commit 53b10fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spec/index.bs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7011,6 +7011,9 @@ typedef double GPUPipelineConstantValue; // May represent WGSL's bool, f32, i32,
70117011
::
70127012
The texel format `T` equals
70137013
|entry|.{{GPUBindGroupLayoutEntry/storageTexture}}.{{GPUStorageTextureBindingLayout/format}}.
7014+
If {{GPUFeatureName/"bgra8unorm-storage"}} is enabled, the texel format `T` can be `rgba8unorm`
7015+
when |entry|.{{GPUBindGroupLayoutEntry/storageTexture}}.{{GPUStorageTextureBindingLayout/format}}
7016+
is {{GPUTextureFormat/"bgra8unorm"}}.
70147017
</dl>
70157018
</div>
70167019

0 commit comments

Comments
 (0)