Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Vindicus999
2025-12-22 02:02:10 +00:00
4 changed files with 11 additions and 22 deletions
+1
View File
@@ -1255,6 +1255,7 @@ void application::initialize()
XR_META_BODY_TRACKING_FIDELITY_EXTENSION_NAME, XR_META_BODY_TRACKING_FIDELITY_EXTENSION_NAME,
XR_META_BODY_TRACKING_FULL_BODY_EXTENSION_NAME, XR_META_BODY_TRACKING_FULL_BODY_EXTENSION_NAME,
XR_META_LOCAL_DIMMING_EXTENSION_NAME,
}; };
for (const auto & i: interaction_profiles) for (const auto & i: interaction_profiles)
+7 -1
View File
@@ -144,8 +144,14 @@ void xr::session::begin_frame()
void xr::session::end_frame(XrTime display_time, const std::vector<XrCompositionLayerBaseHeader *> & layers, XrEnvironmentBlendMode blend_mode) void xr::session::end_frame(XrTime display_time, const std::vector<XrCompositionLayerBaseHeader *> & layers, XrEnvironmentBlendMode blend_mode)
{ {
XrFrameEndInfo end_info{ const XrLocalDimmingFrameEndInfoMETA local_dimming_info{
.type = XR_TYPE_LOCAL_DIMMING_FRAME_END_INFO_META,
.localDimmingMode = XR_LOCAL_DIMMING_MODE_ON_META,
};
const XrFrameEndInfo end_info{
.type = XR_TYPE_FRAME_END_INFO, .type = XR_TYPE_FRAME_END_INFO,
.next = inst->has_extension(XR_META_LOCAL_DIMMING_EXTENSION_NAME) ? &local_dimming_info : nullptr,
.displayTime = display_time, .displayTime = display_time,
.environmentBlendMode = blend_mode, .environmentBlendMode = blend_mode,
.layerCount = (uint32_t)layers.size(), .layerCount = (uint32_t)layers.size(),
+1 -3
View File
@@ -56,19 +56,17 @@ Default setting will have all encoders of a given type execute sequentially, and
1. Simple configuration 1. Simple configuration
```json ```json
{ {
"bitrate": 50000000,
"encoder": { "encoder": {
"encoder": "vaapi", "encoder": "vaapi",
"codec": "h265" "codec": "h265"
} }
} }
``` ```
Use vaapi hardware encoding, h265 video codec (HEVC) and 50Mb/s bitrate. Use vaapi hardware encoding, h265 video codec (HEVC).
2. Hardware + software encoder 2. Hardware + software encoder
```json ```json
{ {
"bitrate": 50000000,
"encoders": [ "encoders": [
{ {
"encoder": "vaapi", "encoder": "vaapi",
+2 -18
View File
@@ -570,22 +570,6 @@ make_binding_profiles()
constexpr auto controller_per_hand_binding_profiles = std::to_array({make_binding_profiles<0>(), constexpr auto controller_per_hand_binding_profiles = std::to_array({make_binding_profiles<0>(),
make_binding_profiles<1>()}); make_binding_profiles<1>()});
xrt_binding_input_pair hand_interaction_simple_input_binding[] = {
{XRT_INPUT_SIMPLE_SELECT_CLICK, XRT_INPUT_HAND_PINCH_VALUE},
{XRT_INPUT_SIMPLE_GRIP_POSE, XRT_INPUT_HAND_GRIP_POSE},
{XRT_INPUT_SIMPLE_AIM_POSE, XRT_INPUT_HAND_AIM_POSE},
};
xrt_binding_profile hand_interaction_binding_profiles[] = {
{
.name = XRT_DEVICE_SIMPLE_CONTROLLER,
.inputs = hand_interaction_simple_input_binding,
.input_count = std::size(hand_interaction_simple_input_binding),
.outputs = nullptr,
.output_count = 0,
},
};
struct xrt_space_relation_csv_header struct xrt_space_relation_csv_header
{}; {};
@@ -617,8 +601,8 @@ wivrn_controller::wivrn_controller(xrt_device_name name,
.device_type = hand_id == 0 ? XRT_DEVICE_TYPE_LEFT_HAND_CONTROLLER : XRT_DEVICE_TYPE_RIGHT_HAND_CONTROLLER, .device_type = hand_id == 0 ? XRT_DEVICE_TYPE_LEFT_HAND_CONTROLLER : XRT_DEVICE_TYPE_RIGHT_HAND_CONTROLLER,
.hmd = nullptr, .hmd = nullptr,
.tracking_origin = hmd->tracking_origin, .tracking_origin = hmd->tracking_origin,
.binding_profile_count = name != XRT_DEVICE_EXT_HAND_INTERACTION ? controller_per_hand_binding_profiles[hand_id].size() : std::size(hand_interaction_binding_profiles), .binding_profile_count = name != XRT_DEVICE_EXT_HAND_INTERACTION ? controller_per_hand_binding_profiles[hand_id].size() : 0,
.binding_profiles = name != XRT_DEVICE_EXT_HAND_INTERACTION ? (struct xrt_binding_profile *)controller_per_hand_binding_profiles[hand_id].data() : hand_interaction_binding_profiles, .binding_profiles = name != XRT_DEVICE_EXT_HAND_INTERACTION ? (struct xrt_binding_profile *)controller_per_hand_binding_profiles[hand_id].data() : nullptr,
.input_count = WIVRN_CONTROLLER_INPUT_COUNT, .input_count = WIVRN_CONTROLLER_INPUT_COUNT,
.supported = { .supported = {
.orientation_tracking = true, .orientation_tracking = true,