[][src]Struct mozangle::shaders::ShaderValidator

pub struct ShaderValidator { /* fields omitted */ }

Implementations

impl ShaderValidator[src]

pub fn new(
    shader_type: u32,
    spec: ShaderSpec,
    output: Output,
    resources: &BuiltInResources
) -> Option<ShaderValidator>
[src]

Create a new ShaderValidator instance NB: To call this you should have called first initialize()

pub fn for_webgl(
    shader_type: u32,
    output: Output,
    resources: &BuiltInResources
) -> Option<ShaderValidator>
[src]

pub fn for_webgl2(
    shader_type: u32,
    output: Output,
    resources: &BuiltInResources
) -> Option<ShaderValidator>
[src]

pub fn compile(
    &self,
    strings: &[&str],
    options: ShCompileOptions
) -> Result<(), &'static str>
[src]

pub fn object_code(&self) -> String[src]

pub fn info_log(&self) -> String[src]

pub fn compile_and_translate(
    &self,
    strings: &[&str]
) -> Result<String, &'static str>
[src]

pub fn uniform_name_map(&self) -> HashMap<String, String>[src]

Returns a map from uniform name in the original shader to uniform name in the compiled shader.

The map can be empty if the SH_VARIABLES option wasn't specified.

Trait Implementations

impl Drop for ShaderValidator[src]

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, 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.