Enum webgl_rs::glenum::ProgramParameter
source · pub enum ProgramParameter {
DeleteStatus,
LinkStatus,
ValidateStatus,
AttachedShaders,
ActiveAttributes,
ActiveUniforms,
TransformFeedbackBufferMode,
TransformFeedbackVaryings,
ActiveUniformBlocks,
}
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
Passed to getProgramParameter to determine if a shader was deleted via deleteProgram. Returns true if it was, false otherwise.
LinkStatus
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
Passed to getProgramParameter after calling validateProgram to determine if it is valid. Returns false if errors were found.
AttachedShaders
Passed to getProgramParameter after calling attachShader to determine if the shader was attached correctly. Returns false if errors occurred.
ActiveAttributes
Passed to getProgramParameter to get the number of attributes active in a program.
ActiveUniforms
Passed to getProgramParameter to get the number of uniforms active in a program.
TransformFeedbackBufferMode
Passed to getProgramParameter to get the buffer mode when transform feedback is active.
TransformFeedbackVaryings
Passed to getProgramParameter to get the number of varying variables to capture in transform feedback mode
ActiveUniformBlocks
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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ProgramParameter
impl Debug for ProgramParameter
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
impl Copy for ProgramParameter
Auto Trait Implementations§
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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§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
. Read more