#[repr(transparent)]pub struct SDL_GPUBlendOp(pub c_uint);Expand description
Specifies the operator 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_GPUBlendOp
impl SDL_GPUBlendOp
pub const SDL_GPU_BLENDOP_INVALID: SDL_GPUBlendOp
Sourcepub const SDL_GPU_BLENDOP_ADD: SDL_GPUBlendOp
pub const SDL_GPU_BLENDOP_ADD: SDL_GPUBlendOp
< (source * source_factor) + (destination * destination_factor)
Sourcepub const SDL_GPU_BLENDOP_SUBTRACT: SDL_GPUBlendOp
pub const SDL_GPU_BLENDOP_SUBTRACT: SDL_GPUBlendOp
< (source * source_factor) - (destination * destination_factor)
Sourcepub const SDL_GPU_BLENDOP_REVERSE_SUBTRACT: SDL_GPUBlendOp
pub const SDL_GPU_BLENDOP_REVERSE_SUBTRACT: SDL_GPUBlendOp
< (destination * destination_factor) - (source * source_factor)
Sourcepub const SDL_GPU_BLENDOP_MIN: SDL_GPUBlendOp
pub const SDL_GPU_BLENDOP_MIN: SDL_GPUBlendOp
< min(source, destination)
Sourcepub const SDL_GPU_BLENDOP_MAX: SDL_GPUBlendOp
pub const SDL_GPU_BLENDOP_MAX: SDL_GPUBlendOp
< max(source, destination)
Trait Implementations§
Source§impl Clone for SDL_GPUBlendOp
impl Clone for SDL_GPUBlendOp
Source§fn clone(&self) -> SDL_GPUBlendOp
fn clone(&self) -> SDL_GPUBlendOp
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_GPUBlendOp
impl Debug for SDL_GPUBlendOp
Source§impl Hash for SDL_GPUBlendOp
impl Hash for SDL_GPUBlendOp
Source§impl PartialEq for SDL_GPUBlendOp
impl PartialEq for SDL_GPUBlendOp
impl Copy for SDL_GPUBlendOp
impl Eq for SDL_GPUBlendOp
impl StructuralPartialEq for SDL_GPUBlendOp
Auto Trait Implementations§
impl Freeze for SDL_GPUBlendOp
impl RefUnwindSafe for SDL_GPUBlendOp
impl Send for SDL_GPUBlendOp
impl Sync for SDL_GPUBlendOp
impl Unpin for SDL_GPUBlendOp
impl UnsafeUnpin for SDL_GPUBlendOp
impl UnwindSafe for SDL_GPUBlendOp
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