Struct comfy_wgpu::WgpuTextureCreator
source · pub struct WgpuTextureCreator {
pub device: Arc<Device>,
pub queue: Arc<Queue>,
pub layout: Arc<BindGroupLayout>,
pub textures: Arc<Mutex<HashMap<TextureHandle, (BindGroup, Texture)>>>,
}Fields§
§device: Arc<Device>§queue: Arc<Queue>§layout: Arc<BindGroupLayout>§textures: Arc<Mutex<HashMap<TextureHandle, (BindGroup, Texture)>>>Trait Implementations§
source§impl Debug for WgpuTextureCreator
impl Debug for WgpuTextureCreator
source§impl TextureCreator for WgpuTextureCreator
impl TextureCreator for WgpuTextureCreator
fn handle_from_image(&self, name: &str, image: &DynamicImage) -> TextureHandle
fn update_texture(&self, image: &DynamicImage, handle: TextureHandle)
Auto Trait Implementations§
impl !RefUnwindSafe for WgpuTextureCreator
impl Send for WgpuTextureCreator
impl Sync for WgpuTextureCreator
impl Unpin for WgpuTextureCreator
impl !UnwindSafe for WgpuTextureCreator
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more