Contents

stencilPixelFormat

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

Declaration

var stencilPixelFormat: MTLPixelFormat { get }

Discussion

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