pub struct Texture {
raw: Image,
memory: TextureMemory,
format: TextureFormat,
copy_size: CopyExtent,
identity: ResourceIdentity<Image>,
drop_guard: Option<DropGuard>,
}Fields§
§raw: Image§memory: TextureMemory§format: TextureFormat§copy_size: CopyExtent§identity: ResourceIdentity<Image>§drop_guard: Option<DropGuard>Implementations§
Source§impl Texture
impl Texture
fn map_buffer_copies<T>(
&self,
regions: T,
) -> impl Iterator<Item = BufferImageCopy>where
T: Iterator<Item = BufferTextureCopy>,
Source§impl Texture
impl Texture
Sourcepub unsafe fn raw_handle(&self) -> Image
pub unsafe fn raw_handle(&self) -> Image
§Safety
- The image handle must not be manually destroyed
Sourcepub unsafe fn memory(&self) -> &TextureMemory
pub unsafe fn memory(&self) -> &TextureMemory
§Safety
- The caller must not free the
vk::DeviceMemoryorgpu_alloc::MemoryBlockin the returnedTextureMemory.
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