The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

d/vive: Add comment and assert to get_view_pose (NFC)

+5
+5
src/xrt/drivers/vive/vive_device.c
··· 142 142 uint32_t view_index, 143 143 struct xrt_pose *out_pose) 144 144 { 145 + // Only supports two views. 146 + assert(view_index < 2); 147 + 145 148 u_device_get_view_pose(eye_relation, view_index, out_pose); 149 + 150 + // This is for the Index' canted displays, on the Vive [Pro] they are identity. 146 151 struct vive_device *d = vive_device(xdev); 147 152 out_pose->orientation = d->config.display.rot[view_index]; 148 153 }