Type Alias piston_window::prelude::G2dTexture

source ·
pub type G2dTexture = Texture<Resources>;
Expand description

Texture type compatible with G2d.

Aliased Type§

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

Fields§

§surface: Texture<Resources, R8_G8_B8_A8>

Pixel storage for texture.

§sampler: Sampler<Resources>

Sampler for texture.

§view: ShaderResourceView<Resources, [f32; 4]>

View used by shader.