Skip to main content

Module gpu_context

Module gpu_context 

Source
Expand description

Direct Hardware GPU Device Abstraction and Presentation Context.

Provides a zero-overhead hardware GPU abstraction supporting Vulkan, Metal, DirectX 12, and WebGPU backends with swapchains, command encoders, and VRAM buffers.

Structs§

GpuAdapter
Physical GPU adapter discovered on the host system.
GpuBufferHandle
Abstract GPU VRAM buffer handle with device-allocated memory.
GpuCommandEncoder
GPU command recording context for hardware rendering.
GpuContext
Overarching GPU Context coordinating adapter discovery, device acquisition, and queue lifecycle.
GpuDevice
Hardware GPU Device managing resources, command queues, and swapchain presentation.
GpuFeatures
Features and capabilities supported by the GPU device.
GpuLimits
Hardware limits supported by a GPU device.
GpuOffscreenSurface
Hardware offscreen render target surface for headless CI testing, server-side rendering, and image generation.
GpuQueue
Hardware GPU command queue managing submission, fences, and execution metrics.
GpuRenderPassDescriptor
Hardware render pass descriptor specifying color and depth attachments.
GpuSurfacePresenter
Hardware-accelerated GPU surface presenter implementing SurfacePresenter.
GpuSwapchain
Hardware swapchain managing surface texture queue and presentation timing.
GpuTextureHandle
Abstract hardware GPU texture handle.

Enums§

GpuBackend
Active hardware graphics API backend.
GpuBufferUsage
GPU buffer allocation usage type.
GpuDeviceType
GPU physical device classification.
GpuMemoryLocation
GPU memory residence location.
GpuPresentMode
Presentation mode defining how swapchain images are presented.