pub struct Dxc { /* private fields */ }
Implementations§
Source§impl Dxc
impl Dxc
Sourcepub fn new(lib_path: Option<PathBuf>) -> Result<Self>
pub fn new(lib_path: Option<PathBuf>) -> Result<Self>
lib_path
is an optional path to the library. Otherwise
[libloading::library_filename("dxcompiler")
] is used.
pub fn create_compiler(&self) -> Result<DxcCompiler>
pub fn create_library(&self) -> Result<DxcLibrary>
pub fn create_reflector(&self) -> Result<DxcReflector>
Source§impl Dxc
impl Dxc
pub fn create_intellisense(&self) -> Result<DxcIntellisense>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Dxc
impl RefUnwindSafe for Dxc
impl Send for Dxc
impl Sync for Dxc
impl Unpin for Dxc
impl UnwindSafe for Dxc
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