pub struct CombineCycle {
pub rgb_a: u8,
pub rgb_b: u8,
pub rgb_c: u8,
pub rgb_d: u8,
pub a_a: u8,
pub a_b: u8,
pub a_c: u8,
pub a_d: u8,
}Expand description
One cycle of the color combiner.
The four RGB input selects and the four alpha input selects for
(A − B) * C + D (Set Combine Mode, 0x3C). A/B/D RGB are 4-bit (D 3-bit),
C RGB is 5-bit; the alpha selects are all 3-bit.
Fields§
§rgb_a: u8RGB A (muladd) select.
rgb_b: u8RGB B (mulsub) select.
rgb_c: u8RGB C (mul) select.
rgb_d: u8RGB D (add) select.
a_a: u8Alpha A select.
a_b: u8Alpha B select.
a_c: u8Alpha C select.
a_d: u8Alpha D select.
Trait Implementations§
Source§impl Clone for CombineCycle
impl Clone for CombineCycle
Source§fn clone(&self) -> CombineCycle
fn clone(&self) -> CombineCycle
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 moreSource§impl Debug for CombineCycle
impl Debug for CombineCycle
Source§impl Default for CombineCycle
impl Default for CombineCycle
Source§fn default() -> CombineCycle
fn default() -> CombineCycle
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CombineCycle
impl<'de> Deserialize<'de> for CombineCycle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CombineCycle
impl PartialEq for CombineCycle
Source§impl Serialize for CombineCycle
impl Serialize for CombineCycle
impl Copy for CombineCycle
impl Eq for CombineCycle
impl StructuralPartialEq for CombineCycle
Auto Trait Implementations§
impl Freeze for CombineCycle
impl RefUnwindSafe for CombineCycle
impl Send for CombineCycle
impl Sync for CombineCycle
impl Unpin for CombineCycle
impl UnsafeUnpin for CombineCycle
impl UnwindSafe for CombineCycle
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