98XRT_NONNULL_ALL
static inline void
102 if (xainst == NULL) {
149 recommended_view_configuration_changed;
304XRT_NONNULL_ALL
static inline void
xrt_app_system_event_type
Type of an xrt_app_system event.
Definition xrt_app_policy.h:118
enum xrt_result xrt_result_t
Result type used across Monado.
@ XRT_APP_SYSTEM_EVENT_NONE
This app system has no events.
Definition xrt_app_policy.h:120
@ XRT_APP_SYSTEM_EVENT_RECOMMENDED_VIEW_CONFIGURATION_CHANGED
The recommended view configuration of some view type has changed.
Definition xrt_app_policy.h:123
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
Recommended view configuration changed event, type XRT_APP_SYSTEM_EVENT_RECOMMENDED_VIEW_CONFIGURATIO...
Definition xrt_app_policy.h:133
enum xrt_view_type view_type
The xrt_view_type that has changed.
Definition xrt_app_policy.h:135
Union of all app system events, used to return multiple events through one interface.
Definition xrt_app_policy.h:145
This interface acts as a way to store per-application policy for xrt_system.
Definition xrt_app_policy.h:194
xrt_result_t(* poll_events)(struct xrt_app_system *xasys, struct xrt_app_system_event *out_xasyse)
Poll a single event from this app system, if no event is available then the type of the event will be...
Definition xrt_app_policy.h:211
static XRT_NONNULL_ALL xrt_result_t xrt_app_system_poll_events(struct xrt_app_system *xasys, struct xrt_app_system_event *out_xasyse)
Poll a single event from this app system, if no event is available then the type of the event will be...
Definition xrt_app_policy.h:262
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:275
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:220
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:305
void(* destroy)(struct xrt_app_system *xasys)
Destroy the application system and its owned objects.
Definition xrt_app_policy.h:247
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 this application, for the given view type.
Definition xrt_app_policy.h:235
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 this application, for the given view type.
Definition xrt_app_policy.h:290
A single view in a recommended view configuration.
Definition xrt_app_policy.h:159
uint32_t sample_count
The amount of samples for the swapchain.
Definition xrt_app_policy.h:165
uint32_t width_pixels
The width of the view.
Definition xrt_app_policy.h:161
uint32_t height_pixels
The height of the view.
Definition xrt_app_policy.h:163
A recommended view configuration.
Definition xrt_app_policy.h:174
struct xrt_recommended_view_config_view views[XRT_MAX_VIEWS]
The views in the configuration.
Definition xrt_app_policy.h:180
uint32_t view_count
The number of views in the configuration, invariant.
Definition xrt_app_policy.h:178
bool valid
Whether the recommendation is valid.
Definition xrt_app_policy.h:176
A system is a collection of devices, policies and optionally a compositor that is organised into a ch...
Definition xrt_system.h:67
Definition xrt_compositor.h:2306
Common defines and enums for XRT.
xrt_view_type
View type to be rendered to by the compositor.
Definition xrt_defines.h:2444
Header for limits of the XRT interfaces.