Skip to main content

VectorOpcode

Enum VectorOpcode 

Source
#[repr(u8)]
pub enum VectorOpcode {
Show 26 variants NOP = 0, MOV = 1, MUL = 2, ADD = 3, MAD = 4, DP3 = 5, DPH = 6, DP4 = 7, DST = 8, MIN = 9, MAX = 10, SLT = 11, SGE = 12, ARL = 13, FRC = 14, FLR = 15, SEQ = 16, SFL = 17, SGT = 18, SLE = 19, SNE = 20, STR = 21, SSG = 22, ARR = 23, ARA = 24, TXL = 25,
}
Expand description

A vector operation: four lanes at once, up to three sources.

Variants§

§

NOP = 0

NOP, opcode 0x00.

§

MOV = 1

MOV, opcode 0x01.

§

MUL = 2

MUL, opcode 0x02.

§

ADD = 3

ADD, opcode 0x03.

§

MAD = 4

MAD, opcode 0x04.

§

DP3 = 5

DP3, opcode 0x05.

§

DPH = 6

DPH, opcode 0x06.

§

DP4 = 7

DP4, opcode 0x07.

§

DST = 8

DST, opcode 0x08.

§

MIN = 9

MIN, opcode 0x09.

§

MAX = 10

MAX, opcode 0x0a.

§

SLT = 11

SLT, opcode 0x0b.

§

SGE = 12

SGE, opcode 0x0c.

§

ARL = 13

ARL, opcode 0x0d.

§

FRC = 14

FRC, opcode 0x0e.

§

FLR = 15

FLR, opcode 0x0f.

§

SEQ = 16

SEQ, opcode 0x10.

§

SFL = 17

SFL, opcode 0x11.

§

SGT = 18

SGT, opcode 0x12.

§

SLE = 19

SLE, opcode 0x13.

§

SNE = 20

SNE, opcode 0x14.

§

STR = 21

STR, opcode 0x15.

§

SSG = 22

SSG, opcode 0x16.

§

ARR = 23

ARR, opcode 0x17.

§

ARA = 24

ARA, opcode 0x18.

§

TXL = 25

TXL, opcode 0x19.

Implementations§

Source§

impl VectorOpcode

Source

pub fn mnemonic(self) -> &'static str

The opcode’s name in upper case (MOV, MAD, …).

Trait Implementations§

Source§

impl Clone for VectorOpcode

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for VectorOpcode

Source§

impl Debug for VectorOpcode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for VectorOpcode

Source§

impl PartialEq for VectorOpcode

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for VectorOpcode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.