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

UI draw-data parameters and precompiled shader projections. More...

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

Classes

struct  donner::gpu::shader::programs::UiDrawParams
 Uniform block consumed by the UI draw 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::UiDrawShader ()
 Returns the WGSL UI draw artifact: one vertex entry and the straight and premultiplied alpha fragment entries.
const CompiledShaderView & donner::gpu::shader::programs::UiDrawNativeShader ()
 Returns only the platform-native UI draw projection.

Detailed Description

UI draw-data parameters and precompiled shader projections.

Function Documentation

◆ UiDrawNativeShader()

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

Returns only the platform-native UI draw projection.

Returns
Stable view into process-lifetime data.

◆ UiDrawShader()

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

Returns the WGSL UI draw artifact: one vertex entry and the straight and premultiplied alpha fragment entries.

Returns
Stable view into process-lifetime data.