Donner SVG 0.8.0-pre
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. More...

#include "donner/gpu/shader/programs/ConvolveMatrixBindings.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.
float kernel [kConvolveMatrixKernelCapacity]
 Coefficients rotated when sampled.

Detailed Description

Host storage layout consumed by the matrix-convolution program.

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.

◆ kernel

float donner::gpu::shader::programs::ConvolveMatrixParams::kernel[kConvolveMatrixKernelCapacity]

Coefficients rotated when sampled.

◆ 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.


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