Skip to main content

Module gpu_pipeline

Module gpu_pipeline 

Source
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.
GpuBatchCollector
Instanced UI Draw Call Batch Collector for complex layouts (Goal 07).
GpuBatchSummary
Statistics and primitive breakdown for batched GPU dispatches.
GpuClipMask
Compiled polygonal/stencil clip mask for circular, rounded, or arbitrary CAD clip paths.
GpuClipSpan
Maps a contiguous slice [start..end) of batched GPU primitives to an optional GpuClipMask.
GpuClipVertex
2D vertex coordinate for triangulated GPU stencil clip mask geometry.
GpuDepthStencilState
Depth/stencil state for hardware depth attachment.
GpuPathBatch
Batch collection of GPU instanced path segments ready for upload to storage/vertex buffers.
GpuPathPipeline
High-level orchestration pipeline for compiling vector paths into GPU compute/render buffers.
GpuPresentationPipeline
High-level orchestration pipeline for compiling display lists into GPU instance buffers.
GpuQuadInstance
Exact 96-byte GPU memory instance representation for an instanced quad or rounded rectangle.
GpuRenderPipeline
Hardware-accelerated GPU render pipeline configuration.
GpuShaderCompiler
Compiler and validator for WGSL shaders ensuring runtime hardware compatibility.
GpuShaderModule
Parsed and compiled WGSL shader module with verified reflection data.
GpuSlugTextPipeline
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.
GpuVertexAttribute
Individual vertex attribute descriptor.
GpuVertexBufferLayout
Vertex buffer layout specifying stride and attributes.
Hardware2DFrame
Complete compiled hardware 2D/3D frame ready for live wgpu swapchain or offscreen execution.
HardwareDrawOp
Contiguous range [start..end) of batched GPU instances/segments sharing clip mask and scissor.

Enums§

ClipContainment
Spatial containment relation of a primitive or quad against an active polygonal clip stack.
GpuCompareFunction
Depth comparison function for early-Z culling and depth bounds testing.
GpuPrimitiveTopology
Primitive topology for rasterization.
GpuVertexFormat
Vertex attribute data format.
GpuVertexStepMode
Step mode for vertex buffer stepping.
HardwareDrawOpKind
GPU primitive kind for a coalesced hardware draw call inside Hardware2DFrame.
HardwareRenderItem
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], matching strata_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 r is completely outside, partially clipped by, or strictly inside a stack of non-rectangular clip subpath layers (even-odd fill per layer).

Type Aliases§

UnifiedGpuCollector
Alias matching hardware swapchain batch collection across strata_render and strata_platform.