MCPcopy Create free account
hub / github.com/RenderKit/embree / string_of

Function string_of

tutorials/verify/rtcore_helpers.h:13–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11 typedef decltype(nullptr) nullptr_t;
12
13 inline std::string string_of(RTCError code)
14 {
15 switch (code) {
16 case RTC_ERROR_UNKNOWN : return "RTC_ERROR_UNKNOWN";
17 case RTC_ERROR_INVALID_ARGUMENT : return "RTC_ERROR_INVALID_ARGUMENT";
18 case RTC_ERROR_INVALID_OPERATION: return "RTC_ERROR_INVALID_OPERATION";
19 case RTC_ERROR_OUT_OF_MEMORY : return "RTC_ERROR_OUT_OF_MEMORY";
20 case RTC_ERROR_UNSUPPORTED_CPU : return "RTC_ERROR_UNSUPPORTED_CPU";
21 case RTC_ERROR_CANCELLED : return "RTC_ERROR_CANCELLED";
22 default : return "invalid error code";
23 }
24 }
25
26 struct RTCDeviceRef
27 {

Callers 3

error_handlerFunction · 0.85
AssertNoErrorFunction · 0.85
AssertErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected