[−][src]Struct duku::Cubemap
Texture representation of an environment.
Contains 6 square side textures of a cube that can be sampled by a direction in the shader.
Example
ⓘThis example is not tested
let skybox = duku.create_cubemap_png(CubemapSides { top: "path/to/top.png", bottom: "path/to/bottom.png", front: "path/to/front.png", back: "path/to/back.png", left: "path/to/left.png", right: "path/to/right.png", });
Implementations
impl Cubemap
[src]
pub const fn shader_index(&self) -> u32
[src]
Get index to be used in shader for sampling
Auto Trait Implementations
impl RefUnwindSafe for Cubemap
impl Send for Cubemap
impl Sync for Cubemap
impl Unpin for Cubemap
impl UnwindSafe for Cubemap
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,