Instance Property

colorPixelFormat

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

Required.

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

var currentRenderCommandEncoder: MTLRenderCommandEncoder?

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

Required.

var device: MTLDevice?

The Metal device this renderer uses for rendering.

Required.

var commandQueue: MTLCommandQueue?

The Metal command queue this renderer uses for rendering.

Required.

var depthPixelFormat: MTLPixelFormat

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

Required.

var stencilPixelFormat: MTLPixelFormat

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

Required.