Enum amethyst_renderer::Texture
[−]
[src]
pub enum Texture<R: Resources> { Constant([f32; 4]), Texture(ShaderResourceView<R, [f32; 4]>), }
A renderable texture resource.
Variants
Constant([f32; 4])
A texture with one constant RGBA color value.
Texture(ShaderResourceView<R, [f32; 4]>)
Handle to a slice of texture memory.
Methods
impl<R: Resources> Texture<R>
[src]
fn to_view<C>(
&self,
texture: &ConstantColorTexture<R>,
encoder: &mut Encoder<R, C>
) -> ShaderResourceView<R, [f32; 4]> where
C: CommandBuffer<R>,
&self,
texture: &ConstantColorTexture<R>,
encoder: &mut Encoder<R, C>
) -> ShaderResourceView<R, [f32; 4]> where
C: CommandBuffer<R>,
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]
fn clone(&self) -> Texture<R>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more