Monado OpenXR Runtime
Macros | Functions
oxr_session.c File Reference

Holds session related functions. More...

#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <inttypes.h>
#include "util/u_debug.h"
#include "util/u_misc.h"
#include "util/u_time.h"
#include "math/m_api.h"
#include "xrt/xrt_device.h"
#include "xrt/xrt_gfx_xlib.h"
#include "xrt/xrt_gfx_vk.h"
#include "oxr_objects.h"
#include "oxr_logger.h"
#include "oxr_two_call.h"
#include "oxr_handle.h"
#include "oxr_chain.h"
Include dependency graph for oxr_session.c:

Macros

#define OXR_SESSION_ALLOCATE(LOG, SYS, OUT)
 

Functions

XrResult oxr_session_enumerate_formats (struct oxr_logger *log, struct oxr_session *sess, uint32_t formatCapacityInput, uint32_t *formatCountOutput, int64_t *formats)
 
XrResult oxr_session_begin (struct oxr_logger *log, struct oxr_session *sess, const XrSessionBeginInfo *beginInfo)
 
XrResult oxr_session_end (struct oxr_logger *log, struct oxr_session *sess)
 
XrResult oxr_session_request_exit (struct oxr_logger *log, struct oxr_session *sess)
 
void oxr_session_poll (struct oxr_session *sess)
 
XrResult oxr_session_get_view_pose_at (struct oxr_logger *log, struct oxr_session *sess, XrTime at_time, struct xrt_pose *pose)
 Get the view space position at the given time in relation to the local or stage space. More...
 
void print_view_fov (struct oxr_session *sess, uint32_t index, const struct xrt_fov *fov)
 
void print_view_pose (struct oxr_session *sess, uint32_t index, const struct xrt_pose *pose)
 
XrResult oxr_session_views (struct oxr_logger *log, struct oxr_session *sess, const XrViewLocateInfo *viewLocateInfo, XrViewState *viewState, uint32_t viewCapacityInput, uint32_t *viewCountOutput, XrView *views)
 
XrResult oxr_session_frame_wait (struct oxr_logger *log, struct oxr_session *sess, XrFrameState *frameState)
 
XrResult oxr_session_frame_begin (struct oxr_logger *log, struct oxr_session *sess)
 
XrResult oxr_session_frame_end (struct oxr_logger *log, struct oxr_session *sess, const XrFrameEndInfo *frameEndInfo)
 
XrResult oxr_session_create (struct oxr_logger *log, struct oxr_system *sys, const XrSessionCreateInfo *createInfo, struct oxr_session **out_session)
 

Detailed Description

Holds session related functions.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m

Macro Definition Documentation

◆ OXR_SESSION_ALLOCATE

#define OXR_SESSION_ALLOCATE (   LOG,
  SYS,
  OUT 
)
Value:
do { \
OXR_ALLOCATE_HANDLE_OR_RETURN(LOG, OUT, OXR_XR_DEBUG_SESSION, \
oxr_session_destroy, \
&(SYS)->inst->handle); \
(OUT)->sys = (SYS); \
} while (0)
struct oxr_handle_base handle
Common structure for things referred to by OpenXR handles.
Definition: oxr_objects.h:902
struct oxr_instance * inst
Definition: oxr_objects.h:861
#define OXR_XR_DEBUG_SESSION
Definition: oxr_objects.h:48

Function Documentation

◆ print_view_fov()

void print_view_fov ( struct oxr_session sess,
uint32_t  index,
const struct xrt_fov fov 
)

◆ print_view_pose()

void print_view_pose ( struct oxr_session sess,
uint32_t  index,
const struct xrt_pose pose 
)