pub struct TextureDesc {
pub label: &'static str,
pub width: u32,
pub height: u32,
pub depth: u32,
pub dimension: TextureDimension,
pub format: TextureFormat,
pub usage: TextureUsage,
}Expand description
Everything needed to create a texture.
Fields§
§label: &'static strDebug label.
width: u32Width in texels.
height: u32Height in texels.
depth: u32Depth in texels; one for 2-D textures.
dimension: TextureDimensionWhether the texture is 2-D or 3-D.
format: TextureFormatTexel format.
usage: TextureUsagePermitted usages.
Trait Implementations§
Source§impl Clone for TextureDesc
impl Clone for TextureDesc
impl Copy for TextureDesc
Source§impl Debug for TextureDesc
impl Debug for TextureDesc
impl Eq for TextureDesc
Source§impl PartialEq for TextureDesc
impl PartialEq for TextureDesc
impl StructuralPartialEq for TextureDesc
Auto Trait Implementations§
impl Freeze for TextureDesc
impl RefUnwindSafe for TextureDesc
impl Send for TextureDesc
impl Sync for TextureDesc
impl Unpin for TextureDesc
impl UnsafeUnpin for TextureDesc
impl UnwindSafe for TextureDesc
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