pub struct Part<'a> {
pub program_version: u32,
pub dxil_version: u32,
pub bitcode: &'a [u8],
}Expand description
The DXIL part of a DXBC container: the program header and its LLVM bitcode.
Fields§
§program_version: u32Shader kind in the high 16 bits (0 pixel), model major and minor in the low byte (0x60 is 6.0).
dxil_version: u32DXIL version (0x100 is 1.0).
bitcode: &'a [u8]The program’s LLVM bitcode (starting at its BC magic), for bitstream::read.
Implementations§
Source§impl Part<'_>
impl Part<'_>
Sourcepub fn target(&self) -> Option<String>
pub fn target(&self) -> Option<String>
The target the program was compiled for, as dxc -T names it (ps_6_0, lib_6_3, ms_6_5): the shader kind
by DXC’s DXIL::ShaderKind numbering and the model. None for a kind no target names (the ray tracing kinds,
7 to 12, which only a library’s functions have).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Part<'a>
impl<'a> Freeze for Part<'a>
impl<'a> RefUnwindSafe for Part<'a>
impl<'a> Send for Part<'a>
impl<'a> Sync for Part<'a>
impl<'a> Unpin for Part<'a>
impl<'a> UnsafeUnpin for Part<'a>
impl<'a> UnwindSafe for Part<'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