Struct rin::gl::cubemap::Builder [−][src]
pub struct Builder<'a>(_);
Implementations
impl<'a> Builder<'a>
[src]
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]
I: Image,
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]
I: CubemapImage,
<I as Image>::DataType: Copy,
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]
&self,
dds: &I,
level: usize
) -> Result<CubeMap, Error> where
I: CubemapImage,
<I as Image>::DataType: Copy,
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]
&self,
dds: &I,
level: usize
) -> Result<CubeMap, Error> where
I: CubemapImage,
<I as Image>::DataType: Copy,
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<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]