22#define CHECK_OXR_RET(THING) \
24 XrResult check_ret = (THING); \
25 if (check_ret != XR_SUCCESS) { \
40 if (sc->inflight.yes) {
41 return oxr_error(log, XR_ERROR_CALL_ORDER_INVALID,
"Swapchain has already been waited, call release");
44 if (u_index_fifo_is_empty(&sc->acquired.fifo)) {
45 return oxr_error(log, XR_ERROR_CALL_ORDER_INVALID,
"No image acquired");
100 const XrSwapchainCreateInfo *createInfo,
XrResult oxr_error(struct oxr_logger *logger, XrResult result, const char *fmt,...)
Definition: oxr_logger.c:203
The objects representing OpenXR handles, and prototypes for internal functions used in the state trac...
XrResult oxr_swapchain_common_acquire(struct oxr_logger *log, struct oxr_swapchain *sc, uint32_t *out_index)
The shared code of the acquire call used by all graphics APIs.
Definition: oxr_swapchain.c:183
XrResult oxr_swapchain_common_release(struct oxr_logger *log, struct oxr_swapchain *sc)
The shared code of the release call used by all graphics APIs.
Definition: oxr_swapchain.c:253
XrResult oxr_swapchain_common_wait(struct oxr_logger *log, struct oxr_swapchain *sc, XrDuration timeout)
The shared code of the wait call used by all graphics APIs.
Definition: oxr_swapchain.c:222
XrResult oxr_swapchain_common_create(struct oxr_logger *log, struct oxr_session *sess, const XrSwapchainCreateInfo *createInfo, struct oxr_swapchain **out_swapchain)
Shared create function for swapchains, called by graphics API specific implementations list below.
Definition: oxr_swapchain.c:282
Logger struct that lives on the stack, one for each call client call.
Definition: oxr_logger.h:40
Object that client program interact with.
Definition: oxr_objects.h:1741
A set of images used for rendering.
Definition: oxr_objects.h:2330