← Back to release summary

WebGPU: Texture and Sampler Lets

Category
Graphics
Type
New or changed feature
Status
Proposed (Chrome Proposed)
Intent stage
None

Summary

Add a language feature to WGSL, `texture_and_sampler_let` that adds the ability to store texture and sampler objects into a let declaration in WGSL.

Motivation

To allow storing texture and samples in WGSL shaders into lets. This allows creating local names for what are usually global objects.

Standards & signals

Explainers: https://github.com/gpuweb/gpuweb/issues/5339

View on chromestatus.com