Contents

makeBuffer(length:options:)

Creates a buffer the method clears with zero values.

Declaration

func makeBuffer(length: Int, options: MTLResourceOptions = []) -> (any MTLBuffer)?

Parameters

Mentioned in

Return Value

A new MTLBuffer instance if the method completed successfully; otherwise nil.

See Also

Creating buffers