makeRenderPipelineState(tileDescriptor:options:)
Synchronously creates a tile shader’s render pipeline state and reflection information in a tuple.
Declaration
func makeRenderPipelineState(tileDescriptor: MTLTileRenderPipelineDescriptor, options: MTLPipelineOption) throws -> (any MTLRenderPipelineState, MTLRenderPipelineReflection?)Parameters
- tileDescriptor:
An Mtltilerenderpipelinedescriptor instance.
- options:
An Mtlpipelineoption instance that represents the reflection information you want the method to generate.
Return Value
A tuple with a new MTLTileRenderPipelineDescriptor instance and an MTLRenderPipelineReflection optional instance if the method completes successfully; otherwise Swift throws an error and Objective-C returns nil.