Expand description
Strata Render: Display List, Stacking Context Compositor, Analytical SDF GPU Rasterizer, and Unified 3D Engine.
§Examples
use strata_render::compositor::DisplayList;
let dl = DisplayList::new();
assert_eq!(dl.len(), 0);Re-exports§
pub use canvas2d::canvas_verbs_bounds;pub use canvas2d::flatten_canvas_verbs;pub use canvas2d::measure_canvas_text_metrics;pub use canvas2d::parse_canvas_font;pub use canvas2d::point_in_subpaths_even_odd;pub use canvas2d::rasterize_canvas_commands;pub use canvas2d::Canvas2DContext;pub use canvas2d::CanvasCommand;pub use canvas2d::CanvasLineCap;pub use canvas2d::CanvasLineJoin;pub use canvas2d::CanvasPathVerb;pub use canvas2d::CanvasTextAlign;pub use canvas2d::CanvasTextBaseline;pub use canvas2d::CanvasTextMetrics;pub use canvas2d::IntoRoundRectRadii;pub use compositor::Compositor;pub use compositor::DamageTracker;pub use compositor::DisplayList;pub use compositor::DrawCommand;pub use custom_shader::CustomShaderPipeline;pub use custom_shader::FaceCullMode;pub use custom_shader::GpuRenderCallback;pub use custom_shader::GpuRenderContext;pub use custom_shader::PrimitiveTopology;pub use custom_shader::WgslShaderSource;pub use custom_shader::WGSL_COMPUTE_TELEMETRY_SHADER;pub use custom_shader::WGSL_PBR_3D_SHADER;pub use font::get_glyph;pub use font::get_glyph_or_fallback;pub use font::map_common_unicode;pub use font::FontFallbackChain;pub use font::GenericFontFamily;pub use font::OsPlatform;pub use font::SystemFontResolver;pub use font::FONT_GLYPH_HEIGHT;pub use font::FONT_GLYPH_WIDTH;pub use font::TOFU_GLYPH;pub use geometry3d::generate_box;pub use geometry3d::generate_custom;pub use geometry3d::generate_cylinder;pub use geometry3d::generate_plane;pub use geometry3d::generate_sphere;pub use geometry3d::MeshBuffers;pub use geometry3d::Vertex3D;pub use gpu_pipeline::rect_relation_to_clip_polys;pub use gpu_pipeline::ClipContainment;pub use gpu_pipeline::GpuBatch;pub use gpu_pipeline::GpuBatchCollector;pub use gpu_pipeline::GpuBatchSummary;pub use gpu_pipeline::GpuClipMask;pub use gpu_pipeline::GpuClipSpan;pub use gpu_pipeline::GpuClipVertex;pub use gpu_pipeline::GpuCompareFunction;pub use gpu_pipeline::GpuDepthStencilState;pub use gpu_pipeline::GpuPathBatch;pub use gpu_pipeline::GpuPathPipeline;pub use gpu_pipeline::GpuPresentationPipeline;pub use gpu_pipeline::GpuPrimitiveTopology;pub use gpu_pipeline::GpuQuadInstance;pub use gpu_pipeline::GpuRenderPipeline;pub use gpu_pipeline::GpuShaderCompiler;pub use gpu_pipeline::GpuShaderModule;pub use gpu_pipeline::GpuSlugTextPipeline;pub use gpu_pipeline::GpuUniforms;pub use gpu_pipeline::GpuVertex;pub use gpu_pipeline::GpuVertexAttribute;pub use gpu_pipeline::GpuVertexBufferLayout;pub use gpu_pipeline::GpuVertexFormat;pub use gpu_pipeline::GpuVertexStepMode;pub use gpu_pipeline::Hardware2DFrame;pub use gpu_pipeline::HardwareDrawOp;pub use gpu_pipeline::HardwareDrawOpKind;pub use gpu_pipeline::HardwareRenderItem;pub use gpu_pipeline::UnifiedGpuCollector;pub use gpu_pipeline::QUAD_VERTICES;pub use gpu_pipeline::SIGNED_QUAD_VERTICES;pub use gpu_pipeline::WGSL_ANALYTICAL_QUAD_SHADER;pub use gpu_pipeline::WGSL_STENCIL_CLIP_SHADER;pub use wgpu_2d::GpuStencilClipPipeline;pub use wgpu_2d::Wgpu2DRenderer;pub use kinetic_scroll::KineticScrollController;pub use kinetic_scroll::ScrollAxis;pub use kinetic_scroll::DEFAULT_FRICTION;pub use kinetic_scroll::REST_VELOCITY_THRESHOLD;pub use kinetic_scroll::RUBBER_BAND_MAX_LIMIT;pub use kinetic_scroll::SPRING_DAMPING;pub use kinetic_scroll::SPRING_STIFFNESS;pub use math3d::Mat4;pub use math3d::Ray3D;pub use math3d::Vec3;pub use math3d::Vec4;pub use orbit_controls::OrbitControls;pub use orbit_controls::OrbitInteractionMode;pub use rasterizer::sd_rounded_rect;pub use rasterizer::sdf_coverage;pub use rasterizer::FrameBuffer;pub use rasterizer::Rasterizer;pub use scene3d::Camera3D;pub use scene3d::Geometry3D;pub use scene3d::Light3D;pub use scene3d::Material3D;pub use scene3d::Mesh3D;pub use scene3d::Scene3D;pub use scene3d::Transform3D;pub use shared_target::render_hybrid_frame;pub use shm_compositor::CompositorTelemetry;pub use shm_compositor::ShmFrameSlot;pub use shm_compositor::ShmRingBuffer;pub use shm_compositor::SlotState;pub use shm_compositor::ZeroCopyCompositor;pub use swapchain::HardwareBackend;pub use swapchain::HardwareSwapchainPresenter;pub use swapchain::PresentError;pub use swapchain::PresentMode;pub use swapchain::SoftwareSurfacePresenter;pub use swapchain::SurfacePresenter;pub use swapchain::SwapchainCompositor;pub use swapchain::SwapchainFormat;pub use blur::BackdropFilterPipeline;pub use blur::WGSL_SEPARABLE_GAUSSIAN_BLUR_SHADER;pub use gpu3d::Gpu3DPipeline;pub use gpu3d::Gpu3DUniforms;pub use gpu3d::Gpu3DVertex;pub use gpu3d::WGSL_3D_STANDARD_SHADER;pub use gpu_context::GpuAdapter;pub use gpu_context::GpuBackend;pub use gpu_context::GpuBufferHandle;pub use gpu_context::GpuBufferUsage;pub use gpu_context::GpuCommandEncoder;pub use gpu_context::GpuContext;pub use gpu_context::GpuDevice;pub use gpu_context::GpuDeviceType;pub use gpu_context::GpuFeatures;pub use gpu_context::GpuLimits;pub use gpu_context::GpuMemoryLocation;pub use gpu_context::GpuOffscreenSurface;pub use gpu_context::GpuPresentMode;pub use gpu_context::GpuQueue;pub use gpu_context::GpuRenderPassDescriptor;pub use gpu_context::GpuSurfacePresenter;pub use gpu_context::GpuSwapchain;pub use gpu_context::GpuTextureHandle;pub use multi_window_compositor::MultiWindowCompositor;pub use multi_window_compositor::WindowSwapchainState;pub use texture_atlas::AtlasRegion;pub use texture_atlas::GpuTextureAtlas;pub use tiling::OcclusionTracker;pub use tiling::Tile;pub use tiling::TileCoord;pub use tiling::TilingSet;pub use tiling::DEFAULT_TILE_SIZE;pub use strata_gpu_path as gpu_path;
Modules§
- blur
- Hardware-Accelerated Separable Gaussian Blur & CSS Backdrop Filters.
- camera64
- f64 camera and relative-to-centre (RTC) geometry path.
- canvas2d
- W3C-Compatible Immediate-Mode 2D Canvas Engine (
CanvasRenderingContext2D). - compositor
- CSS 2.1 Appendix E 7-Layer Stacking Context Compositor & Display List Generator.
- custom_
shader - Low-Level GPU Escape Hatch, Custom WGSL Shader Pipelines, and Compute/Fragment Execution.
- font
- Embedded 8x16 anti-aliased bitmap font table for zero-dependency software text rasterization.
- geometry3d
- Parametric 3D Geometry Generators: Box, Sphere, Plane, Cylinder, and Custom Buffers.
- gpu3d
- Hardware-Accelerated 3D GPU Render Pipeline and WGSL Shaders.
- gpu_
context - Direct Hardware GPU Device Abstraction and Presentation Context.
- gpu_
pipeline - GPU Quad and Rounded Rectangle Presentation Pipeline.
- gpu_
wgpu - Hardware-accelerated
wgpu3D renderer with double-single RTE precision and single-draw-call programmable vertex pulling for planetary/terrain tile pyramids. - kinetic_
scroll - Kinetic Momentum Scrolling, Touch Physics, Rubber-Banding, and Scrollbar Geometry.
- math3d
- Zero-dependency 3D linear algebra engine: Vec3, Vec4, Quat, Mat4, and Ray3D.
- multi_
window_ compositor - Multi-Window Swapchain Compositor and Per-Window Damage Tracking.
- orbit_
controls - OrbitControls: Interactive 3D Camera Controller with Spherical Kinematics, Panning, and Damping.
- overlay3d
- 2D overlay pass drawn over depth-tested 3D geometry.
- prelude
- rasterizer
- Analytical Signed Distance Field (SDF) 2D Rasterizer & Headless Software FrameBuffer.
- rasterizer3d
- 3D Software Rasterizer & 2D/3D Viewport Compositing Bridge.
- scene3d
- Unified 3D Engine: High-level Three.js ergonomics paired seamlessly with low-level Vulkan/OpenGL hardware pipelines.
- shared_
target - Shared Render Target: Hybrid 2D/3D Viewport Compositing Bridge.
- shm_
compositor - Zero-Copy Shared Memory Frame Transfer and Compositing Engine.
- swapchain
- Hardware Swapchain Presentation Pipeline, Surface Presenter Trait, and Damage Scissoring.
- terrain3d
- Incremental mesh construction for tiled terrain, relief walls, building prisms, and their roofs.
- texture3d
- Texture resources, sampler state, and per-triangle sampling for the 3D path.
- texture_
atlas - GPU Texture Atlas with Shelf Bin-Packing, Sub-Allocation, and LRU Eviction in VRAM.
- tiling
- Viewport Tiling, 256x256 Surface Partitioning, and Front-to-Back Quad Occlusion Culling.
- wgpu_2d
- Hardware
wgpu2D, Stencil Clip, Analytical Vector Path, and Slug Text Presenter Pipelines.
Structs§
- SvgItem
- An individual SVG vector or text item within a layout node.
- Transform2D
- 2x3 Affine Transformation Matrix.
Enums§
- Fill
Rule - SVG fill rule.
- Stroke
Line Cap - SVG stroke line cap.
- Stroke
Line Join - SVG stroke line join.