Instance Property

depthPixelFormat

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

Required.

Declaration

@property(nonatomic, readonly) MTLPixelFormat depthPixelFormat;

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

currentRenderCommandEncoder

The Metal render command encoder in use for the current SceneKit rendering pass.

Required.

device

The Metal device this renderer uses for rendering.

Required.

commandQueue

The Metal command queue this renderer uses for rendering.

Required.

colorPixelFormat

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

Required.

stencilPixelFormat

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

Required.