pub struct Texture {
raw: Image,
drop_guard: Option<DropGuard>,
block: Option<MemoryBlock<DeviceMemory>>,
usage: TextureUses,
format: TextureFormat,
raw_flags: ImageCreateFlags,
copy_size: CopyExtent,
view_formats: Vec<TextureFormat>,
}
Fields§
§raw: Image
§drop_guard: Option<DropGuard>
§block: Option<MemoryBlock<DeviceMemory>>
§usage: TextureUses
§format: TextureFormat
§raw_flags: ImageCreateFlags
§copy_size: CopyExtent
§view_formats: Vec<TextureFormat>
Implementations§
source§impl Texture
impl Texture
fn map_buffer_copies<T>(
&self,
regions: T,
) -> impl Iterator<Item = BufferImageCopy>where
T: Iterator<Item = BufferTextureCopy>,
Trait Implementations§
source§impl Borrow<Texture> for SurfaceTexture
impl Borrow<Texture> for SurfaceTexture
source§impl DynResource for Texture
impl DynResource for Texture
impl DynTexture for Texture
Auto Trait Implementations§
impl Freeze for Texture
impl !RefUnwindSafe for Texture
impl Send for Texture
impl Sync for Texture
impl Unpin for Texture
impl !UnwindSafe for Texture
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