Rive Surface
A backend agnostic collection of surface properties needed for rendering.
A draw key, which uniquely identifies draw operations in the CommandQueue
The dimensions of the surface in pixels
⚠️ This class assumes ownership of all resources and should be closed when no longer needed. Closing schedules ordered disposal on the owning CommandQueue.
Alone it is not sufficient for rendering, as it lacks a backend-specific surface, which is provided by subclasses.
Parameters
Command queue that owns this surface and performs ordered disposal. The surface acquires its own reference so the queue stays alive until surface disposal has run.
Opaque native backend surface resource owned by this surface.
The key used to uniquely identify the draw operation in the CommandQueue.
The width of the surface in pixels.
The height of the surface in pixels.
Whether this surface supports in-place size changes via resize.