Expand description
Real (non-stub) headless GPU rendering for OxiUI, built on wgpu.
This module implements oxiui_core::paint::RenderBackend on a GPU target
that is created headlessly — there is no window or swap-chain surface.
Draw commands are rasterised into an offscreen colour texture which can be
read back to CPU memory for testing or off-screen export.
Sub-modules:
device— headlessInstance/adapter/device/queue + offscreen texture.pipeline—solid.wgslandgradient.wgslcompiled pipelines.buffer—#[repr(C)]Podvertex / uniform layouts + quad emitters.tessellator— CPU path flattening and stroke/fill tessellation.renderer—WgpuBackendand theRenderBackendimplementation.
Re-exports§
pub use buffer::Globals;pub use buffer::GradientVertex;pub use buffer::Vertex;pub use device::GpuContext;pub use device::TARGET_FORMAT;pub use pipeline::GradientPipeline;pub use pipeline::SolidPipeline;pub use renderer::WgpuBackend;
Modules§
- buffer
- Vertex / uniform data layouts for the headless solid-fill + gradient pipelines.
- device
- Headless wgpu device acquisition and the offscreen colour target.
- pipeline
- Render-pipeline construction for the solid-fill / SDF shader and the gradient pipeline.
- renderer
WgpuBackend: headless GPURenderBackendimplementing Tier 1 primitives and gradient fills.- tessellator
- CPU-side path tessellator for
DrawCommand::FillPathandDrawCommand::StrokePath.