Instance Method

makeArgumentEncoderForBuffer(atIndex:)

Creates a new argument encoder for a nested argument buffer.

Required.

Declaration

func makeArgumentEncoderForBuffer(atIndex index: Int) -> MTLArgumentEncoder?

Parameters

index

The index of a nested argument buffer within an argument buffer. This value corresponds to either the index ID of a Metal shading language declaration or the index field of a MTLArgumentDescriptor object.

Discussion

If an argument buffer contains nested argument buffers in its structure, then each nested argument buffer must use its own MTLArgumentEncoder object to encode its individual resources.