BindGroupFormat is a data structure that defines the layout of resources (buffers, textures, samplers) used by rendering or compute shaders. It describes the binding points for each resource type, and the visibility of these resources in the shader stages. Currently this class is only used on WebGPU platform to specify the input and output resources for vertex, fragment and compute shaders written in SHADERLANGUAGE_WGSL language.

Constructors

Properties

bufferFormatsMap: Map<string, number>
storageBufferFormatsMap: Map<string, number>
storageTextureFormatsMap: Map<string, number>
textureFormatsMap: Map<string, number>

Methods