pub struct ProgramWGL { /* private fields */ }Trait Implementations§
Source§impl From<ProgramWGL> for JsValue
impl From<ProgramWGL> for JsValue
Source§fn from(value: ProgramWGL) -> Self
fn from(value: ProgramWGL) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for ProgramWGL
impl FromWasmAbi for ProgramWGL
Source§impl IntoWasmAbi for ProgramWGL
impl IntoWasmAbi for ProgramWGL
Source§impl LongRefFromWasmAbi for ProgramWGL
impl LongRefFromWasmAbi for ProgramWGL
Source§impl OptionFromWasmAbi for ProgramWGL
impl OptionFromWasmAbi for ProgramWGL
Source§impl OptionIntoWasmAbi for ProgramWGL
impl OptionIntoWasmAbi for ProgramWGL
Source§impl Program for ProgramWGL
impl Program for ProgramWGL
type Vertex = VertexWGL
type Fragment = FragmentWGL
type Uniform = UniformWGL
fn get_vertex(&self) -> &VertexWGL
fn get_fragment(&self) -> &FragmentWGL
fn validate(&self)
fn get_uniforms(&self) -> &[UniformWGL]
fn set_bool(&self, key: &UniformWGL, value: bool)
fn set_int(&self, key: &UniformWGL, value: i32)
fn set_uint(&self, key: &UniformWGL, value: u32)
fn set_float(&self, key: &UniformWGL, value: f32)
fn set_double(&self, key: &UniformWGL, value: f64)
fn set_bools(&self, key: &UniformWGL, value: &[bool])
fn set_ints(&self, key: &UniformWGL, value: &[i32])
fn set_uints(&self, key: &UniformWGL, value: &[u32])
fn set_floats(&self, key: &UniformWGL, value: &[f32])
fn set_doubles(&self, key: &UniformWGL, value: &[f64])
fn set_float_mat2(&self, key: &Self::Uniform, value: Matrix2<f32>)
fn set_float_mat3(&self, key: &Self::Uniform, value: Matrix3<f32>)
fn set_float_mat4(&self, key: &Self::Uniform, value: Matrix4<f32>)
fn set_double_mat2(&self, key: &Self::Uniform, value: Matrix2<f64>)
fn set_double_mat3(&self, key: &Self::Uniform, value: Matrix3<f64>)
fn set_double_mat4(&self, key: &Self::Uniform, value: Matrix4<f64>)
fn get_uniform(&self, name: &str) -> Option<&Self::Uniform>
fn set_bool_by_name(&self, key: &str, value: bool) -> bool
fn set_bools_by_name(&self, key: &str, value: &[bool]) -> bool
fn set_int_by_name(&self, key: &str, value: i32) -> bool
fn set_ints_by_name(&self, key: &str, value: &[i32]) -> bool
fn set_uint_by_name(&self, key: &str, value: u32) -> bool
fn set_uints_by_name(&self, key: &str, value: &[u32]) -> bool
fn set_float_by_name(&self, key: &str, value: f32) -> bool
fn set_floats_by_name(&self, key: &str, value: &[f32]) -> bool
fn set_double_by_name(&self, key: &str, value: f64) -> bool
fn set_doubles_by_name(&self, key: &str, value: &[f64]) -> bool
fn set_float_mat2_by_name(&self, key: &str, value: Matrix2<f32>) -> bool
fn set_float_mat3_by_name(&self, key: &str, value: Matrix3<f32>) -> bool
fn set_float_mat4_by_name(&self, key: &str, value: Matrix4<f32>) -> bool
fn set_double_mat2_by_name(&self, key: &str, value: Matrix2<f64>) -> bool
fn set_double_mat3_by_name(&self, key: &str, value: Matrix3<f64>) -> bool
fn set_double_mat4_by_name(&self, key: &str, value: Matrix4<f64>) -> bool
Source§impl RefFromWasmAbi for ProgramWGL
impl RefFromWasmAbi for ProgramWGL
Source§type Anchor = RcRef<ProgramWGL>
type Anchor = RcRef<ProgramWGL>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for ProgramWGL
impl RefMutFromWasmAbi for ProgramWGL
Source§impl TryFromJsValue for ProgramWGL
impl TryFromJsValue for ProgramWGL
Source§impl VectorFromWasmAbi for ProgramWGL
impl VectorFromWasmAbi for ProgramWGL
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[ProgramWGL]>
Source§impl VectorIntoJsValue for ProgramWGL
impl VectorIntoJsValue for ProgramWGL
fn vector_into_jsvalue(vector: Box<[ProgramWGL]>) -> JsValue
Source§impl VectorIntoWasmAbi for ProgramWGL
impl VectorIntoWasmAbi for ProgramWGL
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[ProgramWGL]>) -> Self::Abi
Source§impl WasmDescribeVector for ProgramWGL
impl WasmDescribeVector for ProgramWGL
impl SupportsConstructor for ProgramWGL
impl SupportsInstanceProperty for ProgramWGL
impl SupportsStaticProperty for ProgramWGL
Auto Trait Implementations§
impl Freeze for ProgramWGL
impl RefUnwindSafe for ProgramWGL
impl !Send for ProgramWGL
impl !Sync for ProgramWGL
impl Unpin for ProgramWGL
impl UnwindSafe for ProgramWGL
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> 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::AbiSource§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.