Add texture pool to render cache node (#3804)

* Add texture pool to render cache node

* Use direct texture copy instead of bitter and fix graphene_cli

* Remove warnings

* Fix wgpu import path

* Code review fixes
This commit is contained in:
Dennis Kobert
2026-03-11 10:44:21 +01:00
committed by GitHub
parent 2ac82a10b5
commit 116a4106c4
8 changed files with 87 additions and 47 deletions

View File

@@ -50,10 +50,10 @@ impl Size for web_sys::HtmlCanvasElement {
}
}
#[derive(Debug, Clone)]
#[derive(Debug, Clone, DynAny)]
pub struct ImageTexture {
#[cfg(feature = "wgpu")]
pub texture: wgpu::Texture,
pub texture: Arc<wgpu::Texture>,
#[cfg(not(feature = "wgpu"))]
pub texture: (),
}
@@ -89,10 +89,6 @@ impl PartialEq for ImageTexture {
}
}
unsafe impl StaticType for ImageTexture {
type Static = ImageTexture;
}
#[cfg(feature = "wgpu")]
impl Size for ImageTexture {
fn size(&self) -> UVec2 {