Instance Property

maxBufferLength

The maximum size of a buffer, in bytes.

Required.

Declaration

var maxBufferLength: Int { get }

See Also

Creating Buffers

func makeBuffer(length: Int, options: MTLResourceOptions) -> MTLBuffer?

Allocates a new zero-filled buffer of a given length.

Required.

func makeBuffer(bytes: UnsafeRawPointer, length: Int, options: MTLResourceOptions) -> MTLBuffer?

Allocates a new buffer of a given length and initializes its contents by copying existing data into it.

Required.