use super::resource::ManagedWgpuTexture;
use super::*;
#[derive(Debug)]
pub(crate) struct WgpuTextureManager {
pub(super) external_views: HashMap<TextureId, ExternalTextureView>,
pub(super) managed_textures: HashMap<SnapshotTextureId, ManagedWgpuTexture>,
pub(super) managed_by_texture_id: HashMap<TextureId, SnapshotTextureId>,
pub(super) destroyed_managed_textures: HashMap<SnapshotTextureId, u64>,
}
#[derive(Debug)]
pub(super) struct ExternalTextureView {
pub(super) view: TextureView,
pub(super) revision: NonZeroU64,
}
impl Default for WgpuTextureManager {
fn default() -> Self {
Self::new()
}
}