Monado OpenXR Runtime
Macros | Functions
oxr_api_system.c File Reference

Holds system related entrypoints. More...

#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "xrt/xrt_compiler.h"
#include "xrt/xrt_gfx_gl.h"
#include "xrt/xrt_gfx_gles.h"
#include "util/u_debug.h"
#include "oxr_objects.h"
#include "oxr_logger.h"
#include "oxr_two_call.h"
#include "oxr_api_funcs.h"
#include "oxr_api_verify.h"
Include dependency graph for oxr_api_system.c:

Macros

#define OXR_VERIFY_SYSTEM_AND_GET(log, inst, sysId, system)
 A helper define that verifies the systemId. More...
 

Functions

XrResult oxr_xrGetSystem (XrInstance instance, const XrSystemGetInfo *getInfo, XrSystemId *systemId)
 OpenXR API function xrGetSystem. More...
 
XrResult oxr_xrGetSystemProperties (XrInstance instance, XrSystemId systemId, XrSystemProperties *properties)
 OpenXR API function xrGetSystemProperties. More...
 
XrResult oxr_xrEnumerateViewConfigurations (XrInstance instance, XrSystemId systemId, uint32_t viewConfigurationTypeCapacityInput, uint32_t *viewConfigurationTypeCountOutput, XrViewConfigurationType *viewConfigurationTypes)
 OpenXR API function xrEnumerateViewConfigurations. More...
 
XrResult oxr_xrEnumerateEnvironmentBlendModes (XrInstance instance, XrSystemId systemId, XrViewConfigurationType viewConfigurationType, uint32_t environmentBlendModeCapacityInput, uint32_t *environmentBlendModeCountOutput, XrEnvironmentBlendMode *environmentBlendModes)
 OpenXR API function xrEnumerateEnvironmentBlendModes. More...
 
XrResult oxr_xrGetViewConfigurationProperties (XrInstance instance, XrSystemId systemId, XrViewConfigurationType viewConfigurationType, XrViewConfigurationProperties *configurationProperties)
 OpenXR API function xrGetViewConfigurationProperties. More...
 
XrResult oxr_xrEnumerateViewConfigurationViews (XrInstance instance, XrSystemId systemId, XrViewConfigurationType viewConfigurationType, uint32_t viewCapacityInput, uint32_t *viewCountOutput, XrViewConfigurationView *views)
 OpenXR API function xrEnumerateViewConfigurationViews. More...
 
XrResult oxr_xrGetOpenGLGraphicsRequirementsKHR (XrInstance instance, XrSystemId systemId, XrGraphicsRequirementsOpenGLKHR *graphicsRequirements)
 OpenXR API function xrGetOpenGLGraphicsRequirementsKHR. More...
 
XrResult oxr_xrGetVulkanInstanceExtensionsKHR (XrInstance instance, XrSystemId systemId, uint32_t namesCapacityInput, uint32_t *namesCountOutput, char *namesString)
 OpenXR API function xrGetVulkanInstanceExtensionsKHR. More...
 
XrResult oxr_xrGetVulkanDeviceExtensionsKHR (XrInstance instance, XrSystemId systemId, uint32_t namesCapacityInput, uint32_t *namesCountOutput, char *namesString)
 OpenXR API function xrGetVulkanDeviceExtensionsKHR. More...
 
VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vkGetInstanceProcAddr (VkInstance instance, const char *pName)
 
XrResult oxr_xrGetVulkanGraphicsDeviceKHR (XrInstance instance, XrSystemId systemId, VkInstance vkInstance, VkPhysicalDevice *vkPhysicalDevice)
 OpenXR API function xrGetVulkanGraphicsDeviceKHR. More...
 
XrResult oxr_xrGetVulkanGraphicsRequirementsKHR (XrInstance instance, XrSystemId systemId, XrGraphicsRequirementsVulkanKHR *graphicsRequirements)
 OpenXR API function xrGetVulkanGraphicsRequirementsKHR. More...
 

Detailed Description

Holds system related entrypoints.

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

Macro Definition Documentation

◆ OXR_VERIFY_SYSTEM_AND_GET

#define OXR_VERIFY_SYSTEM_AND_GET (   log,
  inst,
  sysId,
  system 
)
Value:
struct oxr_system *system = NULL; \
do { \
XrResult ret = \
oxr_system_get_by_id(log, inst, sysId, &system); \
if (ret != XR_SUCCESS) { \
return ret; \
} \
assert(system != NULL); \
} while (false)
Single or multiple devices grouped together to form a system that sessions can be created from...
Definition: oxr_objects.h:840

A helper define that verifies the systemId.