[][src]Trait amethyst_rendy::mtl::StaticTextureSet

pub trait StaticTextureSet<'a>: Clone + Copy + Debug + PartialEq + Eq + Hash + Send + Sync + 'static {
    type Iter: Iterator<Item = &'a Handle<Texture>>;
    fn textures(mat: &'a Material) -> Self::Iter;

    fn len() -> usize { ... }
}

Trait providing generic access to a collection of texture handles

Associated Types

type Iter: Iterator<Item = &'a Handle<Texture>>

Iterator type to access this texture sets handles

Loading content...

Required methods

fn textures(mat: &'a Material) -> Self::Iter

Returns an iterator to the textures associated with a given material.

Loading content...

Provided methods

fn len() -> usize

ALWAYS RETURNS 1

Loading content...

Implementations on Foreign Types

impl<'a, A> StaticTextureSet<'a> for (A,) where
    A: StaticTextureSet<'a>, 
[src]

type Iter = A::Iter

impl<'a, A, B> StaticTextureSet<'a> for (A, B) where
    A: StaticTextureSet<'a>,
    B: StaticTextureSet<'a>, 
[src]

type Iter = Chain<A::Iter, B::Iter>

impl<'a, A, B, C> StaticTextureSet<'a> for (A, B, C) where
    A: StaticTextureSet<'a>,
    B: StaticTextureSet<'a>,
    C: StaticTextureSet<'a>, 
[src]

type Iter = Chain<A::Iter, Chain<B::Iter, C::Iter>>

impl<'a, A, B, C, D> StaticTextureSet<'a> for (A, B, C, D) where
    A: StaticTextureSet<'a>,
    B: StaticTextureSet<'a>,
    C: StaticTextureSet<'a>,
    D: StaticTextureSet<'a>, 
[src]

type Iter = Chain<A::Iter, Chain<B::Iter, Chain<C::Iter, D::Iter>>>

impl<'a, A, B, C, D, E> StaticTextureSet<'a> for (A, B, C, D, E) where
    A: StaticTextureSet<'a>,
    B: StaticTextureSet<'a>,
    C: StaticTextureSet<'a>,
    D: StaticTextureSet<'a>,
    E: StaticTextureSet<'a>, 
[src]

type Iter = Chain<A::Iter, Chain<B::Iter, Chain<C::Iter, Chain<D::Iter, E::Iter>>>>

impl<'a, A, B, C, D, E, F> StaticTextureSet<'a> for (A, B, C, D, E, F) where
    A: StaticTextureSet<'a>,
    B: StaticTextureSet<'a>,
    C: StaticTextureSet<'a>,
    D: StaticTextureSet<'a>,
    E: StaticTextureSet<'a>,
    F: StaticTextureSet<'a>, 
[src]

type Iter = Chain<A::Iter, Chain<B::Iter, Chain<C::Iter, Chain<D::Iter, Chain<E::Iter, F::Iter>>>>>

Loading content...

Implementors

impl<'a> StaticTextureSet<'a> for TexAlbedo[src]

type Iter = Once<&'a Handle<Texture>>

impl<'a> StaticTextureSet<'a> for TexAmbientOcclusion[src]

type Iter = Once<&'a Handle<Texture>>

impl<'a> StaticTextureSet<'a> for TexCavity[src]

type Iter = Once<&'a Handle<Texture>>

impl<'a> StaticTextureSet<'a> for TexEmission[src]

type Iter = Once<&'a Handle<Texture>>

impl<'a> StaticTextureSet<'a> for TexMetallicRoughness[src]

type Iter = Once<&'a Handle<Texture>>

impl<'a> StaticTextureSet<'a> for TexNormal[src]

type Iter = Once<&'a Handle<Texture>>

Loading content...