mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-17 15:28:04 +08:00
* Add tool for visualizing crate hierarchy * Update crate structure * Restructure crate viz and integrate crate into workspace * Remove transitive dependency edges * Move png / svg creation into the rust binary
21 lines
500 B
Rust
21 lines
500 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_vertexfullscreen_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(),
|
|
}
|
|
}
|
|
}
|