#[repr(transparent)]pub struct SDL_GPUColorComponentFlags(pub Uint8);Expand description
Specifies which color components are written in a graphics pipeline.
§Availability
This datatype is available since SDL 3.2.0.
§See also
§Known values (sdl3-sys)
| Associated constant | Global constant | Description |
|---|---|---|
R | SDL_GPU_COLORCOMPONENT_R | the red component |
G | SDL_GPU_COLORCOMPONENT_G | the green component |
B | SDL_GPU_COLORCOMPONENT_B | the blue component |
A | SDL_GPU_COLORCOMPONENT_A | the alpha component |
Tuple Fields§
§0: Uint8Implementations§
Trait Implementations§
Source§impl BitAnd for SDL_GPUColorComponentFlags
impl BitAnd for SDL_GPUColorComponentFlags
Source§impl BitAndAssign for SDL_GPUColorComponentFlags
impl BitAndAssign for SDL_GPUColorComponentFlags
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOr for SDL_GPUColorComponentFlags
impl BitOr for SDL_GPUColorComponentFlags
Source§impl BitOrAssign for SDL_GPUColorComponentFlags
impl BitOrAssign for SDL_GPUColorComponentFlags
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl BitXor for SDL_GPUColorComponentFlags
impl BitXor for SDL_GPUColorComponentFlags
Source§impl BitXorAssign for SDL_GPUColorComponentFlags
impl BitXorAssign for SDL_GPUColorComponentFlags
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moreSource§impl Clone for SDL_GPUColorComponentFlags
impl Clone for SDL_GPUColorComponentFlags
Source§fn clone(&self) -> SDL_GPUColorComponentFlags
fn clone(&self) -> SDL_GPUColorComponentFlags
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 SDL_GPUColorComponentFlags
Available on crate feature debug-impls only.
impl Debug for SDL_GPUColorComponentFlags
Available on crate feature
debug-impls only.Source§impl Default for SDL_GPUColorComponentFlags
impl Default for SDL_GPUColorComponentFlags
Source§fn default() -> SDL_GPUColorComponentFlags
fn default() -> SDL_GPUColorComponentFlags
Returns the “default value” for a type. Read more
Source§impl From<SDL_GPUColorComponentFlags> for Uint8
impl From<SDL_GPUColorComponentFlags> for Uint8
Source§fn from(value: SDL_GPUColorComponentFlags) -> Self
fn from(value: SDL_GPUColorComponentFlags) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_GPUColorComponentFlags
Available on crate feature metadata only.
impl GroupMetadata for SDL_GPUColorComponentFlags
Available on crate feature
metadata only.Source§const GROUP_METADATA: &'static Group
const GROUP_METADATA: &'static Group
Metadata for this group
Source§impl Hash for SDL_GPUColorComponentFlags
impl Hash for SDL_GPUColorComponentFlags
Source§impl Not for SDL_GPUColorComponentFlags
impl Not for SDL_GPUColorComponentFlags
Source§impl PartialEq<SDL_GPUColorComponentFlags> for Uint8
impl PartialEq<SDL_GPUColorComponentFlags> for Uint8
Source§impl PartialEq<u8> for SDL_GPUColorComponentFlags
impl PartialEq<u8> for SDL_GPUColorComponentFlags
impl Copy for SDL_GPUColorComponentFlags
impl Eq for SDL_GPUColorComponentFlags
impl StructuralPartialEq for SDL_GPUColorComponentFlags
Auto Trait Implementations§
impl Freeze for SDL_GPUColorComponentFlags
impl RefUnwindSafe for SDL_GPUColorComponentFlags
impl Send for SDL_GPUColorComponentFlags
impl Sync for SDL_GPUColorComponentFlags
impl Unpin for SDL_GPUColorComponentFlags
impl UnwindSafe for SDL_GPUColorComponentFlags
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