GraphiteContext

The main entry point for Graphite, responsible for managing and coordinating GPU resources.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
expect open val isClosed: Boolean
Link copied to clipboard

Functions

Link copied to clipboard
expect open fun close()
Link copied to clipboard

Adds a recording and associated submission metadata (such as wait/signal semaphores) to this context's pending GPU work.

fun insertRecording(recording: Recording)

Adds a recording to this context's pending GPU work.

Link copied to clipboard

Creates a Recorder that records drawing commands for this context.

Link copied to clipboard
fun submit(syncCpu: Boolean = false)

Submits pending work to the GPU.

Link copied to clipboard
expect open override fun toString(): String