Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
Checkerboard.h File Reference

Transparency checkerboard parameters and precompiled shader projections. More...

#include <cstdint>
#include "donner/gpu/shader/CompiledShader.h"
Include dependency graph for Checkerboard.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  donner::gpu::shader::programs::CheckerboardParams
 Uniform block consumed by both checkerboard entry points. More...

Namespaces

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

Functions

const CompiledShaderView & donner::gpu::shader::programs::CheckerboardShader ()
 Returns the WGSL checkerboard artifact: a full-screen triangle with device-pixel anchored cells.
const CompiledShaderView & donner::gpu::shader::programs::CheckerboardNativeShader ()
 Returns only the platform-native Checkerboard projection.

Detailed Description

Transparency checkerboard parameters and precompiled shader projections.

Function Documentation

◆ CheckerboardNativeShader()

const CompiledShaderView & donner::gpu::shader::programs::CheckerboardNativeShader ( )

Returns only the platform-native Checkerboard projection.

Returns
Stable view into process-lifetime data.

◆ CheckerboardShader()

const CompiledShaderView & donner::gpu::shader::programs::CheckerboardShader ( )

Returns the WGSL checkerboard artifact: a full-screen triangle with device-pixel anchored cells.

Returns
Stable view into process-lifetime data.