Contents

textureLocation(named:)

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

Declaration

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

Parameters

  • name:

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

Return Value

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

See Also

Locating parameters