[−][src]Struct mozangle::shaders::ShaderValidator
Implementations
impl ShaderValidator
[src]
pub fn new(
shader_type: u32,
spec: ShaderSpec,
output: Output,
resources: &BuiltInResources
) -> Option<ShaderValidator>
[src]
shader_type: u32,
spec: ShaderSpec,
output: Output,
resources: &BuiltInResources
) -> Option<ShaderValidator>
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]
shader_type: u32,
output: Output,
resources: &BuiltInResources
) -> Option<ShaderValidator>
pub fn for_webgl2(
shader_type: u32,
output: Output,
resources: &BuiltInResources
) -> Option<ShaderValidator>
[src]
shader_type: u32,
output: Output,
resources: &BuiltInResources
) -> Option<ShaderValidator>
pub fn compile(
&self,
strings: &[&str],
options: ShCompileOptions
) -> Result<(), &'static str>
[src]
&self,
strings: &[&str],
options: ShCompileOptions
) -> Result<(), &'static str>
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]
&self,
strings: &[&str]
) -> Result<String, &'static str>
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
impl RefUnwindSafe for ShaderValidator
impl !Send for ShaderValidator
impl !Sync for ShaderValidator
impl Unpin for ShaderValidator
impl UnwindSafe for ShaderValidator
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,