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_2D
The dimension of the texture. Defaults to TEXTUREDIMENSION_2D. Can be:
OptionalsampleType: number = SAMPLETYPE_FLOAT
The type of the texture samples. Defaults to SAMPLETYPE_FLOAT. Can be:
OptionalhasSampler: boolean = true
True 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: string | null = null
Optional name of the sampler. Defaults to null.
A class to describe the format of the texture for BindGroupFormat.