#[repr(C)]pub struct TextureDescription {
pub texture_type: TextureType,
pub format: TextureFormat,
pub width: u64,
pub height: u64,
pub depth: u64,
pub mipmaps: u32,
pub array_len: u32,
}
Expand description
Describes a texture and is used for texture creation.
depth
,mips
,array_len
- Currently not supported by Ark but is made public for future-proofing the API.
Fields§
§texture_type: TextureType
§format: TextureFormat
§width: u64
§height: u64
§depth: u64
§mipmaps: u32
§array_len: u32
Trait Implementations§
Source§impl CheckedBitPattern for TextureDescription
impl CheckedBitPattern for TextureDescription
Source§type Bits = TextureDescriptionBits
type Bits = TextureDescriptionBits
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(bits: &TextureDescriptionBits) -> bool
fn is_valid_bit_pattern(bits: &TextureDescriptionBits) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.Source§impl Clone for TextureDescription
impl Clone for TextureDescription
Source§fn clone(&self) -> TextureDescription
fn clone(&self) -> TextureDescription
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 TextureDescription
impl Debug for TextureDescription
Source§impl PartialEq for TextureDescription
impl PartialEq for TextureDescription
impl Copy for TextureDescription
impl Eq for TextureDescription
impl NoUninit for TextureDescription
impl StructuralPartialEq for TextureDescription
Auto Trait Implementations§
impl Freeze for TextureDescription
impl RefUnwindSafe for TextureDescription
impl Send for TextureDescription
impl Sync for TextureDescription
impl Unpin for TextureDescription
impl UnwindSafe for TextureDescription
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