#[repr(C)]pub struct SDL_GPUColorTargetBlendState {
pub src_color_blendfactor: SDL_GPUBlendFactor,
pub dst_color_blendfactor: SDL_GPUBlendFactor,
pub color_blend_op: SDL_GPUBlendOp,
pub src_alpha_blendfactor: SDL_GPUBlendFactor,
pub dst_alpha_blendfactor: SDL_GPUBlendFactor,
pub alpha_blend_op: SDL_GPUBlendOp,
pub color_write_mask: SDL_GPUColorComponentFlags,
pub enable_blend: bool,
pub enable_color_write_mask: bool,
pub padding1: Uint8,
pub padding2: Uint8,
}Expand description
Fields§
§src_color_blendfactor: SDL_GPUBlendFactorThe value to be multiplied by the source RGB value.
dst_color_blendfactor: SDL_GPUBlendFactorThe value to be multiplied by the destination RGB value.
color_blend_op: SDL_GPUBlendOpThe blend operation for the RGB components.
src_alpha_blendfactor: SDL_GPUBlendFactorThe value to be multiplied by the source alpha.
dst_alpha_blendfactor: SDL_GPUBlendFactorThe value to be multiplied by the destination alpha.
alpha_blend_op: SDL_GPUBlendOpThe blend operation for the alpha component.
color_write_mask: SDL_GPUColorComponentFlagsA bitmask specifying which of the RGBA components are enabled for writing. Writes to all channels if enable_color_write_mask is false.
enable_blend: boolWhether blending is enabled for the color target.
enable_color_write_mask: boolWhether the color write mask is enabled.
padding1: Uint8👎Deprecated: padding fields are exempt from semver; init with
§..Default::default()padding2: Uint8👎Deprecated: padding fields are exempt from semver; init with
..Default::default()Trait Implementations§
Source§impl Clone for SDL_GPUColorTargetBlendState
impl Clone for SDL_GPUColorTargetBlendState
Source§fn clone(&self) -> SDL_GPUColorTargetBlendState
fn clone(&self) -> SDL_GPUColorTargetBlendState
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_GPUColorTargetBlendState
impl Debug for SDL_GPUColorTargetBlendState
Source§impl Default for SDL_GPUColorTargetBlendState
impl Default for SDL_GPUColorTargetBlendState
Source§fn default() -> SDL_GPUColorTargetBlendState
fn default() -> SDL_GPUColorTargetBlendState
Returns the “default value” for a type. Read more
Source§impl Hash for SDL_GPUColorTargetBlendState
impl Hash for SDL_GPUColorTargetBlendState
Source§impl PartialEq for SDL_GPUColorTargetBlendState
impl PartialEq for SDL_GPUColorTargetBlendState
Source§fn eq(&self, other: &SDL_GPUColorTargetBlendState) -> bool
fn eq(&self, other: &SDL_GPUColorTargetBlendState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SDL_GPUColorTargetBlendState
impl Eq for SDL_GPUColorTargetBlendState
impl StructuralPartialEq for SDL_GPUColorTargetBlendState
Auto Trait Implementations§
impl Freeze for SDL_GPUColorTargetBlendState
impl RefUnwindSafe for SDL_GPUColorTargetBlendState
impl Send for SDL_GPUColorTargetBlendState
impl Sync for SDL_GPUColorTargetBlendState
impl Unpin for SDL_GPUColorTargetBlendState
impl UnwindSafe for SDL_GPUColorTargetBlendState
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