Struct mozangle::shaders::ShaderValidator
source · pub struct ShaderValidator {
handle: ShHandle,
}
Fields§
§handle: ShHandle
Implementations§
source§impl ShaderValidator
impl ShaderValidator
sourcepub fn new(
shader_type: u32,
spec: ShaderSpec,
output: Output,
resources: &BuiltInResources,
) -> Option<ShaderValidator>
pub fn new( 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>
pub fn for_webgl2( shader_type: u32, output: Output, resources: &BuiltInResources, ) -> Option<ShaderValidator>
pub fn compile( &self, strings: &[&str], options: ShCompileOptions, ) -> Result<(), &'static str>
pub fn object_code(&self) -> String
pub fn info_log(&self) -> String
pub fn compile_and_translate( &self, strings: &[&str], ) -> Result<String, &'static str>
sourcepub fn uniform_name_map(&self) -> HashMap<String, String>
pub fn uniform_name_map(&self) -> HashMap<String, String>
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.
pub fn get_num_unpacked_varying_vectors(&self) -> i32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShaderValidator
impl RefUnwindSafe for ShaderValidator
impl !Send for ShaderValidator
impl !Sync for ShaderValidator
impl Unpin for ShaderValidator
impl UnwindSafe for ShaderValidator
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more