pub struct TextureState {
pub handle: u64,
pub width: u32,
pub height: u32,
pub allocated: bool,
pub generation: u32,
}Expand description
Represents the runtime state of an individual texture in the G-Buffer.
Fields§
§handle: u64GPU texture handle (opaque).
width: u32Current width.
height: u32Current height.
allocated: boolWhether this texture has been allocated.
generation: u32Generation counter (incremented on resize/recreate).
Implementations§
Trait Implementations§
Source§impl Clone for TextureState
impl Clone for TextureState
Source§fn clone(&self) -> TextureState
fn clone(&self) -> TextureState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextureState
impl Debug for TextureState
Auto Trait Implementations§
impl Freeze for TextureState
impl RefUnwindSafe for TextureState
impl Send for TextureState
impl Sync for TextureState
impl Unpin for TextureState
impl UnsafeUnpin for TextureState
impl UnwindSafe for TextureState
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