Struct piston_window::Texture [] [src]

pub struct Texture<R> where
    R: Resources
{ pub surface: Texture<R, R8_G8_B8_A8>, pub sampler: Sampler<R>, pub view: ShaderResourceView<R, [f32; 4]>, }

Represents a texture.

Fields

Pixel storage for texture.

Sampler for texture.

View used by shader.

Methods

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

[src]

Returns empty texture.

[src]

Creates a texture from path.

[src]

Creates a texture from image.

[src]

Creates texture from memory alpha.

[src]

Updates the texture with an image.

Trait Implementations

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

[src]

[src]

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

[src]

impl<R> ImageSize for Texture<R> where
    R: Resources
[src]

[src]

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

[src]

impl<R, C> UpdateTexture<Encoder<R, C>> for Texture<R> where
    C: Buffer<R>,
    R: Resources
[src]

[src]

impl<F, R> CreateTexture<F> for Texture<R> where
    F: Factory<R>,
    R: Resources
[src]

[src]