MTLIndirectRenderCommand
A render command in an indirect command buffer.
Declaration
protocol MTLIndirectRenderCommand : NSObjectProtocolOverview
Don’t implement this protocol; you get instances of this type by asking an MTLIndirectCommandBuffer for them.
Use this instance to reset or encode a command. You need to reset a command before encoding a new command.
Topics
Setting command arguments
Encoding a drawing command
drawPrimitives(_:vertexStart:vertexCount:instanceCount:baseInstance:)drawIndexedPrimitives(_:indexCount:indexType:indexBuffer:indexBufferOffset:instanceCount:baseVertex:baseInstance:)drawPatches(_:patchStart:patchCount:patchIndexBuffer:patchIndexBufferOffset:instanceCount:baseInstance:tessellationFactorBuffer:tessellationFactorBufferOffset:tessellationFactorBufferInstanceStride:)drawIndexedPatches(_:patchStart:patchCount:patchIndexBuffer:patchIndexBufferOffset:controlPointIndexBuffer:controlPointIndexBufferOffset:instanceCount:baseInstance:tessellationFactorBuffer:tessellationFactorBufferOffset:tessellationFactorBufferInstanceStride:)
Resetting a command
Instance Methods
clearBarrier()drawMeshThreadgroups(_:threadsPerObjectThreadgroup:threadsPerMeshThreadgroup:)drawMeshThreads(_:threadsPerObjectThreadgroup:threadsPerMeshThreadgroup:)setBarrier()setCullMode(_:)setDepthBias(_:slopeScale:clamp:)setDepthClipMode(_:)setDepthStencilState(_:)setFrontFacing(_:)setMeshBuffer(_:offset:at:)setObjectBuffer(_:offset:at:)setObjectThreadgroupMemoryLength(_:index:)setTriangleFillMode(_:)setVertexBuffer(_:offset:attributeStride:at:)