graphics-core
Shared low-level, host-agnostic WGPU graphics substrate.
Scope
graphics-core provides minimal, zero-UI-framework GPU and math primitives:
renderer: Headless/sharedGpuContextinitialization and platform backend selectiontargets: Offscreen color/depth render targets (OffscreenTarget,TargetDimensions)readback: GPU-to-CPU color and depth readback buffers and row repackingmath: Viewport coordinate mapping and 3D ray unprojection (ViewportRect,Ray3D)camera:Camera2Dand external-hostRawCamerabatch2d: GPU instance layouts for 2D lines, cubic Beziers, quads, and gridshandles: Lightweight camera and float buffer handle statepipelines:DynamicGpuBuffer,alpha_blit,composite_finalize,gizmo2d, andpreview3d(including K=4 depth-peeling OIT)
Dependencies
Strictly minimal runtime dependencies: wgpu = "30", bytemuck = "1", and glam = "0.29".
License
Dual-licensed under MIT or Apache-2.0.