class MetalContext
source · line 7public
public class MetalContext private constructor(private val resource: GraphicsResource) : Closeable
- Supertype
Closeable - Inherited
fun dispose(): Unit· Closeable
Shared Ganesh state for Metal targets using the supplied device and command queue.
function close
source · line 28public
public override fun close(): Unit
- Overrides
close
function drain
source · line 22public
public fun drain(): Unit
Waits for this context's submitted GPU work; used for explicit teardown.
function target
source · line 9public
@Unsafe
public fun target(texture: Ptr<Unit>, width: Int, height: Int, scale: Double): RenderTarget
The caller must supply a live BGRA8 drawable texture belonging to this device.
parameter height
source · line 10public
height: Int
parameter texture
source · line 10public
texture: Ptr<Unit>
parameter scale
source · line 10public
scale: Double
parameter width
source · line 10public
width: Int