Contents

colorPixelFormat

The Metal pixel format for the renderer’s color output.

Declaration

var colorPixelFormat: MTLPixelFormat { get }

Discussion

Use this property, along with the depthPixelFormat and stencilPixelFormat properties, if you perform custom drawing with Metal (see the SCNSceneRendererDelegate and SCNNodeRendererDelegate classes) and need to create a new MTLRenderPipelineState object to change the GPU state as part of your rendering.

See Also

Customizing Scene Rendering with Metal