bindUniformBytes method
Fills the uniform block blockName of shader from laid-out bytes —
DeviceFeature.uniformBytes. See ComputeEncoder.bindUniformBytes.
Implementation
@override
bool bindUniformBytes(ShaderHandle shader, String blockName, ByteData bytes) {
if (!shader.mayBindBlock(blockName)) return false;
_gated(DeviceFeature.uniformBytes, 'bindUniformBytes', (
shader: shader,
blockName: blockName,
lengthInBytes: bytes.lengthInBytes,
));
return true;
}