MetalRenderContext

data class MetalRenderContext(val directContext: DirectContext, val view: Long, val layer: Long, val device: Long, val queue: Long) : RenderContext(source)

Metal render context for a Compose GLFW window.

Native handles are borrowed from the host window and remain valid only until that window is closed or recreated. Do not close or release them from user code. Cocoa and Metal objects should be used from the application/UI thread unless their platform documentation says otherwise.

Constructors

Link copied to clipboard
constructor(directContext: DirectContext, view: Long, layer: Long, device: Long, queue: Long)

Properties

Link copied to clipboard

MTLDevice* used by Skia.

Link copied to clipboard
val directContext: DirectContext

Skia direct context used by Compose for this window.

Link copied to clipboard
val layer: Long

CAMetalLayer* used as the window drawable.

Link copied to clipboard
val queue: Long

MTLCommandQueue* used by Skia.

Link copied to clipboard
val view: Long

Cocoa NSView* backing the GLFW window content.