Struct ark_api_ffi::render_v1::TextureDescription
source · [−]#[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: TextureTypeformat: TextureFormatwidth: u64height: u64depth: u64mipmaps: u32array_len: u32Trait Implementations
sourceimpl CheckedBitPattern for TextureDescription
impl CheckedBitPattern for TextureDescription
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. Read more
sourcefn 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.
sourceimpl Clone for TextureDescription
impl Clone for TextureDescription
sourcefn clone(&self) -> TextureDescription
fn clone(&self) -> TextureDescription
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for TextureDescription
impl Debug for TextureDescription
sourceimpl PartialEq<TextureDescription> for TextureDescription
impl PartialEq<TextureDescription> for TextureDescription
sourcefn eq(&self, other: &TextureDescription) -> bool
fn eq(&self, other: &TextureDescription) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &TextureDescription) -> bool
fn ne(&self, other: &TextureDescription) -> bool
This method tests for !=.
impl Copy for TextureDescription
impl Eq for TextureDescription
impl NoUninit for TextureDescription
impl StructuralEq for TextureDescription
impl StructuralPartialEq for TextureDescription
Auto Trait Implementations
impl RefUnwindSafe for TextureDescription
impl Send for TextureDescription
impl Sync for TextureDescription
impl Unpin for TextureDescription
impl UnwindSafe for TextureDescription
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more