pub struct ShaderPreprocessor {
pub context: ShaderPreprocessorContext,
pub includes: Vec<ShaderPreprocessorInclude>,
pub defines: Vec<ShaderPreprocessorDefine>,
pub regions: Vec<ShaderRegion>,
pub diagnostics: Vec<ShaderDiagnostic>,
pub mode: ShaderPreprocessorMode,
}Fields§
§context: ShaderPreprocessorContext§includes: Vec<ShaderPreprocessorInclude>§defines: Vec<ShaderPreprocessorDefine>§regions: Vec<ShaderRegion>§diagnostics: Vec<ShaderDiagnostic>§mode: ShaderPreprocessorModeImplementations§
Source§impl ShaderPreprocessor
impl ShaderPreprocessor
pub fn new(context: ShaderPreprocessorContext) -> Self
pub fn preprocess_symbols<'a>( &'a self, shader_symbols: &'a ShaderSymbolList, ) -> ShaderSymbolListRef<'a>
Trait Implementations§
Source§impl Clone for ShaderPreprocessor
impl Clone for ShaderPreprocessor
Source§fn clone(&self) -> ShaderPreprocessor
fn clone(&self) -> ShaderPreprocessor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShaderPreprocessor
impl Debug for ShaderPreprocessor
Source§impl Default for ShaderPreprocessor
impl Default for ShaderPreprocessor
Source§fn default() -> ShaderPreprocessor
fn default() -> ShaderPreprocessor
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ShaderPreprocessor
impl RefUnwindSafe for ShaderPreprocessor
impl Send for ShaderPreprocessor
impl Sync for ShaderPreprocessor
impl Unpin for ShaderPreprocessor
impl UnwindSafe for ShaderPreprocessor
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