#[repr(transparent)]pub struct SDL_GPUBlendFactor(pub c_uint);Expand description
Specifies a blending factor to be used when pixels in a render target are blended with existing pixels in the texture.
The source color is the value written by the fragment shader. The destination color is the value currently existing in the texture.
Available Since: This enum is available since SDL 3.2.0.
See Also: SDL_CreateGPUGraphicsPipeline
Tuple Fields§
§0: c_uintImplementations§
Source§impl SDL_GPUBlendFactor
impl SDL_GPUBlendFactor
pub const SDL_GPU_BLENDFACTOR_INVALID: SDL_GPUBlendFactor
Sourcepub const SDL_GPU_BLENDFACTOR_ZERO: SDL_GPUBlendFactor
pub const SDL_GPU_BLENDFACTOR_ZERO: SDL_GPUBlendFactor
< 0
Sourcepub const SDL_GPU_BLENDFACTOR_ONE: SDL_GPUBlendFactor
pub const SDL_GPU_BLENDFACTOR_ONE: SDL_GPUBlendFactor
< 1
Sourcepub const SDL_GPU_BLENDFACTOR_SRC_COLOR: SDL_GPUBlendFactor
pub const SDL_GPU_BLENDFACTOR_SRC_COLOR: SDL_GPUBlendFactor
< source color
Sourcepub const SDL_GPU_BLENDFACTOR_ONE_MINUS_SRC_COLOR: SDL_GPUBlendFactor
pub const SDL_GPU_BLENDFACTOR_ONE_MINUS_SRC_COLOR: SDL_GPUBlendFactor
< 1 - source color
Sourcepub const SDL_GPU_BLENDFACTOR_DST_COLOR: SDL_GPUBlendFactor
pub const SDL_GPU_BLENDFACTOR_DST_COLOR: SDL_GPUBlendFactor
< destination color
Sourcepub const SDL_GPU_BLENDFACTOR_ONE_MINUS_DST_COLOR: SDL_GPUBlendFactor
pub const SDL_GPU_BLENDFACTOR_ONE_MINUS_DST_COLOR: SDL_GPUBlendFactor
< 1 - destination color
Sourcepub const SDL_GPU_BLENDFACTOR_SRC_ALPHA: SDL_GPUBlendFactor
pub const SDL_GPU_BLENDFACTOR_SRC_ALPHA: SDL_GPUBlendFactor
< source alpha
Sourcepub const SDL_GPU_BLENDFACTOR_ONE_MINUS_SRC_ALPHA: SDL_GPUBlendFactor
pub const SDL_GPU_BLENDFACTOR_ONE_MINUS_SRC_ALPHA: SDL_GPUBlendFactor
< 1 - source alpha
Sourcepub const SDL_GPU_BLENDFACTOR_DST_ALPHA: SDL_GPUBlendFactor
pub const SDL_GPU_BLENDFACTOR_DST_ALPHA: SDL_GPUBlendFactor
< destination alpha
Sourcepub const SDL_GPU_BLENDFACTOR_ONE_MINUS_DST_ALPHA: SDL_GPUBlendFactor
pub const SDL_GPU_BLENDFACTOR_ONE_MINUS_DST_ALPHA: SDL_GPUBlendFactor
< 1 - destination alpha
Sourcepub const SDL_GPU_BLENDFACTOR_CONSTANT_COLOR: SDL_GPUBlendFactor
pub const SDL_GPU_BLENDFACTOR_CONSTANT_COLOR: SDL_GPUBlendFactor
< blend constant
Sourcepub const SDL_GPU_BLENDFACTOR_ONE_MINUS_CONSTANT_COLOR: SDL_GPUBlendFactor
pub const SDL_GPU_BLENDFACTOR_ONE_MINUS_CONSTANT_COLOR: SDL_GPUBlendFactor
< 1 - blend constant
Sourcepub const SDL_GPU_BLENDFACTOR_SRC_ALPHA_SATURATE: SDL_GPUBlendFactor
pub const SDL_GPU_BLENDFACTOR_SRC_ALPHA_SATURATE: SDL_GPUBlendFactor
< min(source alpha, 1 - destination alpha)
Trait Implementations§
Source§impl Clone for SDL_GPUBlendFactor
impl Clone for SDL_GPUBlendFactor
Source§fn clone(&self) -> SDL_GPUBlendFactor
fn clone(&self) -> SDL_GPUBlendFactor
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_GPUBlendFactor
impl Debug for SDL_GPUBlendFactor
Source§impl Hash for SDL_GPUBlendFactor
impl Hash for SDL_GPUBlendFactor
Source§impl PartialEq for SDL_GPUBlendFactor
impl PartialEq for SDL_GPUBlendFactor
impl Copy for SDL_GPUBlendFactor
impl Eq for SDL_GPUBlendFactor
impl StructuralPartialEq for SDL_GPUBlendFactor
Auto Trait Implementations§
impl Freeze for SDL_GPUBlendFactor
impl RefUnwindSafe for SDL_GPUBlendFactor
impl Send for SDL_GPUBlendFactor
impl Sync for SDL_GPUBlendFactor
impl Unpin for SDL_GPUBlendFactor
impl UnsafeUnpin for SDL_GPUBlendFactor
impl UnwindSafe for SDL_GPUBlendFactor
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