init(mesh:material:renderTargets:blending:)
Creates a descriptor for the given mesh format, material, render targets, and optional blending configuration.
Declaration
init(mesh: LowLevelMeshResource.Descriptor, material: LowLevelMaterialResource, renderTargets: LowLevelRenderTarget.DescriptorSet, blending: LowLevelRenderPipelineState.Descriptor.Blending? = nil)Parameters
- mesh:
The vertex format descriptor of the mesh to be rendered.
- material:
The compiled material (geometry modifier, surface shader, and lighting function).
- renderTargets:
The render target descriptors this pipeline state must be compatible with.
- blending:
The blending configuration for transparent draws, or
nilfor opaque draws. Defaults tonil.