Host layout for quad geometry, sampling, masking and compositing. More...
#include "donner/gpu/shader/programs/ImageBlit.h"
Public Attributes | |
| float | mvp [16] |
| Column-major clip-from-target transform. | |
| float | destRect [4] |
| Target-pixel rectangle. | |
| float | srcRect [4] |
| Normalized source UV rectangle. | |
| float | targetSize [2] |
| Target dimensions in pixels. | |
| float | opacity |
| Overall opacity multiplier. | |
| uint32_t | sourceIsPremult |
| Nonzero for premultiplied source texels. | |
| uint32_t | maskMode |
| Zero disables masks, one sRGB luminance, two alpha, three linear luminance. | |
| uint32_t | applyMaskBounds |
| Nonzero enables the target-pixel bounds check. | |
| uint32_t | paddingBeforeMaskBounds [2] |
| Aligns the following vector to 16 bytes. | |
| float | maskBounds [4] |
| Half-open target-pixel mask rectangle. | |
| uint32_t | blendMode |
| Zero source-over, one through fifteen CSS blend modes. | |
| uint32_t | hasClipMask |
| Nonzero enables the path-clip texture. | |
| uint32_t | samplingMode |
| Zero linear, one nearest, two pixelated, three cubic, four anchored. | |
| uint32_t | blendPadding |
| Reserved shader padding. | |
| float | pixelatedScale [2] |
| Device pixels per source texel. | |
| int32_t | texelWholeX |
| Anchored sampling: whole texel x of the anchor pixel. | |
| int32_t | texelWholeY |
| Anchored sampling: whole texel y of the anchor pixel. Nearest sampling: x, y and constant terms of the texel x. Anchored sampling: x and y terms and the anchor's fractional texel x. | |
| float | texelFromTargetX [4] |
| float | texelFromTargetY [4] |
| The same terms for the texel y. | |
| int32_t | anchorX |
| Anchored sampling: the anchor pixel's x. | |
| int32_t | anchorY |
| Anchored sampling: the anchor pixel's y. | |
| uint32_t | anchorPadding [2] |
| Reserved shader padding. | |
Host layout for quad geometry, sampling, masking and compositing.
| uint32_t donner::gpu::shader::programs::ImageBlitParams::anchorPadding[2] |
Reserved shader padding.
| int32_t donner::gpu::shader::programs::ImageBlitParams::anchorX |
Anchored sampling: the anchor pixel's x.
| int32_t donner::gpu::shader::programs::ImageBlitParams::anchorY |
Anchored sampling: the anchor pixel's y.
| uint32_t donner::gpu::shader::programs::ImageBlitParams::applyMaskBounds |
Nonzero enables the target-pixel bounds check.
| uint32_t donner::gpu::shader::programs::ImageBlitParams::blendMode |
Zero source-over, one through fifteen CSS blend modes.
| uint32_t donner::gpu::shader::programs::ImageBlitParams::blendPadding |
Reserved shader padding.
| float donner::gpu::shader::programs::ImageBlitParams::destRect[4] |
Target-pixel rectangle.
| uint32_t donner::gpu::shader::programs::ImageBlitParams::hasClipMask |
Nonzero enables the path-clip texture.
| float donner::gpu::shader::programs::ImageBlitParams::maskBounds[4] |
Half-open target-pixel mask rectangle.
| uint32_t donner::gpu::shader::programs::ImageBlitParams::maskMode |
Zero disables masks, one sRGB luminance, two alpha, three linear luminance.
| float donner::gpu::shader::programs::ImageBlitParams::mvp[16] |
Column-major clip-from-target transform.
| float donner::gpu::shader::programs::ImageBlitParams::opacity |
Overall opacity multiplier.
| uint32_t donner::gpu::shader::programs::ImageBlitParams::paddingBeforeMaskBounds[2] |
Aligns the following vector to 16 bytes.
| float donner::gpu::shader::programs::ImageBlitParams::pixelatedScale[2] |
Device pixels per source texel.
| uint32_t donner::gpu::shader::programs::ImageBlitParams::samplingMode |
Zero linear, one nearest, two pixelated, three cubic, four anchored.
| uint32_t donner::gpu::shader::programs::ImageBlitParams::sourceIsPremult |
Nonzero for premultiplied source texels.
| float donner::gpu::shader::programs::ImageBlitParams::srcRect[4] |
Normalized source UV rectangle.
| float donner::gpu::shader::programs::ImageBlitParams::targetSize[2] |
Target dimensions in pixels.
| float donner::gpu::shader::programs::ImageBlitParams::texelFromTargetX[4] |
| float donner::gpu::shader::programs::ImageBlitParams::texelFromTargetY[4] |
The same terms for the texel y.
| int32_t donner::gpu::shader::programs::ImageBlitParams::texelWholeX |
Anchored sampling: whole texel x of the anchor pixel.
| int32_t donner::gpu::shader::programs::ImageBlitParams::texelWholeY |
Anchored sampling: whole texel y of the anchor pixel. Nearest sampling: x, y and constant terms of the texel x. Anchored sampling: x and y terms and the anchor's fractional texel x.