Struct three_d::Texture2D [−][src]
pub struct Texture2D { /* fields omitted */ }
Expand description
A 2D texture, basically an image that is transferred to the GPU. For a texture that can be rendered into, see ColorTargetTexture2D.
Implementations
impl Texture2D
[src]
impl Texture2D
[src]pub fn new<T: TextureValueType>(
context: &Context,
cpu_texture: &CPUTexture<T>
) -> Result<Texture2D, Error>
[src]
pub fn new<T: TextureValueType>(
context: &Context,
cpu_texture: &CPUTexture<T>
) -> Result<Texture2D, Error>
[src]Construcs a new texture with the given data.