setUniformBlock method
Assign the byte contents of a uniform block by name.
bytes must already match the block's std140 layout. Replacing
an existing assignment overrides the previous value. Pass null
to clear the binding.
Implementation
void setUniformBlock(String name, ByteData? bytes) {
if (bytes == null) {
_uniformBlocks.remove(name);
} else {
_uniformBlocks[name] = bytes;
}
}