Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
BrowserBindGroupConstruction.h File Reference
#include <span>
#include "donner/gpu/GpuLimits.h"
#include "donner/gpu/browser/BrowserBridge.h"
Include dependency graph for BrowserBindGroupConstruction.h:

Namespaces

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

Functions

template<typename Entry, typename Begin, typename Add, typename Finish, typename Dispatch>
BridgeStatus donner::gpu::browser::ConstructBrowserBindGroup (std::span< const Entry > entries, const Begin &begin, const Add &add, const Finish &finish, const Dispatch &dispatch)
 Build one bounded bind-group descriptor in one synchronous owner dispatch.

Function Documentation

◆ ConstructBrowserBindGroup()

template<typename Entry, typename Begin, typename Add, typename Finish, typename Dispatch>
BridgeStatus donner::gpu::browser::ConstructBrowserBindGroup ( std::span< const Entry > entries,
const Begin & begin,
const Add & add,
const Finish & finish,
const Dispatch & dispatch )

Build one bounded bind-group descriptor in one synchronous owner dispatch.

The caller owns the entries and callbacks until dispatch returns. Production callbacks only invoke imported primitives: no C++ allocation, locks, logging, waits or promises. A sequence contains at most kMaxBindings + 2 primitives; this bounds work, not callback wall time.

Parameters
entriesValidated descriptor entries, borrowed for the synchronous call.
beginStart browser descriptor state.
addAppend one entry.
finishPublish the descriptor.
dispatchSynchronously invoke its borrowed callback.
Returns
First failure, or the finish status; oversized input fails before any dispatch.