Contents

vertexBuffer

A buffer that contains vertex data.

Declaration

var vertexBuffer: (any MTLBuffer)? { get set }

Discussion

The vertexFormat property defines the format of each vertex position in the buffer. You need to set a vertex buffer before creating the acceleration structure.

See Also

Configuring vertex data