Instance Property

access

The argument's read and/or write access.

Declaration

@property(readonly) MTLArgumentAccess access;

Discussion

This property indicates the type of access qualifiers (read-only, write-only, or read-write) used in the Metal shading language code. For information on possible values, see MTLArgumentAccess.

See Also

Describing the Argument

name

The name of the argument.

active

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

index

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

type

The argument’s resource type.