Expand description
Hardware-accelerated wgpu 3D renderer with double-single RTE precision and
single-draw-call programmable vertex pulling for planetary/terrain tile pyramids.
Structs§
- Wgpu3D
Renderer - Hardware-accelerated
wgpu3D renderer capable of rendering directly into anyTextureView(swapchain surface) or offscreen RGBA target.
Constants§
- ATLAS_
TILE_ SIZE - Standard terrain imagery tile dimension in the GPU
Texture2DArrayatlas. - DEFAULT_
MESH_ UPLOAD_ BUDGET - Default maximum new tile meshes copied to the GPU storage slab per frame.
- DEFAULT_
TEXTURE_ UPLOAD_ BUDGET - Default maximum new tile textures uploaded to the GPU atlas per frame during continuous flight.
- MAX_
ATLAS_ LAYERS - Maximum imagery layers pre-allocated in the GPU
Texture2DArrayatlas.
Functions§
- build_
terrain_ grid_ indices - Builds a shared triangle index buffer for a terrain grid
(grid_res x grid_res)with optional skirts. - fallback_
frame_ from_ scene3d - Converts a regular
Scene3D(primitives/custom meshes) into aRetainedTerrainFrameso standard 3D scenes also accelerate seamlessly throughWgpu3DRenderer. - preferred_
wgpu_ limits - Returns adapter-supported
wgpu::Limitsrequesting up toMAX_ATLAS_LAYERStexture array layers. - request_
working_ adapter_ and_ device - Acquires the first compatible
wgpu::Adapterwhoserequest_devicesucceeds, preferring discrete GPUs first and automatically failing over across integrated/software adapters when the primary GPU driver reports device loss or resource exhaustion. - split_
f64_ to_ f32 - Splits a 64-bit float into
(hi, lo)32-bit floats for GPU double-single emulation.