Function CommandBuffer.fillBuffer

Fills buffer from offset to offset+size with value

abstract void fillBuffer (
  Buffer dst,
  in const(ulong) offset,
  in const(ulong) size,
  uint value
);

Parameters

NameDescription
dst the buffer to fill.
offset Byte offset from where to fill the buffer. Must be a multiple of 4.
size Number of bytes to fill. Must be a multiple of 4 or wholeSize to fill until the end of the buffer.
value Value to copy into the buffer, in host endianess. Can only be used outside of a render pass.