Skip to main content

Module backend

Module backend 

Source
Expand description

Core GPU backend abstraction: enums, handle types, capability queries, and the BackendContext trait that every concrete backend implements.

Structs§

BackendCapabilities
Capabilities of the current backend.
BindGroupLayoutDesc
Describes one bind-group layout.
BindGroupLayoutEntry
One entry within a bind-group layout.
BufferHandle
Opaque handle to a GPU buffer.
BufferUsage
Buffer usage flags (combinable via bitwise OR on the underlying bits).
ComputePipelineHandle
Opaque handle to a compute pipeline.
OpenGLContext
OpenGL backend context. In a headless / test environment this behaves identically to SoftwareContext since we don’t have a live GL context. When a real GL context is available (via the engine pipeline), the handles map to actual GL object names.
PipelineHandle
Opaque handle to a render pipeline (vertex + fragment).
PipelineLayout
Pipeline layout description.
ShaderHandle
Opaque handle to a compiled shader module.
SoftwareContext
Pure-CPU backend that stores everything in RAM. Useful for tests, CI, headless rendering, and platforms without any GPU API.
TextureHandle
Opaque handle to a GPU texture.

Enums§

BindingType
Type of a single binding.
GpuBackend
Which GPU API is in use (or Software for CPU fallback).
GpuCommand
A GPU command that can be recorded and submitted.
ShaderStage
Shader stage.
TextureFormat
Texture format.

Traits§

BackendContext
Trait that every concrete GPU backend must implement.

Functions§

detect_backend
Detect the best available GPU backend on this platform.