pub struct TextureHandle {
pub texture: Texture,
pub view: TextureView,
pub width: u32,
pub height: u32,
}Expand description
A GPU texture together with its default view and dimensions.
Window systems (winit, egui) can blit this directly to the display surface without a CPU round-trip download.
Fields§
§texture: Texture§view: TextureView§width: u32§height: u32Auto Trait Implementations§
impl !RefUnwindSafe for TextureHandle
impl !UnwindSafe for TextureHandle
impl Freeze for TextureHandle
impl Send for TextureHandle
impl Sync for TextureHandle
impl Unpin for TextureHandle
impl UnsafeUnpin for TextureHandle
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