Donner SVG 0.8.0-pre
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
DisplacementMapBindings.h File Reference

Shared displacement-map shader binding and dispatch contract. More...

#include <cstdint>
#include <string_view>
Include dependency graph for DisplacementMapBindings.h:
This graph shows which files directly or indirectly include this file:

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.

Enumerations

enum class  donner::gpu::shader::programs::DisplacementMapBinding : uint32_t {
  SourceTexture = 0 ,
  MapTexture = 1 ,
  OutputTexture = 2 ,
  Params = 3
}
 Resources in bind group zero. More...

Variables

constexpr std::string_view donner::gpu::shader::programs::kDisplacementMapEntryPoint = "cs_main"
 Compute entry point.
constexpr uint32_t donner::gpu::shader::programs::kDisplacementMapWorkgroupSize = 8
 Workgroup width and height.

Detailed Description

Shared displacement-map shader binding and dispatch contract.

Enumeration Type Documentation

◆ DisplacementMapBinding

Resources in bind group zero.

Enumerator
SourceTexture 

Premultiplied source.

MapTexture 

Premultiplied displacement channels.

OutputTexture 

Write-only rgba32float output.

Params 

Scale, x selector, y selector, padding.