Instance Property

currentRenderCommandEncoder

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

Required.

Declaration

@property(nonatomic, readonly) id<MTLRenderCommandEncoder> currentRenderCommandEncoder;

Discussion

Use this render command encoder to encode additional rendering commands before or after SceneKit draws its own content.

This property is valid only during the SceneKit rendering loop—that is, within one of the methods defined in the SCNSceneRendererDelegate protocol. Accessing this property at any other time returns nil.

See Also

Customizing Scene Rendering with Metal

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.

depthPixelFormat

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

Required.

stencilPixelFormat

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

Required.