Contents

buffer(for:)

Returns the buffer backing the given plane, or nil if none has been set.

Declaration

func buffer(for plane: MTLTensorPlaneType) -> (any MTLBuffer)?

Parameters

  • plane:

    The plane type to look up.

Return Value

The buffer for the given plane, or nil.