mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-18 17:28:12 +08:00
Improve texture caching by allowing weak refs and more formats (#4447)
This commit is contained in:
@@ -1,20 +1,10 @@
|
||||
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";
|
||||
|
||||
#[derive(Default)]
|
||||
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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user