HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
VE_Error Class Reference

#include <VE_Result.h>

Public Types

enum  Code : CodeType {
  Code::success, Code::generic_error, Code::instance_creation_failed, Code::extension_unavailable,
  Code::extension_not_enabled, Code::extension_name_collision, Code::layer_not_present, Code::feature_unavailable,
  Code::failed_to_enumerate_devices, Code::failed_to_enumerate_device_extension_properties, Code::device_creation_failed, Code::vma_allocator_creation_failed,
  Code::image_creation_failed, Code::buffer_creation_failed, Code::memory_map_failed, Code::out_of_host_memory,
  Code::out_of_device_memory, Code::ray_tracing_support_unavailable, Code::swift_shader_unavailable
}
 
using CodeType = uint32_t
 

Public Member Functions

 VE_Error ()
 
 VE_Error (Code c)
 
 VE_Error (VkResult r)
 
 VE_Error (Code c, VkResult r)
 
template<typename... Args>
 VE_Error (Code c, const char *fmt, const Args &...args)
 
template<typename... Args>
 VE_Error (const char *fmt, const Args &...args)
 
template<typename... Args>
void appendFormat (const char *fmt, const Args &...args)
 
const char * message () const
 
void printMsg () const
 
Code code () const
 

Static Public Member Functions

static constexpr Code code_from_vk_result (VkResult)
 
static constexpr const char * message_from_code (Code)
 

Detailed Description

Definition at line 69 of file VE_Result.h.

Member Typedef Documentation

using VE_Error::CodeType = uint32_t

Definition at line 72 of file VE_Result.h.

Member Enumeration Documentation

enum VE_Error::Code : CodeType
strong
Enumerator
success 
generic_error 
instance_creation_failed 
extension_unavailable 
extension_not_enabled 
extension_name_collision 
layer_not_present 
feature_unavailable 
failed_to_enumerate_devices 
failed_to_enumerate_device_extension_properties 
device_creation_failed 
vma_allocator_creation_failed 
image_creation_failed 
buffer_creation_failed 
memory_map_failed 
out_of_host_memory 
out_of_device_memory 
ray_tracing_support_unavailable 
swift_shader_unavailable 

Definition at line 74 of file VE_Result.h.

Constructor & Destructor Documentation

VE_Error::VE_Error ( )
inline

Definition at line 100 of file VE_Result.h.

VE_Error::VE_Error ( Code  c)
inline

Definition at line 101 of file VE_Result.h.

VE_Error::VE_Error ( VkResult  r)
inline

Definition at line 102 of file VE_Result.h.

VE_Error::VE_Error ( Code  c,
VkResult  r 
)
inline

Definition at line 103 of file VE_Result.h.

template<typename... Args>
VE_Error::VE_Error ( Code  c,
const char *  fmt,
const Args &...  args 
)
inline

Definition at line 106 of file VE_Result.h.

template<typename... Args>
VE_Error::VE_Error ( const char *  fmt,
const Args &...  args 
)
inline

Definition at line 114 of file VE_Result.h.

Member Function Documentation

template<typename... Args>
void VE_Error::appendFormat ( const char *  fmt,
const Args &...  args 
)
inline

Definition at line 122 of file VE_Result.h.

Code VE_Error::code ( ) const
inline

Definition at line 147 of file VE_Result.h.

constexpr VE_Error::Code VE_Error::code_from_vk_result ( VkResult  r)
inlinestatic

Definition at line 214 of file VE_Result.h.

const char* VE_Error::message ( ) const
inline

Definition at line 129 of file VE_Result.h.

constexpr const char * VE_Error::message_from_code ( VE_Error::Code  c)
static

Definition at line 235 of file VE_Result.h.

void VE_Error::printMsg ( ) const
inline

Definition at line 138 of file VE_Result.h.


The documentation for this class was generated from the following file: