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

All of the device components that deals with interfacing to a users head. More...

#include <xrt/xrt_device.h>

Collaboration diagram for xrt_hmd_parts:

Data Fields

struct { 
 
   int   w_pixels 
 
   int   h_pixels 
 
   uint64_t   nominal_frame_interval_ns 
 Nominal frame interval. More...
 
screens [1] 
 The hmd screen as an unrotated display, like the HMD presents it to the OS.
 
struct xrt_view views [XRT_MAX_VIEWS]
 Display information.
 
size_t view_count
 
enum xrt_blend_mode blend_modes [XRT_MAX_DEVICE_BLEND_MODES]
 Array of supported blend modes.
 
size_t blend_mode_count
 
struct { 
 
   enum xrt_distortion_model   models 
 Supported distortion models, a bitfield. More...
 
   enum xrt_distortion_model   preferred 
 Preferred disortion model, single value. More...
 
   struct { 
 
      float *   vertices 
 Data. More...
 
      uint32_t   vertex_count 
 Number of vertices. More...
 
      uint32_t   stride 
 Stride of vertices. More...
 
      uint32_t   uv_channels_count 
 1 or 3 for (chromatic aberration). More...
 
      int *   indices 
 Indices, for triangle strip. More...
 
      uint32_t   index_counts [XRT_MAX_VIEWS] 
 Number of indices for the triangle strips (one per view). More...
 
      uint32_t   index_offsets [XRT_MAX_VIEWS] 
 Offsets for the indices (one offset per view). More...
 
      uint32_t   index_count_total 
 Total number of elements in mesh::indices array. More...
 
   }   mesh 
 
   struct xrt_fov   fov [XRT_MAX_VIEWS] 
 distortion is subject to the field of view More...
 
distortion 
 Distortion information.
 

Detailed Description

All of the device components that deals with interfacing to a users head.

HMD is probably a bad name for the future but for now will have to do.

Field Documentation

◆ blend_modes

◆ [struct]

◆ fov

◆ index_count_total

uint32_t xrt_hmd_parts::index_count_total

Total number of elements in mesh::indices array.

Referenced by render_resources::render_resources_init().

◆ index_counts

uint32_t xrt_hmd_parts::index_counts[XRT_MAX_VIEWS]

Number of indices for the triangle strips (one per view).

Referenced by render_resources::render_resources_init().

◆ index_offsets

uint32_t xrt_hmd_parts::index_offsets[XRT_MAX_VIEWS]

Offsets for the indices (one offset per view).

Referenced by render_resources::render_resources_init().

◆ indices

int* xrt_hmd_parts::indices

Indices, for triangle strip.

Referenced by render_resources::render_resources_init(), and u_device_free().

◆ models

◆ nominal_frame_interval_ns

◆ preferred

◆ [struct]

◆ stride

uint32_t xrt_hmd_parts::stride

Stride of vertices.

Referenced by render_resources::render_resources_init().

◆ uv_channels_count

uint32_t xrt_hmd_parts::uv_channels_count

1 or 3 for (chromatic aberration).

◆ vertex_count

uint32_t xrt_hmd_parts::vertex_count

Number of vertices.

Referenced by render_resources::render_resources_init().

◆ vertices

float* xrt_hmd_parts::vertices

◆ views


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