Contents

offset(for:)

Returns the byte offset into the buffer for the given plane.

Declaration

func offset(for plane: MTLTensorPlaneType) -> Int

Parameters

  • plane:

    The plane type to look up.

Return Value

The byte offset for the given plane.