optimization
This commit is contained in:
parent
476764be46
commit
483131062f
1 changed files with 3 additions and 0 deletions
|
|
@ -136,6 +136,9 @@ void WindowWayland::StartSync() {
|
||||||
|
|
||||||
// Optimized pixel blending function using SIMD-like operations
|
// Optimized pixel blending function using SIMD-like operations
|
||||||
inline void blend_pixel_optimized(Pixel_BU8_GU8_RU8_AU8& dst, const Pixel_BU8_GU8_RU8_AU8& src) {
|
inline void blend_pixel_optimized(Pixel_BU8_GU8_RU8_AU8& dst, const Pixel_BU8_GU8_RU8_AU8& src) {
|
||||||
|
if(src.a == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
float srcA = src.a / 255.0f;
|
float srcA = src.a / 255.0f;
|
||||||
float dstA = dst.a / 255.0f;
|
float dstA = dst.a / 255.0f;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue