Skip to content

A lightweight Clip Studio Paint alternative with real-time multiplayer collaborative drawing. Built with Tauri and React.

1.0 KB
Raw Blame
//! Complete WGSL shader library for InkStudio's native `wgpu` DX12 layer compositor.

pub mod adjustment;
pub mod blend_modes;
pub mod blit;
pub mod frame_poly;
pub mod impasto_lighting;
pub mod layer_styles;
pub mod layer_tile;
pub mod live_dab;
pub mod screentone;
pub mod viewport_present;

pub use adjustment::build_adjustment_shader_wgsl;
pub use blend_modes::{
    blend_mode_needs_backdrop, blend_mode_to_code, clip_color_cpu, BLEND_MODES_WGSL,
};
pub use blit::build_blit_shader_wgsl;
pub use frame_poly::FRAME_POLY_SHADER_WGSL;
pub use impasto_lighting::{IMPASTO_HEIGHT_PROJECT_WGSL, IMPASTO_LIGHTING_WGSL};
pub use layer_styles::{
    LAYER_STYLES_COMPOSITE_WGSL, SEPARABLE_ALPHA_BLUR_WGSL, STROKE_SDF_HORIZ_WGSL,
    STROKE_SDF_VERT_WGSL,
};
pub use layer_tile::build_layer_tile_shader_wgsl;
pub use live_dab::{
    build_live_stroke_merge_wgsl, LIVE_DAB_VIEWPORT_WGSL, SPARSE_MASK_PROJECT_WGSL,
    SPARSE_STROKE_PROJECT_WGSL,
};
pub use screentone::SCREENTONE_WGSL;
pub use viewport_present::VIEWPORT_PRESENT_WGSL;