Instance Property

commandQueue

The Metal command queue this renderer uses for rendering.

Required.

Declaration

var commandQueue: MTLCommandQueue? { get }

Discussion

Use this property to schedule additional command buffers for the Metal device to execute as part of the render cycle. For example, you can use a compute command encoder to modify the vertex data in a Metal buffer for use by a SCNGeometrySource object.

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 colorPixelFormat: MTLPixelFormat

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

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.