Struct dotrix_core::assets::texture::Texture [−][src]
pub struct Texture {
pub width: u32,
pub height: u32,
pub depth: u32,
pub data: Vec<u8>,
pub buffer: TextureBuffer,
pub changed: bool,
}
Expand description
Texture asset
Fields
width: u32
Texture width in pixels
height: u32
Texture height in pixels
depth: u32
Texture depth
data: Vec<u8>
Raw texture data
buffer: TextureBuffer
Texture buffer
changed: bool
Was the asset changed
Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Texture
impl !UnwindSafe for Texture
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more