|
|
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.
|
Result type returned by fallible donner::gpu::shader APIs.
More...
#include <ostream>#include <type_traits>#include <variant>#include "donner/base/Utils.h"#include "donner/gpu/shader/ShaderError.h"Classes | |
| class | donner::gpu::shader::ShaderResult< T > |
| Result of a fallible shader IR operation: exactly one of a value of type T or a ShaderError. More... | |
Namespaces | |
| namespace | donner |
| Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css. | |
Typedefs | |
| using | donner::gpu::shader::ShaderStatus = ShaderResult<std::monostate> |
| Status of a fallible shader IR operation with no result value. | |
Functions | |
| ShaderStatus | donner::gpu::shader::OkShaderStatus () |
| Returns a successful ShaderStatus. | |
| template<typename T> | |
| void | donner::gpu::shader::PrintTo (const ShaderResult< T > &result, std::ostream *os) |
| gtest PrintTo support for readable failure messages. | |
Result type returned by fallible donner::gpu::shader APIs.
| using donner::gpu::shader::ShaderStatus = ShaderResult<std::monostate> |
Status of a fallible shader IR operation with no result value.
Construct success values with OkShaderStatus().
| void donner::gpu::shader::PrintTo | ( | const ShaderResult< T > & | result, |
| std::ostream * | os ) |
gtest PrintTo support for readable failure messages.
| result | Result to print. |
| os | Output stream. |