Contents

bufferLocation(named:)

Returns the argument table buffer slot index for the named buffer parameter, or nil if no parameter with that name exists.

Declaration

func bufferLocation(named name: String) -> Int?

Parameters

  • name:

    The name of the buffer parameter as declared in the Metal shader.

Return Value

The buffer slot index, or nil if no buffer parameter with that name exists.

See Also

Locating parameters