[][src]Struct ddsfile::Header10

pub struct Header10 {
    pub dxgi_format: DxgiFormat,
    pub resource_dimension: D3D10ResourceDimension,
    pub array_size: u32,
    pub alpha_mode: AlphaMode,
    // some fields omitted


dxgi_format: DxgiFormatresource_dimension: D3D10ResourceDimensionarray_size: u32alpha_mode: AlphaMode

This is called misc_flags2 in the official documentation


impl Header10[src]

pub fn new(
    format: DxgiFormat,
    is_cubemap: bool,
    resource_dimension: D3D10ResourceDimension,
    array_size: u32,
    alpha_mode: AlphaMode
) -> Header10

pub fn read<R: Read>(r: &mut R) -> Result<Header10, Error>[src]

pub fn write<W: Write>(&self, w: &mut W) -> Result<(), Error>[src]

Trait Implementations

impl Clone for Header10[src]

impl Default for Header10[src]

impl Debug for Header10[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Any for T where
    T: 'static + ?Sized