Struct amethyst_renderer::TextureBuilder[][src]

pub struct TextureBuilder<D, T> { /* fields omitted */ }

Builds new textures.

Methods

impl TextureBuilder<[u8; 4], u8>
[src]

Creates a new TextureBuilder from the given RGBA color value.

impl<D, T> TextureBuilder<D, T> where
    D: AsRef<[T]>,
    T: Pod + Copy
[src]

Creates a new TextureBuilder with the given raw texture data.

Sets the SamplerInfo for the texture

Sets the number of mipmap levels to generate.

FIXME: Only encoders can generate mipmap levels.

Sets the texture width and height in pixels.

Sets whether the texture is mutable or not.

Sets the texture format

Sets the texture channel type

Builds and returns the new texture.

Trait Implementations

impl<D: Clone, T: Clone> Clone for TextureBuilder<D, T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<D: Debug, T: Debug> Debug for TextureBuilder<D, T>
[src]

Formats the value using the given formatter. Read more

impl<D: Eq, T: Eq> Eq for TextureBuilder<D, T>
[src]

impl<D: Hash, T: Hash> Hash for TextureBuilder<D, T>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<D: PartialEq, T: PartialEq> PartialEq for TextureBuilder<D, T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl<D, T> Send for TextureBuilder<D, T> where
    D: Send,
    T: Send

impl<D, T> Sync for TextureBuilder<D, T> where
    D: Sync,
    T: Sync