D3D 11 and 12 shared routines.
More...
#include "util/u_misc.h"
#include "util/u_debug.h"
#include "d3d/d3d_dxgi_helpers.hpp"
#include "oxr_objects.h"
#include "oxr_logger.h"
#include <dxgi1_6.h>
#include <wil/com.h>
#include <wil/result.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
◆ DEFAULT_CATCH
#define DEFAULT_CATCH |
( |
|
MSG | ) |
|
Value: catch (wil::ResultException const &e) \
{ \
return
oxr_error(log, XR_ERROR_RUNTIME_FAILURE, MSG
": %s", e.what()); \
} \
catch (std::exception const &e) \
{ \
return
oxr_error(log, XR_ERROR_RUNTIME_FAILURE, MSG
": %s", e.what()); \
} \
catch (...) \
{ \
return
oxr_error(log, XR_ERROR_RUNTIME_FAILURE, MSG); \
}
XrResult oxr_error(struct oxr_logger *logger, XrResult result, const char *fmt,...)
Definition: oxr_logger.c:203