replaceUniforms(_:)
Replaces the entire uniform buffer with the given data.
Declaration
mutating func replaceUniforms(_ data: Data)Parameters
- data:
Raw bytes to write into the uniform buffer.
Discussion
You can query pipelines.assembly.uniformBufferSize for the required size. If too few bytes are provided, the remaining bytes retain their previous values.