use std::sync::{Arc, Mutex};
use crate::proxies;
/// Used for textures bindings in shaders
pub struct GpuSamplerSet {
pub(crate) id: Mutex<usize>,
pub(crate) textures: Vec<(u32, Arc<dyn proxies::TextureProxy>)>,
}
impl GpuSamplerSet {
pub(crate) fn from_textures(textures: &[(u32, Arc<dyn proxies::TextureProxy>)]) -> Arc<Self> {
Arc::new(Self {
id: Mutex::new(usize::MAX),
textures: textures.to_vec(),
})
}
}