Struct naga_oil::compose::preprocess::Preprocessor
source · pub struct Preprocessor { /* private fields */ }
Implementations§
source§impl Preprocessor
impl Preprocessor
pub fn preprocess( &self, shader_str: &str, shader_defs: &HashMap<String, ShaderDefValue>, validate_len: bool ) -> Result<PreprocessOutput, ComposerErrorInner>
pub fn get_preprocessor_metadata( &self, shader_str: &str, allow_defines: bool ) -> Result<PreprocessorMetaData, ComposerErrorInner>
Trait Implementations§
source§impl Debug for Preprocessor
impl Debug for Preprocessor
Auto Trait Implementations§
impl RefUnwindSafe for Preprocessor
impl Send for Preprocessor
impl Sync for Preprocessor
impl Unpin for Preprocessor
impl UnwindSafe for Preprocessor
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