Encodes a command to fill a buffer with a constant value in each byte.
Required.
SDKs
- iOS 8.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- Metal
Declaration
Parameters
buffer
The buffer to fill.
range
The range of bytes to fill. The alignment and length of the range must both be a multiple of
4
bytes in macOS, and1
byte in iOS and tvOS. The length of the range must not be0
.value
The value to write to each byte.