[][src]Struct gli_rs::Texture1DArray

#[repr(transparent)]
pub struct Texture1DArray { /* fields omitted */ }

1d array texture

Methods

impl Texture1DArray[src]

pub fn new_empty() -> Texture1DArray[src]

Create an empty texture 1D array.

pub fn new(
    format: Format,
    extent: Extent1d,
    layers: usize,
    levels: usize
) -> Texture1DArray
[src]

Create a texture1d_array and allocate a new storage_linear.

pub fn new_with_mipmap_chain(
    format: Format,
    extent: Extent1d,
    layers: usize
) -> Texture1DArray
[src]

Create a texture1d_array and allocate a new storage_linear with a complete mipmap chain.

pub fn share_from(texture: &impl GliTexture) -> Texture1DArray[src]

Create a texture1d_array view with an existing storage_linear.

pub fn share_from_detail(
    texture: &impl GliTexture,
    format: Format,
    base_layer: usize,
    max_layer: usize,
    base_face: usize,
    max_face: usize,
    base_level: usize,
    max_level: usize
) -> Texture1DArray
[src]

Create a texture1d_array view with an existing storage_linear.

pub fn share_from_subset(
    texture: &Texture1DArray,
    base_layer: usize,
    max_layer: usize,
    base_level: usize,
    max_level: usize
) -> Texture1DArray
[src]

Create a texture1d_array view, reference a subset of an existing texture1d_array instance.

pub fn get_layer(&self, layer: usize) -> Texture1D[src]

Create a view of the texture identified by Layer in the texture array.

This method is equivalent to [] operator in C++ version.

Trait Implementations

impl Eq for Texture1DArray[src]

impl GliTexture for Texture1DArray[src]

type ExtentType = Extent1d

impl PartialEq<Texture1DArray> for Texture1DArray[src]

fn eq(&self, other: &Texture1DArray) -> bool[src]

Compare two textures. Two textures are the same when the data, the format and the targets are the same.

fn ne(&self, other: &Texture1DArray) -> bool[src]

Compare two textures. Two textures are the same when the data, the format and the targets are the same.

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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.