Composite layers in HDR color space

This commit is contained in:
Skyler Lehmkuhl
2025-12-08 04:20:48 -05:00
parent 2caea564ac
commit 420f3bf7b9
9 changed files with 1512 additions and 25 deletions
@@ -0,0 +1,19 @@
// GPU rendering infrastructure for HDR compositing pipeline
//
// This module provides:
// - Buffer pooling for efficient render target management
// - Compositor for layer blending with proper opacity
// - Effect pipeline for GPU shader effects
pub mod buffer_pool;
pub mod compositor;
// Re-export commonly used types
pub use buffer_pool::{BufferHandle, BufferPool, BufferSpec, BufferFormat};
pub use compositor::{Compositor, CompositorLayer, BlendMode};
/// Standard HDR internal texture format (16-bit float per channel)
pub const HDR_FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Rgba16Float;
/// Display output format (8-bit sRGB)
pub const DISPLAY_FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Rgba8Unorm;