Monado OpenXR Runtime
Loading...
Searching...
No Matches
xrt_device_compositor_info Struct Reference

Compositor information for a device. More...

#include <xrt/xrt_device.h>

Collaboration diagram for xrt_device_compositor_info:

Public Member Functions

 XRT_ALIGNAS (8) int64_t scanout_time_ns
 The amount of time it takes to scanout the display in nanoseconds, from the start of the scanout, to the end of the scanout.
 
 XRT_ALIGNAS (8) int64_t first_pixel_out_to_photons_ns
 The time between when the first pixel is scanned out, and when photons are emitted to the display.
 

Data Fields

enum xrt_panel_refresh_type panel_refresh_type
 The type of panel refresh the screen uses.
 
enum xrt_scanout_direction scanout_direction
 The direction scanout on the display occurs.
 
bool has_first_pixel_out_to_photons
 Whether or not the device has an estimation on the first_pixel_out_to_photons_ns field.
 

Detailed Description

Compositor information for a device.

Member Function Documentation

◆ XRT_ALIGNAS() [1/2]

xrt_device_compositor_info::XRT_ALIGNAS ( 8  )

The time between when the first pixel is scanned out, and when photons are emitted to the display.

A device may choose to update this at will, and so the value read here should be polled whenever it is needed instead of being cached.

This is used to fine-tune when poses are predicted for a display time.

Any value 0 or higher is valid, with negative values being treated as if there was no value present.

Note
alignas for 32 bit client support, see IPC Design and Implementation

◆ XRT_ALIGNAS() [2/2]

xrt_device_compositor_info::XRT_ALIGNAS ( 8  )

The amount of time it takes to scanout the display in nanoseconds, from the start of the scanout, to the end of the scanout.

Note
alignas for 32 bit client support, see IPC Design and Implementation

Field Documentation

◆ has_first_pixel_out_to_photons

bool xrt_device_compositor_info::has_first_pixel_out_to_photons

Whether or not the device has an estimation on the first_pixel_out_to_photons_ns field.

◆ panel_refresh_type

enum xrt_panel_refresh_type xrt_device_compositor_info::panel_refresh_type

The type of panel refresh the screen uses.

This affects how scanout poses are queried for rolling refresh compensation: if the mode is XRT_PANEL_REFRESH_TYPE_GLOBAL, the start and end scanout world poses will be identical; otherwise, separate start and end poses are queried using different predicted timestamps derived from the other members of xrt_device_compositor_info.

The transmission direction (if known) should be specified via scanout_direction. Some features may require this information even for global-refresh panels, e.g. beam racing.

Referenced by calc_scanout_compensation_ns().

◆ scanout_direction

enum xrt_scanout_direction xrt_device_compositor_info::scanout_direction

The direction scanout on the display occurs.

Referenced by calc_scanout_compensation_ns().


The documentation for this struct was generated from the following file: