Skip to main content

Module ganesh

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::Interface function-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§

DirectContextId
A unique ID associated with a DirectContext.
DriverBugWorkarounds
FlushError
A Ganesh flush failed.
FlushInfo
Struct to supply options to flush calls.
ResourceCacheLimits
The maximum number of resources and total number of bytes of video memory that can be held in the GPU resource cache.
ResourceCacheUsage
The current GPU resource cache usage.
SubmitInfo
Options passed to crate::gpu::DirectContext::submit().

Enums§

BackendAPI
BackendApi
MarkFrameBoundary
Protected
PurgeResourceOptions
Renderable
SemaphoresSubmitted
SurfaceOrigin
SyncCpu

Constants§

METAL_BACKEND
Legacy constant for BackendApi::Metal.
MOCK_BACKEND
Legacy constant for BackendApi::Mock.
VULKAN_BACKEND
Legacy constant for BackendApi::Vulkan.

Traits§

ApplyOverrides

Type Aliases§

BackendFormat
Describes a texture or render target format for a specific backend API.
BackendRenderTarget
Describes a render target on a specific GPU backend.
BackendSemaphore
Wrapper type for passing into and receiving data from Ganesh about a backend semaphore object.
BackendTexture
Describes a texture on a specific GPU backend. Its contents may be initialized or not.
DirectContext
RecordingContext
YUVABackendTextureInfo
A description of a set BackendTextures that hold the planar data described by a YUVAInfo.
YUVABackendTextures
A set of BackendTextures that hold the planar data for an image described a YUVAInfo.