AdvancedThe texture source to view.
The WebGPU texture view descriptor.
Readonly_Unique ID for this resource.
Readonly_The type of resource this is (for BindGroup compatibility).
Used for GC.
ReadonlysourceThe underlying texture source.
ReadonlyviewThe WebGPU texture view descriptor.
A TextureView allows you to specify exactly how a
TextureSourceshould be interpreted by the GPU. This is particularly useful for advanced 3D rendering where you might need to view a depth/stencil texture as purely a 'depth-only' or 'stencil-only' view.It implements
BindResourceso it can be passed directly into aBindGrouporShader.