Donner SVG main
0.8.0 ยท 766e862a0.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::gpu::shader::programs::PixelShiftSplit Struct Reference

Whole-pixel base and constant blend weight of a pixel shift along one axis: output pixel x blends input pixels x - shift and x - shift + 1 by weight. The split is made once, in double precision, so every pixel of a translation uses the same weight wherever the raster sits. More...

#include "donner/gpu/shader/programs/Offset.h"

Public Attributes

int32_t shift
 Input pixel x - shift is the first of the two blended pixels.
float weight
 Weight of input pixel x - shift + 1; zero for a whole-pixel shift.

Detailed Description

Whole-pixel base and constant blend weight of a pixel shift along one axis: output pixel x blends input pixels x - shift and x - shift + 1 by weight. The split is made once, in double precision, so every pixel of a translation uses the same weight wherever the raster sits.

Member Data Documentation

◆ shift

int32_t donner::gpu::shader::programs::PixelShiftSplit::shift

Input pixel x - shift is the first of the two blended pixels.

◆ weight

float donner::gpu::shader::programs::PixelShiftSplit::weight

Weight of input pixel x - shift + 1; zero for a whole-pixel shift.


The documentation for this struct was generated from the following file: