Struct three_d::core::texture::CPUTexture [−][src]
pub struct CPUTexture<T: TextureDataType> {
pub data: Vec<T>,
pub width: u32,
pub height: u32,
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,
}
Expand description
Fields
data: Vec<T>
width: u32
height: u32
format: Format
min_filter: Interpolation
mag_filter: Interpolation
mip_map_filter: Option<Interpolation>
Specifies whether mipmaps should be created for this texture and what type of interpolation to use between the two closest mipmaps. Note, however, that the mipmaps only will be created if the width and height of the texture are power of two.
wrap_s: Wrapping
wrap_t: Wrapping
Implementations
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for CPUTexture<T> where
T: RefUnwindSafe,
impl<T> Send for CPUTexture<T> where
T: Send,
impl<T> Sync for CPUTexture<T> where
T: Sync,
impl<T> Unpin for CPUTexture<T> where
T: Unpin,
impl<T> UnwindSafe for CPUTexture<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more