Create a new instance.
The name of the storage buffer.
A bit-flag that specifies the shader stages in which the storage buffer is visible. Can be:
Optional
textureDimension: string = TEXTUREDIMENSION_2DThe dimension of the texture. Defaults to TEXTUREDIMENSION_2D. Can be:
Optional
sampleType: number = SAMPLETYPE_FLOATThe type of the texture samples. Defaults to SAMPLETYPE_FLOAT. Can be:
Optional
hasSampler: boolean = trueTrue if the sampler for the texture is needed. Note that if the sampler is used, it will take up an additional slot, directly following the texture slot. Defaults to true.
A class to describe the format of the texture for BindGroupFormat.