pub struct WgpuTextureCreator {
pub device: Arc<Device>,
pub queue: Arc<Queue>,
pub layout: Arc<BindGroupLayout>,
pub textures: Arc<Mutex<TextureMap>>,
}Fields§
§device: Arc<Device>§queue: Arc<Queue>§layout: Arc<BindGroupLayout>§textures: Arc<Mutex<TextureMap>>Trait Implementations§
Source§impl Debug for WgpuTextureCreator
impl Debug for WgpuTextureCreator
Source§impl TextureCreator for WgpuTextureCreator
impl TextureCreator for WgpuTextureCreator
fn handle_from_size( &self, name: &str, size: UVec2, color: Color, ) -> TextureHandle
fn handle_from_image(&self, name: &str, image: &RgbaImage) -> TextureHandle
fn update_texture_region( &self, handle: TextureHandle, image: &RgbaImage, region: IRect, )
fn update_texture(&self, image: &RgbaImage, handle: TextureHandle)
Auto Trait Implementations§
impl !RefUnwindSafe for WgpuTextureCreator
impl !UnwindSafe for WgpuTextureCreator
impl Freeze for WgpuTextureCreator
impl Send for WgpuTextureCreator
impl Sync for WgpuTextureCreator
impl Unpin for WgpuTextureCreator
impl UnsafeUnpin for WgpuTextureCreator
Blanket Implementations§
impl<T> Any for Twhere
T: Any,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> Component for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more