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 Freeze for Preprocessor
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