pub enum UniformType {
Show 15 variants
FloatVec2 = 35_664,
FloatVec3 = 35_665,
FloatVec4 = 35_666,
IntVec2 = 35_667,
IntVec3 = 35_668,
IntVec4 = 35_669,
Bool = 35_670,
BoolVec2 = 35_671,
BoolVec3 = 35_672,
BoolVec4 = 35_673,
FloatMat2 = 35_674,
FloatMat3 = 35_675,
FloatMat4 = 35_676,
Sampler2d = 35_678,
SamplerCube = 35_680,
}
Expand description
Constants passed to WebGLRenderingContext.hint()
Variants§
FloatVec2 = 35_664
FloatVec3 = 35_665
FloatVec4 = 35_666
IntVec2 = 35_667
IntVec3 = 35_668
IntVec4 = 35_669
Bool = 35_670
BoolVec2 = 35_671
BoolVec3 = 35_672
BoolVec4 = 35_673
FloatMat2 = 35_674
FloatMat3 = 35_675
FloatMat4 = 35_676
Sampler2d = 35_678
SamplerCube = 35_680
Trait Implementations§
Source§impl Clone for UniformType
impl Clone for UniformType
Source§fn clone(&self) -> UniformType
fn clone(&self) -> UniformType
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UniformType
impl Debug for UniformType
Source§impl From<UniformType> for JsValue
impl From<UniformType> for JsValue
Source§fn from(value: UniformType) -> Self
fn from(value: UniformType) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for UniformType
impl FromWasmAbi for UniformType
Source§impl IntoWasmAbi for UniformType
impl IntoWasmAbi for UniformType
Source§impl OptionFromWasmAbi for UniformType
impl OptionFromWasmAbi for UniformType
Source§impl OptionIntoWasmAbi for UniformType
impl OptionIntoWasmAbi for UniformType
Source§impl TryFromJsValue for UniformType
impl TryFromJsValue for UniformType
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <UniformType as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <UniformType as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for UniformType
impl VectorFromWasmAbi for UniformType
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[UniformType]>
Source§impl VectorIntoJsValue for UniformType
impl VectorIntoJsValue for UniformType
fn vector_into_jsvalue(vector: Box<[UniformType]>) -> JsValue
Source§impl VectorIntoWasmAbi for UniformType
impl VectorIntoWasmAbi for UniformType
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[UniformType]>) -> Self::Abi
Source§impl WasmDescribeVector for UniformType
impl WasmDescribeVector for UniformType
impl Copy for UniformType
Auto Trait Implementations§
impl Freeze for UniformType
impl RefUnwindSafe for UniformType
impl Send for UniformType
impl Sync for UniformType
impl Unpin for UniformType
impl UnwindSafe for UniformType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.