Struct bgfx_sys::bgfx_texture_info_s
source · #[repr(C)]pub struct bgfx_texture_info_s {
pub format: bgfx_texture_format_t,
pub storageSize: u32,
pub width: u16,
pub height: u16,
pub depth: u16,
pub numLayers: u16,
pub numMips: u8,
pub bitsPerPixel: u8,
pub cubeMap: bool,
}
Expand description
Texture info.
Fields§
§format: bgfx_texture_format_t
§storageSize: u32
Texture format.
width: u16
Total amount of bytes required to store texture.
height: u16
Texture width.
depth: u16
Texture height.
numLayers: u16
Texture depth.
numMips: u8
Number of layers in texture array.
bitsPerPixel: u8
Number of MIP maps.
cubeMap: bool
Format bits per pixel.
Trait Implementations§
source§impl Clone for bgfx_texture_info_s
impl Clone for bgfx_texture_info_s
source§fn clone(&self) -> bgfx_texture_info_s
fn clone(&self) -> bgfx_texture_info_s
Returns a copy 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 bgfx_texture_info_s
impl Debug for bgfx_texture_info_s
impl Copy for bgfx_texture_info_s
Auto Trait Implementations§
impl Freeze for bgfx_texture_info_s
impl RefUnwindSafe for bgfx_texture_info_s
impl Send for bgfx_texture_info_s
impl Sync for bgfx_texture_info_s
impl Unpin for bgfx_texture_info_s
impl UnwindSafe for bgfx_texture_info_s
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