scoop:scoop.graphics:0.1.0
scoop.graphics.native
API
-
class
CanvasGeometry
Independent shape, transform and clip snapshot of the same state used for drawing.
- enum GpuBackend
-
class
GpuBuffer
A renderable native texture on the device's context; snapshots remain on the GPU.
- enum GpuColorSpace
-
class
GpuDevice
An owner-thread handle to the canvas's existing GPU context and native queue.
- enum GpuImageAlpha
- enum GpuImageOrigin
-
enum
GpuPixelLayout
How Skia interprets the texture's channels, independently of its native storage format.
-
struct
NativeGeometry
A borrowed native snapshot. Retain before saving or handing off; release each owned reference. The paired functions support concurrent native queries without entering Scoop or its runtime.
-
struct
NativeGeometryPoint
Native query status: 1 success, 0 unavailable, -1 invalid argument, -2 native failure.
- struct NativeGeometryRect
-
enum
NativeGpuDevice
Borrowed device and queue, or EGL display and current context. Native owners use platform retain rules.
-
enum
NativeGpuFormat
The platform's unmodified pixel format; no format conversion or fallback is performed.
-
struct
NativeGpuImageOwner
Pure native callbacks only; neither callback may enter Scoop or its GC. release runs when Skia no longer uses the texture, possibly on a cleanup thread. Its second argument is the final D3D12 resource state, or zero on other backends.
-
enum
NativeGpuTexture
D3D12 includes the state which a native writer must restore before returning.
-
class
RenderTarget
A renderer-owned target. Canvas borrows end on every normal and exceptional callback exit.
-
function
captureGeometry
Copies the path's native data so the snapshot survives closing the public Path.
-
function
withSkiaCanvas
Declaring independentTiles promises that native commands can be clipped independently.