|
|
Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
|
Explicit error types returned by donner::gpu APIs.
More...
#include <cstdint>#include <ostream>#include <string>#include <string_view>Classes | |
| struct | donner::gpu::GpuError |
An explicit error result from a donner::gpu operation, carrying the error category and a human-readable message that names the offending field or state so a failing test localizes the bug without a rerun. More... | |
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::GpuErrorType : uint8_t { InvalidDescriptor , InvalidHandle , DeviceMismatch , UsageMismatch , OutOfBounds , LimitExceeded , InvalidState , Unsupported } |
| Category of a GPU runtime error. More... | |
Functions | |
| std::ostream & | donner::gpu::operator<< (std::ostream &os, GpuErrorType value) |
| Ostream output operator for GpuErrorType, e.g. | |
| void | donner::gpu::PrintTo (const GpuError &error, std::ostream *os) |
| gtest PrintTo support for readable test failure messages. | |
Explicit error types returned by donner::gpu APIs.
|
strong |
Category of a GPU runtime error.
Every invalid descriptor, handle, or state transition fails closed by returning one of these categories wrapped in a GpuError, in release builds too. Asserts are reserved for programmer invariants inside the runtime; invalid input never aborts.
| std::ostream & donner::gpu::operator<< | ( | std::ostream & | os, |
| GpuErrorType | value ) |
Ostream output operator for GpuErrorType, e.g.
InvalidDescriptor.
| os | Output stream. |
| value | Error type to output. |
|
inline |
gtest PrintTo support for readable test failure messages.
| error | Error to print. |
| os | Output stream. |