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::ConvolveMatrixParams Struct Reference

Host storage layout consumed by the matrix-convolution program. The kernel coefficients are not part of this block: they are bound separately as the runtime-sized coefficients array, holding exactly orderX * orderY row-major values, so the kernel size is bounded by the host admission limits rather than by a fixed array in the shader. More...

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

Public Attributes

int32_t orderX
 Kernel width.
int32_t orderY
 Kernel height.
int32_t targetX
 Horizontal target within the kernel.
int32_t targetY
 Vertical target within the kernel.
float divisor
 Nonzero scale applied after accumulation.
float bias
 Offset applied after division.
uint32_t edgeMode
 Zero duplicates, one wraps, and two samples transparent black.
uint32_t preserveAlpha
 One retains source alpha and convolves straight RGB.
int32_t wrapLeft = 0
 First column of the logical input image.
int32_t wrapTop = 0
 First row of the logical input image.
int32_t wrapWidth = -1
 Width of the wrap domain. Negative selects the full texture.
int32_t wrapHeight = -1
 Height of the wrap domain. Negative selects the full texture.

Detailed Description

Host storage layout consumed by the matrix-convolution program. The kernel coefficients are not part of this block: they are bound separately as the runtime-sized coefficients array, holding exactly orderX * orderY row-major values, so the kernel size is bounded by the host admission limits rather than by a fixed array in the shader.

Member Data Documentation

◆ bias

float donner::gpu::shader::programs::ConvolveMatrixParams::bias

Offset applied after division.

◆ divisor

float donner::gpu::shader::programs::ConvolveMatrixParams::divisor

Nonzero scale applied after accumulation.

◆ edgeMode

uint32_t donner::gpu::shader::programs::ConvolveMatrixParams::edgeMode

Zero duplicates, one wraps, and two samples transparent black.

◆ orderX

int32_t donner::gpu::shader::programs::ConvolveMatrixParams::orderX

Kernel width.

◆ orderY

int32_t donner::gpu::shader::programs::ConvolveMatrixParams::orderY

Kernel height.

◆ preserveAlpha

uint32_t donner::gpu::shader::programs::ConvolveMatrixParams::preserveAlpha

One retains source alpha and convolves straight RGB.

◆ targetX

int32_t donner::gpu::shader::programs::ConvolveMatrixParams::targetX

Horizontal target within the kernel.

◆ targetY

int32_t donner::gpu::shader::programs::ConvolveMatrixParams::targetY

Vertical target within the kernel.

◆ wrapHeight

int32_t donner::gpu::shader::programs::ConvolveMatrixParams::wrapHeight = -1

Height of the wrap domain. Negative selects the full texture.

◆ wrapLeft

int32_t donner::gpu::shader::programs::ConvolveMatrixParams::wrapLeft = 0

First column of the logical input image.

◆ wrapTop

int32_t donner::gpu::shader::programs::ConvolveMatrixParams::wrapTop = 0

First row of the logical input image.

◆ wrapWidth

int32_t donner::gpu::shader::programs::ConvolveMatrixParams::wrapWidth = -1

Width of the wrap domain. Negative selects the full texture.


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