AUI Framework
master
Cross-platform module-based framework for developing C++20 desktop applications
|
Underlying type of GaussianBlur but with customizable downscale. Generally, use GaussianBlur. More...
Underlying type of GaussianBlur but with customizable downscale. Generally, use GaussianBlur.
Public Member Functions | |
bool | operator== (const GaussianBlurCustom &) const =default |
Signals and public fields | |
AMetric | radius = 6_dp |
blur radius. More... | |
int | downscale = 1 |
downscale factor. =1 equals don't affect. Must be positive. More... | |
int ass::Backdrop::GaussianBlurCustom::downscale = 1 |
downscale factor. =1 equals don't affect. Must be positive.
Effective blur radius is radius * downscale
. However, the downscale part is done by cheap downscaling of the framebuffer texture. Thus, by raising downscale factor you can achieve larger blur radius with approximately same visual result.
Performance benefit of downscale factor { .radius = 6_dp, .downscale = x } in comparison to { .radius = 6_dp * x, .downscale = 1 } is x^2.
is visually approximately same as
but 16 times cheaper.
AMetric ass::Backdrop::GaussianBlurCustom::radius = 6_dp |
blur radius.
Performance costs of radius is O^2. Please use downscale factor to approximate large blur radius.
#include <AUI/ASS/Property/Backdrop.h>