Monado OpenXR Runtime
oxr_d3d11.cpp File Reference

Holds D3D11 related functions that didn't fit somewhere else. More...

#include "oxr_objects.h"
#include "oxr_logger.h"
#include <dxgi1_6.h>
#include <d3d11_4.h>
#include <wil/com.h>
#include <wil/result.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
Include dependency graph for oxr_d3d11.cpp:

Macros

#define DEFAULT_CATCH(MSG)
 

Functions

XrResult oxr_d3d11_get_requirements (struct oxr_logger *log, struct oxr_system *sys, XrGraphicsRequirementsD3D11KHR *graphicsRequirements)
 
XrResult oxr_d3d11_check_device (struct oxr_logger *log, struct oxr_system *sys, ID3D11Device *device)
 

Detailed Description

Holds D3D11 related functions that didn't fit somewhere else.

Author
Rylie Pavlik rylie.nosp@m..pav.nosp@m.lik@c.nosp@m.olla.nosp@m.bora..nosp@m.com

Macro Definition Documentation

◆ 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