[][src]Struct gli_rs::TextureCube

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

Cube map texture

Methods

impl TextureCube[src]

pub fn new_empty() -> TextureCube[src]

Create an empty texture cube.

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

Create a texture_cube.hpp and allocate a new storage_linear.

pub fn new_with_mipmap_chain(format: Format, extent: Extent2d) -> TextureCube[src]

Create a texture_cube.hpp and allocate a new storage_linear with a complete mipmap chain.

pub fn new_from(texture: &impl GliTexture) -> TextureCube[src]

Create a texture_cube.hpp view with an existing storage_linear.

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

Create a texture_cube.hpp view with an existing storage_linear.

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

Create a texture_cube.hpp view, reference a subset of an existing texture_cube.hpp instance.

pub fn get_face(&self, face: usize) -> Texture2D[src]

Create a view of the texture identified by Face in the texture cube.

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

Trait Implementations

impl Eq for TextureCube[src]

impl GliTexture for TextureCube[src]

type ExtentType = Extent2d

impl PartialEq<TextureCube> for TextureCube[src]

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