init(buffer:offset:size:)
Creates a slice referencing a sub-range of the given buffer.
Declaration
init(buffer: LowLevelBufferResource, offset: Int, size: Int) throws(LowLevelRenderContextError)Parameters
- buffer:
The buffer this slice references.
- offset:
The byte offset into
bufferat which this slice begins. - size:
The size of this slice, in bytes.