pub struct Instruction {
pub offset: usize,
pub token: u32,
pub opcode: Opcode,
pub params: Vec<u32>,
}Fields§
§offset: usize§token: u32§opcode: Opcode§params: Vec<u32>Implementations§
Source§impl Instruction
impl Instruction
pub fn comparison(&self) -> u8
pub fn texld_controls(&self) -> u8
pub fn dest_param_index(&self) -> usize
pub fn dest_token(&self) -> Option<u32>
pub fn dest_register(&self) -> Option<RegisterKey>
pub fn dest_write_mask(&self) -> u8
pub fn dest_modifier(&self) -> ResultModifier
pub fn source_register(&self, param_index: usize) -> Option<RegisterKey>
pub fn source_modifier(&self, param_index: usize) -> SourceModifier
pub fn source_swizzle(&self, param_index: usize) -> [usize; 4]
pub fn decl_usage(&self) -> DeclUsage
pub fn decl_index(&self) -> u8
pub fn decl_sampler_type(&self) -> SamplerTextureType
pub fn get_float_param(&self, index: usize) -> f32
pub fn get_int_param(&self, index: usize) -> i32
Trait Implementations§
Source§impl Clone for Instruction
impl Clone for Instruction
Source§fn clone(&self) -> Instruction
fn clone(&self) -> Instruction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Instruction
impl RefUnwindSafe for Instruction
impl Send for Instruction
impl Sync for Instruction
impl Unpin for Instruction
impl UnsafeUnpin for Instruction
impl UnwindSafe for Instruction
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