Expand description
GPU Quad and Rounded Rectangle Presentation Pipeline.
Provides instanced GPU memory representations (GpuQuadInstance, GpuUniforms, GpuBatch)
and analytical Signed Distance Field (SDF) WGSL shaders for zero-CPU hardware rendering.
Re-exports§
pub use crate::wgpu_2d::GpuStencilClipPipeline;pub use crate::wgpu_2d::Wgpu2DRenderer;
Structs§
- GpuBatch
- Batch collection of GPU instanced quads ready for upload to GPU buffers.
- GpuBatch
Collector - Instanced UI Draw Call Batch Collector for complex layouts (Goal 07).
- GpuBatch
Summary - Statistics and primitive breakdown for batched GPU dispatches.
- GpuClip
Mask - Compiled polygonal/stencil clip mask for circular, rounded, or arbitrary CAD clip paths.
- GpuClip
Span - Maps a contiguous slice
[start..end)of batched GPU primitives to an optionalGpuClipMask. - GpuClip
Vertex - 2D vertex coordinate for triangulated GPU stencil clip mask geometry.
- GpuDepth
Stencil State - Depth/stencil state for hardware depth attachment.
- GpuPath
Batch - Batch collection of GPU instanced path segments ready for upload to storage/vertex buffers.
- GpuPath
Pipeline - High-level orchestration pipeline for compiling vector paths into GPU compute/render buffers.
- GpuPresentation
Pipeline - High-level orchestration pipeline for compiling display lists into GPU instance buffers.
- GpuQuad
Instance - Exact 96-byte GPU memory instance representation for an instanced quad or rounded rectangle.
- GpuRender
Pipeline - Hardware-accelerated GPU render pipeline configuration.
- GpuShader
Compiler - Compiler and validator for WGSL shaders ensuring runtime hardware compatibility.
- GpuShader
Module - Parsed and compiled WGSL shader module with verified reflection data.
- GpuSlug
Text Pipeline - Slug-tier analytical GPU text compilation pipeline.
- GpuUniforms
- 16-byte aligned Uniform Buffer object for viewport projection.
- GpuVertex
- 2D Vertex coordinates for rendering unit instanced quads.
- GpuVertex
Attribute - Individual vertex attribute descriptor.
- GpuVertex
Buffer Layout - Vertex buffer layout specifying stride and attributes.
- Hardware2D
Frame - Complete compiled hardware 2D/3D frame ready for live
wgpuswapchain or offscreen execution. - Hardware
Draw Op - Contiguous range
[start..end)of batched GPU instances/segments sharing clip mask and scissor.
Enums§
- Clip
Containment - Spatial containment relation of a primitive or quad against an active polygonal clip stack.
- GpuCompare
Function - Depth comparison function for early-Z culling and depth bounds testing.
- GpuPrimitive
Topology - Primitive topology for rasterization.
- GpuVertex
Format - Vertex attribute data format.
- GpuVertex
Step Mode - Step mode for vertex buffer stepping.
- Hardware
Draw OpKind - GPU primitive kind for a coalesced hardware draw call inside
Hardware2DFrame. - Hardware
Render Item - Ordered hardware render step preserving exact Z-order across 2D GPU batches and 3D viewports.
Constants§
- QUAD_
VERTICES - Six vertices composing two triangles for a unit rectangle [0, 0] to [1, 1].
- SIGNED_
QUAD_ VERTICES - Six vertices composing two triangles for a signed unit quad
[-1, -1]to[1, 1], matchingstrata_gpu_path::WGSL_ANALYTICAL_PATH_RASTER_SHADER. - WGSL_
ANALYTICAL_ QUAD_ SHADER - Embedded WGSL shader for instanced quad rendering with analytical SDF anti-aliased corners and borders.
- WGSL_
STENCIL_ CLIP_ SHADER - Embedded WGSL shader for non-rectangular polygonal clip stencil masks.
Functions§
- rect_
relation_ to_ clip_ polys - Evaluates whether axis-aligned
ris completely outside, partially clipped by, or strictly inside a stack of non-rectangular clip subpath layers (even-oddfill per layer).
Type Aliases§
- Unified
GpuCollector - Alias matching hardware swapchain batch collection across
strata_renderandstrata_platform.