#[non_exhaustive]pub enum DataTextureData {
F32(Vec<f32>),
U32(Vec<u32>),
}Expand description
texture.type / texture.format, the only two combinations the ladder
needs: FloatType + RGBAFormat (rgba32float) and UnsignedIntType +
RedIntegerFormat (r32uint).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
F32(Vec<f32>)
Float32Array, four channels per texel — rgba32float.
U32(Vec<u32>)
Uint32Array, one channel per texel — r32uint.
Trait Implementations§
Source§impl Clone for DataTextureData
impl Clone for DataTextureData
Auto Trait Implementations§
impl Freeze for DataTextureData
impl RefUnwindSafe for DataTextureData
impl Send for DataTextureData
impl Sync for DataTextureData
impl Unpin for DataTextureData
impl UnsafeUnpin for DataTextureData
impl UnwindSafe for DataTextureData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more