Contents

setVertices(_:offset:semantic:)

Binds a Metal buffer to the vertex attribute with the specified semantic.

Declaration

func setVertices(_ buffer: any MTLBuffer, offset: Int, semantic: LowLevelDeformation.VertexSemantic) throws(LowLevelDeformation.Error)

Parameters

  • buffer:

    The Metal buffer containing the vertex data.

  • offset:

    The byte offset into buffer where the vertex data begins.

  • semantic:

    The vertex semantic of the attribute to bind.

Discussion