Struct rin::gl::cubemap::Builder[][src]

pub struct Builder<'a>(_);

Implementations

impl<'a> Builder<'a>[src]

pub fn from_format(&self, format: Format) -> Result<CubeMap, Error>[src]

Creates a new cubemap using the specified format

pub fn from_faces<I>(&self, faces: &Faces<I>) -> Result<CubeMap, Error> where
    I: Image
[src]

allocate a cubemap from a set of images in a Faces struct

pub fn from_cubemap_image<I>(&self, dds: &I) -> Result<CubeMap, Error> where
    I: CubemapImage,
    <I as Image>::DataType: Copy
[src]

Allocate a cubemap from a CubemapImage that contains all the faces

pub fn from_cubemap_image_level<I>(
    &self,
    dds: &I,
    level: usize
) -> Result<CubeMap, Error> where
    I: CubemapImage,
    <I as Image>::DataType: Copy
[src]

Allocate a cubemap from a CubemapImage that contains all the faces

Reads only one specific level from the cubemap image

pub fn from_cubemap_image_level_allocate_mips<I>(
    &self,
    dds: &I,
    level: usize
) -> Result<CubeMap, Error> where
    I: CubemapImage,
    <I as Image>::DataType: Copy
[src]

Allocate a cubemap from a CubemapImage that contains all the faces

Reads only one specific level from the cubemap image and allocates the texture with the max number of mips possible for the base level size

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Builder<'a>

impl<'a> !Send for Builder<'a>

impl<'a> !Sync for Builder<'a>

impl<'a> Unpin for Builder<'a>

impl<'a> !UnwindSafe for Builder<'a>

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> Downcast for T where
    T: Any
[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, 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]