64 float bilinear = float(e1) * (1.0f - bias) +
float(e2) * bias;
70 if (bilinear < 0.25f) {
72 }
else if (bilinear < 0.75f) {
98 for (
int e1 = 0; e1 < 2; e1++) {
99 for (
int e2 = 0; e2 < 2; e2++) {
112 int y = e1 * 8 + e2 * 4;
115 for (
int dy = 0; dy < 4; dy++) {
125 for (
int dy = 0; dy < 4; dy++) {
static constexpr int SMAA_SEARCHTEX_PACKED_WIDTH
Packed texture dimensions used during bilinear sampling.
Definition SMAASearchTex.h:30
static constexpr int SMAA_SEARCHTEX_PACKED_HEIGHT
Definition SMAASearchTex.h:31
static constexpr int SMAA_SEARCHTEX_PITCH
Definition SMAASearchTex.h:27
static constexpr int SMAA_SEARCHTEX_HEIGHT
Definition SMAASearchTex.h:26
static constexpr int SMAA_SEARCHTEX_WIDTH
Definition SMAASearchTex.h:25
void generateSearchTex(unsigned char *out)
Generate the SMAA search texture into a caller-provided buffer.
Definition SMAASearchTex.h:83
Definition SMAASearchTex.h:37
unsigned char calcSearchValue(int e1, int e2, float bias)
Encode two edge values (e1, e2 in {0,1}) and their bilinear position into a search texture value.
Definition SMAASearchTex.h:61