pub enum ProgramParameter {
DeleteStatus = 35_712,
LinkStatus = 35_714,
ValidateStatus = 35_715,
AttachedShaders = 35_717,
ActiveAttributes = 35_721,
ActiveUniforms = 35_718,
TransformFeedbackBufferMode = 35_967,
TransformFeedbackVaryings = 35_971,
ActiveUniformBlocks = 35_382,
}
Expand description
Constants passed to WebGLRenderingContext.getProgramParameter() TODO decide if im keeping it public or move to shader_program as it is only used internally i think
Variants§
DeleteStatus = 35_712
Passed to getProgramParameter to determine if a shader was deleted via deleteProgram. Returns true if it was, false otherwise.
LinkStatus = 35_714
Passed to getProgramParameter after calling linkProgram to determine if a program was linked correctly. Returns false if there were errors. Use getProgramInfoLog to find the exact error.
ValidateStatus = 35_715
Passed to getProgramParameter after calling validateProgram to determine if it is valid. Returns false if errors were found.
AttachedShaders = 35_717
Passed to getProgramParameter after calling attachShader to determine if the shader was attached correctly. Returns false if errors occurred.
ActiveAttributes = 35_721
Passed to getProgramParameter to get the number of attributes active in a program.
ActiveUniforms = 35_718
Passed to getProgramParameter to get the number of uniforms active in a program.
TransformFeedbackBufferMode = 35_967
Passed to getProgramParameter to get the buffer mode when transform feedback is active.
TransformFeedbackVaryings = 35_971
Passed to getProgramParameter to get the number of varying variables to capture in transform feedback mode
ActiveUniformBlocks = 35_382
Passed to getProgramParameter to get the number of uniform blocks containing active uniforms
Trait Implementations§
Source§impl Clone for ProgramParameter
impl Clone for ProgramParameter
Source§fn clone(&self) -> ProgramParameter
fn clone(&self) -> ProgramParameter
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ProgramParameter
impl Debug for ProgramParameter
Source§impl From<ProgramParameter> for JsValue
impl From<ProgramParameter> for JsValue
Source§fn from(value: ProgramParameter) -> Self
fn from(value: ProgramParameter) -> Self
Source§impl FromWasmAbi for ProgramParameter
impl FromWasmAbi for ProgramParameter
Source§impl IntoWasmAbi for ProgramParameter
impl IntoWasmAbi for ProgramParameter
Source§impl OptionFromWasmAbi for ProgramParameter
impl OptionFromWasmAbi for ProgramParameter
Source§impl OptionIntoWasmAbi for ProgramParameter
impl OptionIntoWasmAbi for ProgramParameter
Source§impl TryFromJsValue for ProgramParameter
impl TryFromJsValue for ProgramParameter
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <ProgramParameter as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <ProgramParameter as TryFromJsValue>::Error>
Source§impl VectorFromWasmAbi for ProgramParameter
impl VectorFromWasmAbi for ProgramParameter
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[ProgramParameter]>
Source§impl VectorIntoJsValue for ProgramParameter
impl VectorIntoJsValue for ProgramParameter
fn vector_into_jsvalue(vector: Box<[ProgramParameter]>) -> JsValue
Source§impl VectorIntoWasmAbi for ProgramParameter
impl VectorIntoWasmAbi for ProgramParameter
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[ProgramParameter]>) -> Self::Abi
Source§impl WasmDescribeVector for ProgramParameter
impl WasmDescribeVector for ProgramParameter
impl Copy for ProgramParameter
Auto Trait Implementations§
impl Freeze for ProgramParameter
impl RefUnwindSafe for ProgramParameter
impl Send for ProgramParameter
impl Sync for ProgramParameter
impl Unpin for ProgramParameter
impl UnwindSafe for ProgramParameter
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
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
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.