Module ganesh
Expand description
Ganesh, Skia’s GPU-accelerated drawing backend, and the types and APIs shared between its backend implementations.
Modules§
- context_
options - Options for configuring a Ganesh
crate::gpu::DirectContext. - gl
- The OpenGL backend for Ganesh: GL types, extensions, the
crate::gpu::gl::Interfacefunction-pointer interface, and surface/context construction helpers. - images
- Image creation and utilities for the Ganesh backend.
- meshes
- surface_
ganesh - Creation of GPU-backed
crate::Surfaces for the Ganesh backend.
Structs§
- Direct
Context Id - A unique ID associated with a
DirectContext. - Driver
BugWorkarounds - Flush
Error - A Ganesh flush failed.
- Flush
Info - Struct to supply options to flush calls.
- Resource
Cache Limits - The maximum number of resources and total number of bytes of video memory that can be held in the GPU resource cache.
- Resource
Cache Usage - The current GPU resource cache usage.
- Submit
Info - Options passed to
crate::gpu::DirectContext::submit().
Enums§
- BackendAPI
- Backend
Api - Mark
Frame Boundary - Protected
- Purge
Resource Options - Renderable
- Semaphores
Submitted - Surface
Origin - SyncCpu
Constants§
- METAL_
BACKEND - Legacy constant for
BackendApi::Metal. - MOCK_
BACKEND - Legacy constant for
BackendApi::Mock. - VULKAN_
BACKEND - Legacy constant for
BackendApi::Vulkan.
Traits§
Type Aliases§
- Backend
Format - Describes a texture or render target format for a specific backend API.
- Backend
Render Target - Describes a render target on a specific GPU backend.
- Backend
Semaphore - Wrapper type for passing into and receiving data from Ganesh about a backend semaphore object.
- Backend
Texture - Describes a texture on a specific GPU backend. Its contents may be initialized or not.
- Direct
Context - Recording
Context - YUVA
Backend Texture Info - A description of a set
BackendTextures that hold the planar data described by aYUVAInfo. - YUVA
Backend Textures - A set of
BackendTextures that hold the planar data for an image described aYUVAInfo.