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:
OptionaltextureDimension: string = TEXTUREDIMENSION_2DThe dimension of the texture. Defaults to TEXTUREDIMENSION_2D. Can be:
OptionalsampleType: number = SAMPLETYPE_FLOATThe type of the texture samples. Defaults to SAMPLETYPE_FLOAT. Can be:
OptionalhasSampler: 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.
OptionalsamplerName: null | string = nullOptional name of the sampler. Defaults to null.
A class to describe the format of the texture for BindGroupFormat.