pub enum TextureCubeData {
RU8(Vec<u8>, Vec<u8>, Vec<u8>, Vec<u8>, Vec<u8>, Vec<u8>),
RgU8(Vec<[u8; 2]>, Vec<[u8; 2]>, Vec<[u8; 2]>, Vec<[u8; 2]>, Vec<[u8; 2]>, Vec<[u8; 2]>),
RgbU8(Vec<[u8; 3]>, Vec<[u8; 3]>, Vec<[u8; 3]>, Vec<[u8; 3]>, Vec<[u8; 3]>, Vec<[u8; 3]>),
RgbaU8(Vec<[u8; 4]>, Vec<[u8; 4]>, Vec<[u8; 4]>, Vec<[u8; 4]>, Vec<[u8; 4]>, Vec<[u8; 4]>),
RF16(Vec<f16>, Vec<f16>, Vec<f16>, Vec<f16>, Vec<f16>, Vec<f16>),
RgF16(Vec<[f16; 2]>, Vec<[f16; 2]>, Vec<[f16; 2]>, Vec<[f16; 2]>, Vec<[f16; 2]>, Vec<[f16; 2]>),
RgbF16(Vec<[f16; 3]>, Vec<[f16; 3]>, Vec<[f16; 3]>, Vec<[f16; 3]>, Vec<[f16; 3]>, Vec<[f16; 3]>),
RgbaF16(Vec<[f16; 4]>, Vec<[f16; 4]>, Vec<[f16; 4]>, Vec<[f16; 4]>, Vec<[f16; 4]>, Vec<[f16; 4]>),
RF32(Vec<f32>, Vec<f32>, Vec<f32>, Vec<f32>, Vec<f32>, Vec<f32>),
RgF32(Vec<[f32; 2]>, Vec<[f32; 2]>, Vec<[f32; 2]>, Vec<[f32; 2]>, Vec<[f32; 2]>, Vec<[f32; 2]>),
RgbF32(Vec<[f32; 3]>, Vec<[f32; 3]>, Vec<[f32; 3]>, Vec<[f32; 3]>, Vec<[f32; 3]>, Vec<[f32; 3]>),
RgbaF32(Vec<[f32; 4]>, Vec<[f32; 4]>, Vec<[f32; 4]>, Vec<[f32; 4]>, Vec<[f32; 4]>, Vec<[f32; 4]>),
}Expand description
The pixel data for a CpuTextureCube.
Variants
RU8(Vec<u8>, Vec<u8>, Vec<u8>, Vec<u8>, Vec<u8>, Vec<u8>)
byte in the red channel.
RgU8(Vec<[u8; 2]>, Vec<[u8; 2]>, Vec<[u8; 2]>, Vec<[u8; 2]>, Vec<[u8; 2]>, Vec<[u8; 2]>)
byte in the red and green channel.
RgbU8(Vec<[u8; 3]>, Vec<[u8; 3]>, Vec<[u8; 3]>, Vec<[u8; 3]>, Vec<[u8; 3]>, Vec<[u8; 3]>)
byte in the red, green and blue channel.
RgbaU8(Vec<[u8; 4]>, Vec<[u8; 4]>, Vec<[u8; 4]>, Vec<[u8; 4]>, Vec<[u8; 4]>, Vec<[u8; 4]>)
byte in the red, green, blue and alpha channel.
RF16(Vec<f16>, Vec<f16>, Vec<f16>, Vec<f16>, Vec<f16>, Vec<f16>)
16-bit float in the red channel.
RgF16(Vec<[f16; 2]>, Vec<[f16; 2]>, Vec<[f16; 2]>, Vec<[f16; 2]>, Vec<[f16; 2]>, Vec<[f16; 2]>)
16-bit float in the red and green channel.
RgbF16(Vec<[f16; 3]>, Vec<[f16; 3]>, Vec<[f16; 3]>, Vec<[f16; 3]>, Vec<[f16; 3]>, Vec<[f16; 3]>)
16-bit float in the red, green and blue channel.
RgbaF16(Vec<[f16; 4]>, Vec<[f16; 4]>, Vec<[f16; 4]>, Vec<[f16; 4]>, Vec<[f16; 4]>, Vec<[f16; 4]>)
16-bit float in the red, green, blue and alpha channel.
RF32(Vec<f32>, Vec<f32>, Vec<f32>, Vec<f32>, Vec<f32>, Vec<f32>)
32-bit float in the red channel.
RgF32(Vec<[f32; 2]>, Vec<[f32; 2]>, Vec<[f32; 2]>, Vec<[f32; 2]>, Vec<[f32; 2]>, Vec<[f32; 2]>)
32-bit float in the red and green channel.
RgbF32(Vec<[f32; 3]>, Vec<[f32; 3]>, Vec<[f32; 3]>, Vec<[f32; 3]>, Vec<[f32; 3]>, Vec<[f32; 3]>)
32-bit float in the red, green and blue channel.
RgbaF32(Vec<[f32; 4]>, Vec<[f32; 4]>, Vec<[f32; 4]>, Vec<[f32; 4]>, Vec<[f32; 4]>, Vec<[f32; 4]>)
32-bit float in the red, green, blue and alpha channel.
Trait Implementations
sourceimpl Clone for TextureCubeData
impl Clone for TextureCubeData
sourcefn clone(&self) -> TextureCubeData
fn clone(&self) -> TextureCubeData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for TextureCubeData
impl Send for TextureCubeData
impl Sync for TextureCubeData
impl Unpin for TextureCubeData
impl UnwindSafe for TextureCubeData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more