Improve texture caching by allowing weak refs and more formats (#4447)

This commit is contained in:
Timon
2026-09-16 00:10:53 +02:00
committed by Dennis Kobert
parent 9b9ea5741d
commit f9bdac7fd2
11 changed files with 208 additions and 164 deletions

View File

@@ -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(),
}
}
}