Enum amethyst_renderer::Texture [] [src]

pub enum Texture<R: Resources> {
    Constant([f32; 4]),
    Texture(ShaderResourceView<R, [f32; 4]>),
}

A renderable texture resource.

Variants

A texture with one constant RGBA color value.

Handle to a slice of texture memory.

Methods

impl<R: Resources> Texture<R>
[src]

Takes the given constant color texture and, using the encoder, returns a slice of texture memory.

Trait Implementations

impl<R: Clone + Resources> Clone for Texture<R>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more