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

Uniform layout for finite pixel shifts in the admitted [-4096, 4096] range. More...

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

Public Attributes

float dx
 Shift along x, rounded half away from zero by the shader.
float dy
 Shift along y, rounded half away from zero by the shader.
uint32_t pad0
 Padding to the 16-byte uniform block size.
uint32_t pad1
 Padding to the 16-byte uniform block size.

Detailed Description

Uniform layout for finite pixel shifts in the admitted [-4096, 4096] range.

Member Data Documentation

◆ dx

float donner::gpu::shader::programs::OffsetParams::dx

Shift along x, rounded half away from zero by the shader.

◆ dy

float donner::gpu::shader::programs::OffsetParams::dy

Shift along y, rounded half away from zero by the shader.

◆ pad0

uint32_t donner::gpu::shader::programs::OffsetParams::pad0

Padding to the 16-byte uniform block size.

◆ pad1

uint32_t donner::gpu::shader::programs::OffsetParams::pad1

Padding to the 16-byte uniform block size.


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