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

Uniform displacement scale and channel selectors. More...

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

Public Attributes

float scale
 Displacement scale in pixels.
uint32_t xChannel
 Map channel driving x: zero red, one green, two blue, three alpha.
uint32_t yChannel
 Map channel driving y, with the same encoding.
uint32_t padding
 Reserved layout padding.
int32_t deviceOriginX
 Raster x of the output texture's pixel (0, 0): a tile's origin.
int32_t deviceOriginY
 Raster y of the output texture's pixel (0, 0): a tile's origin.
uint32_t padding1
 Reserved layout padding.
uint32_t padding2
 Reserved layout padding.

Detailed Description

Uniform displacement scale and channel selectors.

Member Data Documentation

◆ deviceOriginX

int32_t donner::gpu::shader::programs::DisplacementMapParams::deviceOriginX

Raster x of the output texture's pixel (0, 0): a tile's origin.

◆ deviceOriginY

int32_t donner::gpu::shader::programs::DisplacementMapParams::deviceOriginY

Raster y of the output texture's pixel (0, 0): a tile's origin.

◆ padding

uint32_t donner::gpu::shader::programs::DisplacementMapParams::padding

Reserved layout padding.

◆ padding1

uint32_t donner::gpu::shader::programs::DisplacementMapParams::padding1

Reserved layout padding.

◆ padding2

uint32_t donner::gpu::shader::programs::DisplacementMapParams::padding2

Reserved layout padding.

◆ scale

float donner::gpu::shader::programs::DisplacementMapParams::scale

Displacement scale in pixels.

◆ xChannel

uint32_t donner::gpu::shader::programs::DisplacementMapParams::xChannel

Map channel driving x: zero red, one green, two blue, three alpha.

◆ yChannel

uint32_t donner::gpu::shader::programs::DisplacementMapParams::yChannel

Map channel driving y, with the same encoding.


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