Expand description
A crate for handling 2D and 3D virtio-gpu hypercalls, along with graphics swapchain allocation and mapping.
Macros§
Structs§
- Device
Id - A unique identifier for a device.
- DrmFormat
- A fourcc format identifier.
- Gfxstream
Flags - gfxstream flag struct.
- Image
Allocation Info - Information required to allocate a swapchain image.
- Image
Memory Requirements - The memory requirements, compression and layout of a swapchain image.
- Resource3D
Info - Metadata associated with a swapchain, video or camera image.
- Resource
Create3D - Resource
Create Blob - Rutabaga
- The global libary handle used to query capability sets, create resources and contexts.
- Rutabaga
Builder - Rutabaga Builder, following the Rust builder pattern.
- Rutabaga
Channel - Information needed to open an OS-specific RutabagaConnection (TBD). Only Linux hosts are considered at the moment.
- Rutabaga
Debug - Convenience struct for debug data
- Rutabaga
Descriptor - Wraps a RawDescriptor and safely closes it when self falls out of scope.
- Rutabaga
Fence - Convenience struct for Rutabaga fences
- Rutabaga
Gralloc - A container for a variety of allocation backends.
- Rutabaga
Gralloc Flags - Usage flags for constructing a buffer object.
- Rutabaga
Handle - Handle to OS-specific memory or synchronization objects.
- Rutabaga
Handler - Rutabaga
Iovec - Represents a buffer.
base
contains the address of a buffer, whilelen
contains the length of the buffer. - Rutabaga
Mapping - Transfer3D
- Transfers {to, from} 1D buffers, 2D textures, 3D textures, and cubemaps.
- Virgl
Renderer Flags - virglrenderer flag struct.
- Vulkan
Info - Memory index and physical device id of the associated VkDeviceMemory.
Enums§
- Rutabaga
Component Type - Enumeration of possible rutabaga components.
- Rutabaga
Error - An error generated while using this crate.
- Rutabaga
Wsi
Constants§
- RUTABAGA_
BLOB_ FLAG_ USE_ CROSS_ DEVICE - RUTABAGA_
BLOB_ FLAG_ USE_ MAPPABLE - RUTABAGA_
BLOB_ FLAG_ USE_ SHAREABLE - RUTABAGA_
BLOB_ MEM_ GUEST - Blob resource creation parameters.
- RUTABAGA_
BLOB_ MEM_ HOST3D - RUTABAGA_
BLOB_ MEM_ HOST3D_ GUEST - RUTABAGA_
CAPSET_ CROSS_ DOMAIN - RUTABAGA_
CAPSET_ DRM - RUTABAGA_
CAPSET_ GFXSTREAM_ COMPOSER - RUTABAGA_
CAPSET_ GFXSTREAM_ GLES - RUTABAGA_
CAPSET_ GFXSTREAM_ MAGMA - RUTABAGA_
CAPSET_ GFXSTREAM_ VULKAN - RUTABAGA_
CAPSET_ VENUS - RUTABAGA_
CAPSET_ VIRGL - Rutabaga capsets.
- RUTABAGA_
CAPSET_ VIRG L2 - RUTABAGA_
CHANNEL_ TYPE_ CAMERA - RUTABAGA_
CHANNEL_ TYPE_ WAYLAND - Rutabaga channel types
- RUTABAGA_
CONTEXT_ INIT_ CAPSET_ ID_ MASK - Rutabaga context init capset id mask.
- RUTABAGA_
DEBUG_ ERROR - Rutabaga debug types
- RUTABAGA_
DEBUG_ INFO - RUTABAGA_
DEBUG_ WARNING - RUTABAGA_
FENCE_ HANDLE_ TYPE_ OPAQUE_ FD - RUTABAGA_
FENCE_ HANDLE_ TYPE_ OPAQUE_ WIN32 - RUTABAGA_
FENCE_ HANDLE_ TYPE_ SYNC_ FD - RUTABAGA_
FENCE_ HANDLE_ TYPE_ ZIRCON - RUTABAGA_
FLAG_ FENCE - Rutabaga flags for creating fences.
- RUTABAGA_
FLAG_ FENCE_ SHAREABLE - RUTABAGA_
FLAG_ INFO_ RING_ IDX - RUTABAGA_
MAP_ ACCESS_ MASK - Access flags (not in virtio_gpu spec)
- RUTABAGA_
MAP_ ACCESS_ READ - RUTABAGA_
MAP_ ACCESS_ RW - RUTABAGA_
MAP_ ACCESS_ WRITE - RUTABAGA_
MAP_ CACHE_ CACHED - RUTABAGA_
MAP_ CACHE_ MASK - Mapped memory caching flags (see virtio_gpu spec)
- RUTABAGA_
MAP_ CACHE_ UNCACHED - RUTABAGA_
MAP_ CACHE_ WC - RUTABAGA_
MEM_ HANDLE_ TYPE_ DMABUF - RUTABAGA_
MEM_ HANDLE_ TYPE_ OPAQUE_ FD - Rutabaga handle types (memory and sync in same namespace)
- RUTABAGA_
MEM_ HANDLE_ TYPE_ OPAQUE_ WIN32 - RUTABAGA_
MEM_ HANDLE_ TYPE_ SHM - RUTABAGA_
MEM_ HANDLE_ TYPE_ ZIRCON - RUTABAGA_
PIPE_ BIND_ RENDER_ TARGET - RUTABAGA_
PIPE_ TEXTURE_ 2D - 3D resource creation parameters. Also used to create 2D resource. Constants based on Mesa’s (internal) Gallium interface. Not in the virtio-gpu spec, but should be since dumb resources can’t work with gfxstream/virglrenderer without this.
Traits§
- AsRaw
Descriptor - Trait for returning the underlying raw descriptor, without giving up ownership of the descriptor.
- Rutabaga
From RawDescriptor - Rutabaga
Into RawDescriptor - Trait for forfeiting ownership of the current raw descriptor, and returning the raw descriptor
- Rutabaga
Mapped Region - Safety
Functions§
Type Aliases§
- Rutabaga
Debug Handler - Rutabaga
Fence Handler - Rutabaga
Result - The result of an operation in this crate.