Instance Property

index

The index in the argument table that corresponds to the function argument.

Declaration

@property(readonly) NSUInteger index;

Discussion

A command encoder (MTLComputeCommandEncoder or MTLRenderCommandEncoder) specifies the index in the corresponding argument table. For example, an app can call the setTexture:atIndex: method of MTLComputeCommandEncoder to specify an index in the texture argument table for a MTLTexture object that is used as an argument of a compute function.

See Also

Describing the Argument

name

The name of the argument.

active

A Boolean that indicates whether the compiled function uses the argument.

type

The argument’s resource type.

access

The argument's read and/or write access.