pub struct ShaderPreprocessorContext { /* private fields */ }Implementations§
Source§impl ShaderPreprocessorContext
impl ShaderPreprocessorContext
pub fn main(file_path: &Path, shader_params: ShaderContextParams) -> Self
pub fn mark_dirty(&mut self, file_path: PathBuf)
pub fn search_path_in_includes(&mut self, path: &Path) -> Option<PathBuf>
pub fn push_directory_stack(&mut self, canonical_path: &Path)
pub fn push_define(&mut self, name: &str, value: &str)
pub fn append_defines(&mut self, defines: Vec<ShaderPreprocessorDefine>)
pub fn increase_depth(&mut self) -> bool
pub fn decrease_depth(&mut self)
pub fn get_visited_count(&mut self, path: &Path) -> usize
pub fn is_dirty( &self, file_path: &Path, context: &ShaderPreprocessorContext, ) -> bool
pub fn get_define_value(&self, name: &str) -> Option<String>
pub fn get_defines(&self) -> &Vec<ShaderSymbol>
Trait Implementations§
Source§impl Clone for ShaderPreprocessorContext
impl Clone for ShaderPreprocessorContext
Source§fn clone(&self) -> ShaderPreprocessorContext
fn clone(&self) -> ShaderPreprocessorContext
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 ShaderPreprocessorContext
impl Debug for ShaderPreprocessorContext
Source§impl Default for ShaderPreprocessorContext
impl Default for ShaderPreprocessorContext
Source§fn default() -> ShaderPreprocessorContext
fn default() -> ShaderPreprocessorContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ShaderPreprocessorContext
impl RefUnwindSafe for ShaderPreprocessorContext
impl Send for ShaderPreprocessorContext
impl Sync for ShaderPreprocessorContext
impl Unpin for ShaderPreprocessorContext
impl UnwindSafe for ShaderPreprocessorContext
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