Struct webgl_stdweb::WEBGL_debug_shaders
source · pub struct WEBGL_debug_shaders(_);
Expand description
Extension
WebGL uses the GLSL ES 2.0 spec on all platforms, and translates these shaders to the host platform’s native language (HLSL, GLSL, and even GLSL ES). For debugging purpose, it is useful to be able to examine the shader after translation. This extension exposes a new function getTranslatedShaderSource for such purposes.
Implementations
sourceimpl WEBGL_debug_shaders
impl WEBGL_debug_shaders
sourcepub fn get_translated_shader_source(&self, shader: &WebGLShader) -> String
pub fn get_translated_shader_source(&self, shader: &WebGLShader) -> String
If no source has been defined, compileShader() has not been called, or the translation has failed for shader, an empty string is returned; otherwise, return the translated source.
Trait Implementations
sourceimpl AsRef<Reference> for WEBGL_debug_shaders
impl AsRef<Reference> for WEBGL_debug_shaders
sourceimpl Clone for WEBGL_debug_shaders
impl Clone for WEBGL_debug_shaders
sourcefn clone(&self) -> WEBGL_debug_shaders
fn clone(&self) -> WEBGL_debug_shaders
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for WEBGL_debug_shaders
impl Debug for WEBGL_debug_shaders
sourceimpl From<WEBGL_debug_shaders> for Reference
impl From<WEBGL_debug_shaders> for Reference
sourcefn from(value: WEBGL_debug_shaders) -> Self
fn from(value: WEBGL_debug_shaders) -> Self
Converts to this type from the input type.
sourceimpl InstanceOf for WEBGL_debug_shaders
impl InstanceOf for WEBGL_debug_shaders
sourcefn instance_of(_reference: &Reference) -> bool
fn instance_of(_reference: &Reference) -> bool
Checks whenever a given Reference if of type
Self
.sourceimpl ReferenceType for WEBGL_debug_shaders
impl ReferenceType for WEBGL_debug_shaders
sourceunsafe fn from_reference_unchecked(reference: Reference) -> Self
unsafe fn from_reference_unchecked(reference: Reference) -> Self
Converts a given reference into a concrete reference-like wrapper.
Doesn’t do any type checking; highly unsafe to use! Read more
sourceimpl<'_r> TryFrom<&'_r Reference> for WEBGL_debug_shaders
impl<'_r> TryFrom<&'_r Reference> for WEBGL_debug_shaders
sourceimpl<'_r> TryFrom<&'_r Value> for WEBGL_debug_shaders
impl<'_r> TryFrom<&'_r Value> for WEBGL_debug_shaders
sourceimpl TryFrom<Reference> for WEBGL_debug_shaders
impl TryFrom<Reference> for WEBGL_debug_shaders
sourceimpl TryFrom<Value> for WEBGL_debug_shaders
impl TryFrom<Value> for WEBGL_debug_shaders
sourceimpl TryFrom<WEBGL_debug_shaders> for Reference
impl TryFrom<WEBGL_debug_shaders> for Reference
impl JsSerialize for WEBGL_debug_shaders
Auto Trait Implementations
impl RefUnwindSafe for WEBGL_debug_shaders
impl Send for WEBGL_debug_shaders
impl Sync for WEBGL_debug_shaders
impl Unpin for WEBGL_debug_shaders
impl UnwindSafe for WEBGL_debug_shaders
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more