pub struct SlangShaders<'a> {
pub dir: &'a Path,
pub fragments: &'a [(&'a str, &'a str)],
pub specs: &'a [SlangLibSpec],
}Expand description
The single-source half of the precompile: where the .slang files live, the
shared declarations spliced into the ones carrying a marker, and one spec per
metallib variant. Grouped because they always travel together, and because
the splice table has to match the renderer’s slang_source::assemble exactly
– the two produce the same text or the content-addressed cache serves one
path’s bytes to the other.
Fields§
§dir: &'a PathDirectory holding the .slang sources.
fragments: &'a [(&'a str, &'a str)]Shared declarations spliced into sources carrying a marker.
specs: &'a [SlangLibSpec]One spec per metallib variant.
Auto Trait Implementations§
impl<'a> Freeze for SlangShaders<'a>
impl<'a> RefUnwindSafe for SlangShaders<'a>
impl<'a> Send for SlangShaders<'a>
impl<'a> Sync for SlangShaders<'a>
impl<'a> Unpin for SlangShaders<'a>
impl<'a> UnsafeUnpin for SlangShaders<'a>
impl<'a> UnwindSafe for SlangShaders<'a>
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