pub enum ParamType {
Float(f32),
Float2([f32; 2]),
Float3(Box<[f32; 3]>),
Float4(Box<[f32; 4]>),
Surface(Box<Surface>),
Sampler2D(Box<Sampler2D>),
Other(Box<Element>),
}
Expand description
A parameter’s type. We do not have full support here,
but unknown types can be retrieved in the Other
variant.
Variants§
Float(f32)
float
type
Float2([f32; 2])
float2
type
Float3(Box<[f32; 3]>)
float3
type
Float4(Box<[f32; 4]>)
float4
type
Surface(Box<Surface>)
surface
type
Sampler2D(Box<Sampler2D>)
sampler2D
type
Other(Box<Element>)
Any other type, stored as a raw XML element.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParamType
impl RefUnwindSafe for ParamType
impl Send for ParamType
impl Sync for ParamType
impl Unpin for ParamType
impl UnwindSafe for ParamType
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