Contents

constantLocation(named:)

Returns the resolved buffer and constant indices for the named constant parameter, or nil if no parameter with that name exists.

Declaration

func constantLocation(named name: String) -> LowLevelMaterialParameterMapping.ConstantLocation?

Parameters

  • name:

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

Return Value

A LowLevelMaterialParameterMapping.ConstantLocation with the buffer and constant indices, or nil if no constant parameter with that name exists.

See Also

Locating parameters