[][src]Struct ugli_webgl::WEBGL_debug_shaders

pub struct WEBGL_debug_shaders(_);

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.

Methods

impl WEBGL_debug_shaders[src]

pub fn get_translated_shader_source(&self, shader: &WebGLShader) -> String[src]

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

impl AsRef<Reference> for WEBGL_debug_shaders[src]

impl Clone for WEBGL_debug_shaders[src]

impl Debug for WEBGL_debug_shaders[src]

impl Extension for WEBGL_debug_shaders[src]

impl From<WEBGL_debug_shaders> for Reference[src]

impl InstanceOf for WEBGL_debug_shaders[src]

impl JsSerialize for WEBGL_debug_shaders[src]

impl JsSerializeOwned for WEBGL_debug_shaders[src]

impl<'_r> JsSerializeOwned for &'_r WEBGL_debug_shaders[src]

impl ReferenceType for WEBGL_debug_shaders[src]

impl<'_r> TryFrom<&'_r Reference> for WEBGL_debug_shaders[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<'_r> TryFrom<&'_r Value> for WEBGL_debug_shaders[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Reference> for WEBGL_debug_shaders[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Value> for WEBGL_debug_shaders[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<WEBGL_debug_shaders> for Reference[src]

type Error = Void

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.