pub struct SlangProgram {
pub file: &'static str,
pub entry: &'static str,
pub profile: &'static str,
pub label: &'static str,
pub defines: &'static [(&'static str, &'static str)],
}Expand description
One DXIL program: which shader file, which entry point, at which shader-model profile, under which variant defines.
Fields§
§file: &'static strFile name under this crate’s src/shaders/ for the hot-reload disk-first resolve;
also the embedded fallback’s origin and the name slangc diagnostics use.
entry: &'static strEntry point compiled out of that file.
profile: &'static strShader-model profile for the DXIL container (stage + feature floor).
label: &'static strDiagnostic label (compile errors + cache miss logs + export report).
defines: &'static [(&'static str, &'static str)]Variant defines injected as #define lines ahead of the source.
Auto Trait Implementations§
impl Freeze for SlangProgram
impl RefUnwindSafe for SlangProgram
impl Send for SlangProgram
impl Sync for SlangProgram
impl Unpin for SlangProgram
impl UnsafeUnpin for SlangProgram
impl UnwindSafe for SlangProgram
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