pub struct TextureFormat(pub ColorFormat, pub Type);Expand description
Texture format representation with color format and component format.
Tuple Fields§
§0: ColorFormat§1: TypeImplementations§
Source§impl TextureFormat
impl TextureFormat
Sourcepub fn new(color: ColorFormat, component: Type) -> Self
pub fn new(color: ColorFormat, component: Type) -> Self
Creates a new TextureFormat.
Sourcepub fn color_format(&self) -> &ColorFormat
pub fn color_format(&self) -> &ColorFormat
Gets the ColorFormat.
Sourcepub fn component_format(&self) -> &Type
pub fn component_format(&self) -> &Type
Gets the ComponentFormat.
Source§impl TextureFormat
impl TextureFormat
Sourcepub fn internal_format(&self) -> u32
pub fn internal_format(&self) -> u32
Gets the internal OpenGL format.
Sourcepub fn get_format_type(&self) -> (u32, u32)
pub fn get_format_type(&self) -> (u32, u32)
Gets format and type.
Trait Implementations§
Source§impl Clone for TextureFormat
impl Clone for TextureFormat
Source§fn clone(&self) -> TextureFormat
fn clone(&self) -> TextureFormat
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 moreAuto Trait Implementations§
impl Freeze for TextureFormat
impl RefUnwindSafe for TextureFormat
impl Send for TextureFormat
impl Sync for TextureFormat
impl Unpin for TextureFormat
impl UnwindSafe for TextureFormat
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