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>
storageBufferFormats: BindStorageBufferFormat[] = []
storageBufferFormatsMap: Map<string, number>
storageTextureFormats: BindStorageTextureFormat[] = []
storageTextureFormatsMap: Map<string, number>
textureFormats: BindTextureFormat[] = []
textureFormatsMap: Map<string, number>
uniformBufferFormats: BindUniformBufferFormat[] = []

Methods