pub enum InstructionUnit {
DxbcInstructions,
DxilInstructions,
}Expand description
The source’s counting unit. DXBC counts decoded instructions including control flow, excluding declarations; DXIL counts LLVM instructions in the functions the lifter reads. Neither is an executed instruction count or an IR expression count.
Variants§
DxbcInstructions
Instructions of a DXBC shader (Shader Model 4 or 5) as decoded.
DxilInstructions
Instructions of a DXIL shader (Shader Model 6) in the functions the lifter reads.
Trait Implementations§
Source§impl Clone for InstructionUnit
impl Clone for InstructionUnit
Source§fn clone(&self) -> InstructionUnit
fn clone(&self) -> InstructionUnit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InstructionUnit
Source§impl Debug for InstructionUnit
impl Debug for InstructionUnit
impl Eq for InstructionUnit
Source§impl PartialEq for InstructionUnit
impl PartialEq for InstructionUnit
Source§impl Serialize for InstructionUnit
impl Serialize for InstructionUnit
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for InstructionUnit
Auto Trait Implementations§
impl Forget for InstructionUnit
impl Freeze for InstructionUnit
impl RefUnwindSafe for InstructionUnit
impl Send for InstructionUnit
impl Sync for InstructionUnit
impl Unpin for InstructionUnit
impl UnsafeUnpin for InstructionUnit
impl UnwindSafe for InstructionUnit
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