sw_
composite
0.7.16
Modules
blend
Structs
Color
Gradient
GradientSource
GradientStop
Image
MatrixFixedPoint
PadFetch
PointFixedPoint
RepeatFetch
SweepGradientSource
TwoCircleRadialGradientSource
Enums
Spread
Constants
A32_SHIFT
B32_SHIFT
BILINEAR_INTERPOLATION_BITS
FIXED_FRACTION_BITS
FIXED_HALF
FIXED_ONE
G32_SHIFT
R32_SHIFT
Traits
PixelFetch
Functions
alpha_lerp
alpha_mul
alpha_mul_256
alpha_mul_inv256
alpha_to_alpha256
apply_spread
bilinear_interpolation
bilinear_interpolation_alpha
bilinear_weight
div255
fetch_bilinear
fetch_bilinear_alpha
fetch_nearest
fetch_nearest_alpha
fixed_to_int
float_to_fixed
get_packed_a32
get_packed_b32
get_packed_g32
get_packed_r32
if_then_else
lerp
muldiv255
over
over_exact
over_in
over_in_in
over_in_legacy_lerp
over_in_row
over_in_sse2
pack_argb32
packed_alpha
premultiply
Type Aliases
Alpha256
Fixed
sw_composite
Function
if_then_else
Copy item path
Settings
Help
Summary
source
pub(crate) fn if_then_else<T>(cond:
bool
, x: T, y: T) -> T