Instance Property

device

The Metal device this renderer uses for rendering.

Required.

Declaration

var device: MTLDevice? { get }

Discussion

Use this property to create or look up other Metal resources that use the same device as your SceneKit renderer.

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 commandQueue: MTLCommandQueue?

The Metal command queue 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.