Struct rin::gl::texture::LoadDataFormat[][src]

pub struct LoadDataFormat {
    pub texture_format: Format,
    pub format: u32,
    pub ty: u32,
}

Use to allocate a new texture

Fields

texture_format: Formatformat: u32ty: u32

Implementations

impl LoadDataFormat[src]

pub fn new(
    internal: u32,
    width: u32,
    height: u32
) -> Result<LoadDataFormat, Error>
[src]

pub fn new_3d(
    internal: u32,
    width: u32,
    height: u32,
    depth: u32
) -> Result<LoadDataFormat, Error>
[src]

pub fn new_1d(internal: u32, width: u32) -> Result<LoadDataFormat, Error>[src]

pub fn new_array(
    internal: u32,
    width: u32,
    height: u32,
    layers: u32
) -> Result<LoadDataFormat, Error>
[src]

pub fn texture_format(&self) -> &Format[src]

pub fn data_format(&self) -> DataFormat[src]

Trait Implementations

impl Clone for LoadDataFormat[src]

impl Debug for LoadDataFormat[src]

impl Hash for LoadDataFormat[src]

impl PartialEq<LoadDataFormat> for LoadDataFormat[src]

impl TryFrom<Format> for LoadDataFormat[src]

type Error = Error

The type returned in the event of a conversion error.

impl Eq for LoadDataFormat[src]

impl StructuralEq for LoadDataFormat[src]

impl StructuralPartialEq for LoadDataFormat[src]

Auto Trait Implementations

impl RefUnwindSafe for LoadDataFormat

impl Send for LoadDataFormat

impl Sync for LoadDataFormat

impl Unpin for LoadDataFormat

impl UnwindSafe for LoadDataFormat

Blanket Implementations

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

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]