setColorAttachmentMap(_:)
Sets the mapping from logical shader color output to physical render pass color attachments.
Declaration
func setColorAttachmentMap(_ mapping: MTLLogicalToPhysicalColorAttachmentMap?)Parameters
- mapping:
Mapping from logical shader outputs to physical outputs.
Discussion
Use this method to define how the physical color attachments you specify via colorAttachments map to the logical color output the fragment shader writes to.
To use this feature, make sure to set supportColorAttachmentMapping to true.