pub struct ShaderCompiler { /* private fields */ }Expand description
The main shader graph compiler.
Implementations§
Source§impl ShaderCompiler
impl ShaderCompiler
pub fn new(options: CompileOptions) -> Self
pub fn with_defaults() -> Self
Sourcepub fn compile(
&self,
graph: &ShaderGraph,
) -> Result<CompiledShader, CompileError>
pub fn compile( &self, graph: &ShaderGraph, ) -> Result<CompiledShader, CompileError>
Compile a shader graph into GLSL source code.
Auto Trait Implementations§
impl Freeze for ShaderCompiler
impl RefUnwindSafe for ShaderCompiler
impl Send for ShaderCompiler
impl Sync for ShaderCompiler
impl Unpin for ShaderCompiler
impl UnsafeUnpin for ShaderCompiler
impl UnwindSafe for ShaderCompiler
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