Struct hassle_rs::wrapper::DxcCompiler
source · [−]pub struct DxcCompiler { /* private fields */ }
Implementations
sourceimpl DxcCompiler
impl DxcCompiler
pub fn compile(
&self,
blob: &DxcBlobEncoding,
source_name: &str,
entry_point: &str,
target_profile: &str,
args: &[&str],
include_handler: Option<&mut dyn DxcIncludeHandler>,
defines: &[(&str, Option<&str>)]
) -> Result<DxcOperationResult, (DxcOperationResult, HRESULT)>
pub fn compile_with_debug(
&self,
blob: &DxcBlobEncoding,
source_name: &str,
entry_point: &str,
target_profile: &str,
args: &[&str],
include_handler: Option<&mut dyn DxcIncludeHandler>,
defines: &[(&str, Option<&str>)]
) -> Result<(DxcOperationResult, String, DxcBlob), (DxcOperationResult, HRESULT)>
pub fn preprocess(
&self,
blob: &DxcBlobEncoding,
source_name: &str,
args: &[&str],
include_handler: Option<&mut dyn DxcIncludeHandler>,
defines: &[(&str, Option<&str>)]
) -> Result<DxcOperationResult, (DxcOperationResult, HRESULT)>
pub fn disassemble(&self, blob: &DxcBlob) -> Result<DxcBlobEncoding>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DxcCompiler
impl !Send for DxcCompiler
impl !Sync for DxcCompiler
impl Unpin for DxcCompiler
impl UnwindSafe for DxcCompiler
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more