Photon Editor Library 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ghi_exceptions.h
Go to the documentation of this file.
1#pragma once
2
3#include <new>
4
5namespace ph::editor::ghi
6{
7
10class BadAllocation : public std::bad_alloc
11{
12public:
13 const char* what() const noexcept override
14 {
15 return "Bad GHI allocation.";
16 }
17};
18
20{
21public:
22 const char* what() const noexcept override
23 {
24 return "Out of host memory.";
25 }
26};
27
29{
30public:
31 const char* what() const noexcept override
32 {
33 return "Out of device memory.";
34 }
35};
36
37}// end namespace ph::editor::ghi
General exception thrown on bad GHI allocation.
Definition ghi_exceptions.h:11
const char * what() const noexcept override
Definition ghi_exceptions.h:13
Definition ghi_exceptions.h:29
const char * what() const noexcept override
Definition ghi_exceptions.h:31
Definition ghi_exceptions.h:20
const char * what() const noexcept override
Definition ghi_exceptions.h:22
Definition PlatformDisplay.h:13