Struct glin::texture::LoadDataFormat[][src]

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

Use to allocate a new texture

Fields

texture_format: Formatformat: GLenumty: GLenum

Implementations

impl LoadDataFormat[src]

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

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

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

pub fn new_array(
    internal: GLenum,
    width: u32,
    height: u32,
    layers: u32
) -> Result<LoadDataFormat>
[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<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<T> Pointable for T[src]

type Init = T

The type for initializers.

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.