← Back to release summary

WebGPU: Texture view usage

Category
Graphics
Type
New or changed feature
Status
Enabled by default (Chrome 132)
Intent stage
None

Summary

Adds an optional field to WebGPU texture view creation to request a subset of the usage flags from the source texture. By default, texture view usage inherits from the source texture but there are view formats which can be incompatible with the full set of inherited usages. Adding a usage field to texture view creation allows the user request a subset of the source texture's usages that are valid with the view format and specific to their intended usage of the texture view. WebGPU implementations can also optimize the creation of low level resources and improve performance when using views with more specialized usage flags.

Motivation

A usage field for texture view creation allows users to request more view formats that become valid with specific usage flags and allows the WebGPU implementation to create more performant views.

Standards & signals

View on chromestatus.com