bindStorageTexture method
bool
bindStorageTexture(
- ShaderHandle shader,
- String name,
- TextureHandle texture, {
- int mipLevel = 0,
- StorageTextureAccess access = StorageTextureAccess.writeOnly,
override
Binds level mipLevel of texture as the storage texture name of a
render stage — DeviceFeature.renderStageStorage, with
ComputeEncoder.bindStorageTexture's format and access rules.
Implementation
@override
bool bindStorageTexture(
ShaderHandle shader,
String name,
TextureHandle texture, {
int mipLevel = 0,
StorageTextureAccess access = StorageTextureAccess.writeOnly,
}) {
debugCheckLive(texture, 'bindStorageTexture');
_gated(DeviceFeature.renderStageStorage, 'bindStorageTexture', (
shader: shader,
name: name,
texture: texture,
mipLevel: mipLevel,
access: access,
));
return true;
}