init(buffer:format:stride:offset:)
Creates a descriptor that locates a property within a buffer.
Declaration
init(buffer: LowLevelBuffer, format: MTLAttributeFormat, stride: Int, offset: Int)Parameters
- buffer:
The buffer that stores the property’s values.
- format:
The element format of each value in the buffer.
- stride:
The distance, in bytes, between consecutive splats’ values.
- offset:
The byte offset of the first splat’s value within the buffer.