One Logo Pool Ball
Metal · IOS API REFERENCE

MTLRenderCommandEncoder

protocol · iOS 8.0+ · SDK 27.1

protocol MTLRenderCommandEncoder : MTLCommandEncoder

Members (41)

method · iOS 12.0+

setViewports

Swift declaration
func setViewports(_ viewports: [MTLViewport])
method · iOS 13.0+

useResources

Swift declaration
func useResources(_ resources: [any MTLResource], usage: MTLResourceUsage, stages: MTLRenderStages)
method · iOS 11.0+ · Deprecated in iOS 16.0

useResources

Swift declaration
func useResources(_ resources: [any MTLResource], usage: MTLResourceUsage)
method · iOS 16.0+

memoryBarrier

Swift declaration
func memoryBarrier(resources: [any MTLResource], after: MTLRenderStages, before: MTLRenderStages)
method · iOS 16.0+

setMeshBuffers

Swift declaration
func setMeshBuffers(_ buffers: [(any MTLBuffer)?], offsets: [Int], range: Range<Int>)
method · iOS 11.0+

setTileBuffers

Swift declaration
func setTileBuffers(_ buffers: [(any MTLBuffer)?], offsets: [Int], range: Range<Int>)
method · iOS 16.0+

setMeshTextures

Swift declaration
func setMeshTextures(_ textures: [(any MTLTexture)?], range: Range<Int>)
method · iOS 12.0+

setScissorRects

Swift declaration
func setScissorRects(_ scissorRects: [MTLScissorRect])
method · iOS 11.0+

setTileTextures

Swift declaration
func setTileTextures(_ textures: [(any MTLTexture)?], range: Range<Int>)
method · iOS 16.0+

setObjectBuffers

Swift declaration
func setObjectBuffers(_ buffers: [(any MTLBuffer)?], offsets: [Int], range: Range<Int>)
method · iOS 17.0+

setVertexBuffers

Swift declaration
func setVertexBuffers(_ buffers: [(any MTLBuffer)?], offsets: [Int], attributeStrides: [Int], range: Range<Int>)
method · iOS 8.0+

setVertexBuffers

Swift declaration
func setVertexBuffers(_ buffers: [(any MTLBuffer)?], offsets: [Int], range: Range<Int>)
method · iOS 16.0+

setObjectTextures

Swift declaration
func setObjectTextures(_ textures: [(any MTLTexture)?], range: Range<Int>)
method · iOS 8.0+

setVertexTextures

Swift declaration
func setVertexTextures(_ textures: [(any MTLTexture)?], range: Range<Int>)
method · iOS 26.0+

setDepthTestBounds

Swift declaration
func setDepthTestBounds(_ bounds: ClosedRange<Float>)

Configures the range for depth bounds testing. The render command encoder disables depth bounds testing by default. The render command encoder also disables depth bounds testing when the `bounds` property equals `0.0...1.0`. `bounds.lowerBound` needs to be greater than or equal to `0.0`. `bounds.upperBound` needs to be less than or equal to `1.0`. - Parameters: - bounds: A closed range the renderer applies to depth bounds testing. The renderer discards fragments with a stored depth that is outside `bounds`.

method · iOS 8.0+

setFragmentBuffers

Swift declaration
func setFragmentBuffers(_ buffers: [(any MTLBuffer)?], offsets: [Int], range: Range<Int>)
method · iOS 8.0+

setFragmentTextures

Swift declaration
func setFragmentTextures(_ textures: [(any MTLTexture)?], range: Range<Int>)
method · iOS 16.0+

setMeshSamplerStates

Swift declaration
func setMeshSamplerStates(_ samplers: [(any MTLSamplerState)?], lodMinClamps: [Float], lodMaxClamps: [Float], range: Range<Int>)
method · iOS 16.0+

setMeshSamplerStates

Swift declaration
func setMeshSamplerStates(_ samplers: [(any MTLSamplerState)?], range: Range<Int>)
method · iOS 11.0+

setTileSamplerStates

Swift declaration
func setTileSamplerStates(_ samplers: [(any MTLSamplerState)?], lodMinClamps: [Float], lodMaxClamps: [Float], range: Range<Int>)
method · iOS 11.0+

setTileSamplerStates

Swift declaration
func setTileSamplerStates(_ samplers: [(any MTLSamplerState)?], range: Range<Int>)
method · iOS 16.0+

setObjectSamplerStates

Swift declaration
func setObjectSamplerStates(_ samplers: [(any MTLSamplerState)?], lodMinClamps: [Float], lodMaxClamps: [Float], range: Range<Int>)
method · iOS 16.0+

setObjectSamplerStates

Swift declaration
func setObjectSamplerStates(_ samplers: [(any MTLSamplerState)?], range: Range<Int>)
method · iOS 8.0+

setVertexSamplerStates

Swift declaration
func setVertexSamplerStates(_ samplers: [(any MTLSamplerState)?], lodMinClamps: [Float], lodMaxClamps: [Float], range: Range<Int>)
method · iOS 8.0+

setVertexSamplerStates

Swift declaration
func setVertexSamplerStates(_ samplers: [(any MTLSamplerState)?], range: Range<Int>)
method · iOS 13.0+

executeCommandsInBuffer

Swift declaration
func executeCommandsInBuffer(_ buffer: any MTLIndirectCommandBuffer, indirectBuffer indirectRangeBuffer: any MTLBuffer, offset: Int)
method · iOS 12.0+

executeCommandsInBuffer

Swift declaration
func executeCommandsInBuffer(_ buffer: any MTLIndirectCommandBuffer, range: Range<Int>)
method · iOS 8.0+

setFragmentSamplerStates

Swift declaration
func setFragmentSamplerStates(_ samplers: [(any MTLSamplerState)?], lodMinClamps: [Float], lodMaxClamps: [Float], range: Range<Int>)
method · iOS 8.0+

setFragmentSamplerStates

Swift declaration
func setFragmentSamplerStates(_ samplers: [(any MTLSamplerState)?], range: Range<Int>)
method · iOS 15.0+

setTileVisibleFunctionTables

Swift declaration
func setTileVisibleFunctionTables(_ functionTables: [(any MTLVisibleFunctionTable)?], bufferRange: Range<Int>)
method · iOS 15.0+

setVertexVisibleFunctionTables

Swift declaration
func setVertexVisibleFunctionTables(_ functionTables: [(any MTLVisibleFunctionTable)?], bufferRange: Range<Int>)
method · iOS 15.0+

setFragmentVisibleFunctionTables

Swift declaration
func setFragmentVisibleFunctionTables(_ functionTables: [(any MTLVisibleFunctionTable)?], bufferRange: Range<Int>)
method · iOS 15.0+

setTileIntersectionFunctionTables

Swift declaration
func setTileIntersectionFunctionTables(_ functionTables: [(any MTLIntersectionFunctionTable)?], bufferRange: Range<Int>)
method · iOS 15.0+

setVertexIntersectionFunctionTables

Swift declaration
func setVertexIntersectionFunctionTables(_ functionTables: [(any MTLIntersectionFunctionTable)?], bufferRange: Range<Int>)
method · iOS 15.0+

setFragmentIntersectionFunctionTables

Swift declaration
func setFragmentIntersectionFunctionTables(_ functionTables: [(any MTLIntersectionFunctionTable)?], bufferRange: Range<Int>)
method · iOS 13.0+ · Deprecated in iOS 16.0

use

Swift declaration
func use(_ resources: UnsafePointer<any MTLResource>, count: Int, usage: MTLResourceUsage, stages: MTLRenderStages)
method · iOS 13.0+ · Deprecated in iOS 16.0

use

Swift declaration
func use(_ heaps: UnsafePointer<any MTLHeap>, count: Int, stages: MTLRenderStages)
method · iOS 13.0+ · Deprecated in iOS 16.0

use

Swift declaration
func use(_ resource: any MTLResource, usage: MTLResourceUsage, stages: MTLRenderStages)
method · iOS 13.0+ · Deprecated in iOS 16.0

use

Swift declaration
func use(_ heap: any MTLHeap, stages: MTLRenderStages)
method · iOS 13.0+

useHeaps

Swift declaration
func useHeaps(_ heaps: [any MTLHeap], stages: MTLRenderStages)
method · iOS 11.0+ · Deprecated in iOS 16.0

useHeaps

Swift declaration
func useHeaps(_ heaps: [any MTLHeap])

Skipped declarations

No declarations were skipped in this snapshot.

All Metal types →