Contents

depthPixelFormat

The Metal pixel format for the renderer’s depth buffer.

Declaration

var depthPixelFormat: MTLPixelFormat { get }

Discussion

Use this property, along with the colorPixelFormat 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