Struct three_d::CPUTexture [−][src]
pub struct CPUTexture<T: TextureValueType> { pub data: Vec<T>, pub width: usize, pub height: usize, pub depth: usize, pub format: Format, pub min_filter: Interpolation, pub mag_filter: Interpolation, pub mip_map_filter: Option<Interpolation>, pub wrap_s: Wrapping, pub wrap_t: Wrapping, pub wrap_r: Wrapping, }
Expand description
A CPU-side version of a texture, for example 2D texture. Can be constructed manually or loaded via io.
Fields
data: Vec<T>
width: usize
height: usize
depth: usize
format: Format
min_filter: Interpolation
mag_filter: Interpolation
mip_map_filter: Option<Interpolation>
wrap_s: Wrapping
wrap_t: Wrapping
wrap_r: Wrapping
Implementations
impl<T: TextureValueType> CPUTexture<T>
[src]
impl<T: TextureValueType> CPUTexture<T>
[src]Trait Implementations
impl<T: TextureValueType> Debug for CPUTexture<T>
[src]
impl<T: TextureValueType> Debug for CPUTexture<T>
[src]impl<T: TextureValueType> Default for CPUTexture<T>
[src]
impl<T: TextureValueType> Default for CPUTexture<T>
[src]Auto Trait Implementations
impl<T> RefUnwindSafe for CPUTexture<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for CPUTexture<T> where
T: Send,
T: Send,
impl<T> Sync for CPUTexture<T> where
T: Sync,
T: Sync,
impl<T> Unpin for CPUTexture<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for CPUTexture<T> where
T: UnwindSafe,
T: UnwindSafe,