mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-17 23:38:06 +08:00
* rust-gpu alpha.1: update nix flake * rust-gpu alpha.1: disable non-working mold shell hook * rust-gpu alpha.1: update rust-gpu to `0.10.0-alpha.1` on crates * Review * Fix gpu nodes * Reduce wasm size --------- Co-authored-by: Timon <me@timon.zip>
21 lines
501 B
Rust
21 lines
501 B
Rust
use crate::WgpuContext;
|
|
use crate::shader_runtime::per_pixel_adjust_runtime::PerPixelAdjustShaderRuntime;
|
|
|
|
pub mod per_pixel_adjust_runtime;
|
|
|
|
pub const FULLSCREEN_VERTEX_SHADER_NAME: &str = "fullscreen_vertex_fullscreen_vertex";
|
|
|
|
pub struct ShaderRuntime {
|
|
context: WgpuContext,
|
|
per_pixel_adjust: PerPixelAdjustShaderRuntime,
|
|
}
|
|
|
|
impl ShaderRuntime {
|
|
pub fn new(context: &WgpuContext) -> Self {
|
|
Self {
|
|
context: context.clone(),
|
|
per_pixel_adjust: PerPixelAdjustShaderRuntime::new(),
|
|
}
|
|
}
|
|
}
|