pub enum Value {
Show 19 variants
Bool(bool),
U8(u8),
U16(u16),
U32(u32),
I32(i32),
F32(f32),
Vec2U16([u16; 2]),
Vec4U16([u16; 4]),
Vec2I([i32; 2]),
Vec2U([u32; 2]),
Vec3U([u32; 3]),
Vec4U([u32; 4]),
Vec2F([f32; 2]),
Vec3F([f32; 3]),
Vec4F([f32; 4]),
Mat4F([f32; 16]),
Mat4x3F([f32; 12]),
Resource {
slot: ResourceSlot,
value_type: ValueType,
},
Struct {
value_type: ValueType,
fields: Vec<Value>,
},
}Expand description
The Value enum stores the VM values that can move between registers, locals, and buffers.
Variants§
Bool(bool)
U8(u8)
U16(u16)
U32(u32)
I32(i32)
F32(f32)
Vec2U16([u16; 2])
Vec4U16([u16; 4])
Vec2I([i32; 2])
Vec2U([u32; 2])
Vec3U([u32; 3])
Vec4U([u32; 4])
Vec2F([f32; 2])
Vec3F([f32; 3])
Vec4F([f32; 4])
Mat4F([f32; 16])
Mat4x3F([f32; 12])
Resource
Struct
Trait Implementations§
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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