[][src]Struct gli_rs::Texture3D

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

3d texture

Methods

impl Texture3D[src]

pub fn new_empty() -> Texture3D[src]

Create an empty texture 3D.

pub fn new(format: Format, extent: Extent3d, levels: usize) -> Texture3D[src]

Create a texture3d and allocate a new storage_linear.

pub fn new_with_mipmap_chain(format: Format, extent: Extent3d) -> Texture3D[src]

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

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

Create a texture3d 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
) -> Texture3D
[src]

Create a texture3d view with an existing storage_linear.

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

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

pub fn get_level(&self, level: usize) -> GliImage[src]

Create a view of the image identified by Level in the mipmap chain of the texture.

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

Trait Implementations

impl Eq for Texture3D[src]

impl GliTexture for Texture3D[src]

type ExtentType = Extent3d

impl PartialEq<Texture3D> for Texture3D[src]

fn eq(&self, other: &Texture3D) -> 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: &Texture3D) -> 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.