Struct amethyst_renderer::Texture
[−]
pub struct Texture { /* fields omitted */ }
Handle to a GPU texture resource.
Methods
impl Texture
[src]
fn from_data<T: Pod, D: AsRef<[T]>>(data: D) -> TextureBuilder<D, T>
Builds a new texture with the given raw texture data.
fn from_color_val<C: Into<[f32; 4]>>(rgba: C) -> TextureBuilder<[u8; 4], u8>
Builds a new texture with the given raw texture data.
fn sampler(&self) -> &Sampler<Resources>
Returns the sampler for the texture.
fn view(&self) -> &RawShaderResourceView<Resources>
Returns the texture's raw shader resource view.
Trait Implementations
impl Clone for Texture
[src]
fn clone(&self) -> Texture
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
impl Debug for Texture
[src]
impl Eq for Texture
[src]
impl Hash for Texture
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more