Struct amethyst_renderer::TextureBuilder [] [src]

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

Builds new textures.

Methods

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

[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]

[src]

Creates a new TextureBuilder with the given raw texture data.

[src]

Sets the SamplerInfo for the texture

[src]

Sets the number of mipmap levels to generate.

FIXME: Only encoders can generate mipmap levels.

[src]

Sets the texture width and height in pixels.

[src]

Sets whether the texture is mutable or not.

[src]

Sets the texture format

[src]

Sets the texture channel type

[src]

Builds and returns the new texture.

Trait Implementations

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Formats the value using the given formatter.

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

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

[src]

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

1.3.0
[src]

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

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

[src]

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

[src]

This method tests for !=.