98XRT_NONNULL_ALL
static inline void
102 if (xainst == NULL) {
237XRT_NONNULL_ALL
static inline void
enum xrt_result xrt_result_t
Result type used across Monado.
This interface acts as a way to store per-application policy for xrt_instance.
Definition xrt_app_policy.h:36
void(* destroy)(struct xrt_app_instance *xainst)
Destroy the application instance and its owned objects.
Definition xrt_app_policy.h:69
static XRT_NONNULL_ALL xrt_result_t xrt_app_instance_create_app_system(struct xrt_app_instance *xainst, struct xrt_system *xsys, struct xrt_app_system **out_xasys)
Creates an application system from the passed system.
Definition xrt_app_policy.h:84
xrt_result_t(* create_app_system)(struct xrt_app_instance *xainst, struct xrt_system *xsys, struct xrt_app_system **out_xasys)
Creates an application system from the passed system.
Definition xrt_app_policy.h:58
static XRT_NONNULL_ALL void xrt_app_instance_destroy(struct xrt_app_instance **xainst_ptr)
Destroy the application instance and its owned objects.
Definition xrt_app_policy.h:99
This interface acts as a way to store per-application policy for xrt_system.
Definition xrt_app_policy.h:142
static XRT_NONNULL_ALL xrt_result_t xrt_app_system_get_recommended_view_configuration(struct xrt_app_system *xasys, enum xrt_view_type view_type, struct xrt_recommended_view_config *out_recommended_view_config)
Gets the recommended view configuration for the given view type, if available and supported.
Definition xrt_app_policy.h:208
xrt_result_t(* get_recommended_view_configuration)(struct xrt_app_system *xasys, enum xrt_view_type view_type, struct xrt_recommended_view_config *out_recommended_view_config)
Gets the recommended view configuration for the given view type, if available and supported.
Definition xrt_app_policy.h:162
static XRT_NONNULL_ALL void xrt_app_system_destroy(struct xrt_app_system **xasys_ptr)
Destroy the application system and its owned objects.
Definition xrt_app_policy.h:238
void(* destroy)(struct xrt_app_system *xasys)
Destroy the application system and its owned objects.
Definition xrt_app_policy.h:193
xrt_result_t(* set_recommended_view_configuration)(struct xrt_app_system *xasys, enum xrt_view_type view_type, const struct xrt_recommended_view_config *recommended_view_config)
Sets the recommended view configuration for the given view type.
Definition xrt_app_policy.h:181
static XRT_NONNULL_ALL xrt_result_t xrt_app_system_set_recommended_view_configuration(struct xrt_app_system *xasys, enum xrt_view_type view_type, const struct xrt_recommended_view_config *recommended_view_config)
Sets the recommended view configuration for the given view type.
Definition xrt_app_policy.h:223
Definition xrt_app_policy.h:112
uint32_t sample_count
The amount of samples for the swapchain.
Definition xrt_app_policy.h:118
uint32_t width_pixels
The width of the view.
Definition xrt_app_policy.h:114
uint32_t height_pixels
The height of the view.
Definition xrt_app_policy.h:116
Definition xrt_app_policy.h:122
struct xrt_recommended_view_config_view views[XRT_MAX_VIEWS]
The views in the configuration.
Definition xrt_app_policy.h:128
uint32_t view_count
The number of views in the configuration, invariant.
Definition xrt_app_policy.h:126
bool valid
Whether the recommendation is valid.
Definition xrt_app_policy.h:124
A system is a collection of devices, policies and optionally a compositor that is organised into a ch...
Definition xrt_system.h:65
Definition xrt_compositor.h:2298
Common defines and enums for XRT.
xrt_view_type
View type to be rendered to by the compositor.
Definition xrt_defines.h:2438
Header for limits of the XRT interfaces.