Instance Method

makeArgumentEncoder(bufferIndex:reflection:)

Creates an argument encoder and returns reflection information for an argument buffer that is one of this function's arguments

Required.

Declaration

func makeArgumentEncoder(bufferIndex: Int, reflection: AutoreleasingUnsafeMutablePointer<MTLAutoreleasedArgument?>?) -> MTLArgumentEncoder

Parameters

bufferIndex

The index of an argument buffer in the function's argument list. This method fails if the specified index does not correspond to an argument buffer.

reflection

A pointer that will be populated with the function reflection data for the argument buffer located at the specified buffer index.

Discussion

Resources encoded into an argument buffer by the MTLArgumentEncoder object must match the structure of the argument buffer located at the function’s specified buffer index.

See Also

Creating Argument Encoders

func makeArgumentEncoder(bufferIndex: Int) -> MTLArgumentEncoder

Creates an argument encoder for an argument buffer that is one of this function's arguments.

Required.