Functionality added to the WebGPU spec after its first shipment in a browser. Allows GPUTextureViews to rearrange or replace the color components from texture's red/green/blue/alpha channels when accessed by a shader.
The texture component swizzle optional feature allows for efficient, flexible, and robust texture sampling in WebGPU, enabling developers to optimize performance, correct component ordering mismatches, and reuse shader code across various texture formats. https://github.com/gpuweb/gpuweb/pull/5361
Explainers: https://github.com/gpuweb/gpuweb/blob/main/proposals/texture-component-swizzle.md