pub struct ShaderPreprocessorInclude {
pub cache: Option<ShaderSymbols>,
/* private fields */
}Fields§
§cache: Option<ShaderSymbols>Implementations§
Source§impl ShaderPreprocessorInclude
impl ShaderPreprocessorInclude
pub fn new( relative_path: String, absolute_path: PathBuf, range: ShaderFileRange, ) -> Self
pub fn get_range(&self) -> &ShaderRange
pub fn get_file_range(&self) -> ShaderFileRange
pub fn get_relative_path(&self) -> &String
pub fn get_absolute_path(&self) -> &Path
pub fn get_cache(&self) -> &ShaderSymbols
pub fn get_cache_mut(&mut self) -> &mut ShaderSymbols
Trait Implementations§
Source§impl Clone for ShaderPreprocessorInclude
impl Clone for ShaderPreprocessorInclude
Source§fn clone(&self) -> ShaderPreprocessorInclude
fn clone(&self) -> ShaderPreprocessorInclude
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 moreAuto Trait Implementations§
impl Freeze for ShaderPreprocessorInclude
impl RefUnwindSafe for ShaderPreprocessorInclude
impl Send for ShaderPreprocessorInclude
impl Sync for ShaderPreprocessorInclude
impl Unpin for ShaderPreprocessorInclude
impl UnwindSafe for ShaderPreprocessorInclude
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