renderer_error.h
| File Path | engine/include/conjure/renderer/renderer_error.h |
| API ↗ | Rendering |
Errors of the renderer module. Device loss is reported with rhi::rhi_error::DEVICE_LOST; parse and lookup failures of importers use the generic core codes (PARSE_FAILURE, NOT_FOUND, UNSUPPORTED, INVALID_ARGUMENT). The codes below are the conditions only this module produces.
Enumerations
renderer_error
enum class renderer_error : u16 {
SHADER_NOT_FOUND = 1, // a shader permutation the renderer needs is missing from the library
PIPELINE_CREATION_FAILED, // the device refused a pipeline, binding layout or input layout
RESOURCE_CREATION_FAILED, // the device refused a texture, buffer or sampler
DECODE_FAILED, // an image or HDR file did not decode
INVALID_ASSET, // a cooked blob failed validation
INVALID_SETTINGS, // a rendering settings value (project.json "rendering.defaults") is invalid
COUNT
};
Macros
CONJURE_DECLARE_ERROR_CATEGORY
CONJURE_DECLARE_ERROR_CATEGORY(conjure::renderer::renderer_error, "renderer", conjure::renderer::renderer_error_name)
Functions
Public
renderer_error_name
renderer_error_name[[nodiscard]] CONJURE_API std::string_view renderer_error_name(
renderer_error code) noexcept;The enumerator name of a renderer error code ("SHADER_NOT_FOUND"), or "" for unknown values.