Implement visibility mask

This commit is contained in:
Patrick Nicolas
2025-01-03 20:49:27 +01:00
parent 7384779f87
commit 3a09e2fb1f
8 changed files with 116 additions and 6 deletions
+15 -1
View File
@@ -116,6 +116,20 @@ struct pin_check_3
crypto::smp::msg3 message;
};
struct visibility_mask_changed
{
struct mask
{
std::vector<XrVector2f> vertices;
std::vector<uint32_t> indices;
};
static const int num_types = 3; // XrVisibilityMaskTypeKHR values
using masks = std::array<mask, num_types>;
masks data;
uint8_t view_index;
};
struct headset_info_packet
{
uint32_t recommended_eye_width;
@@ -273,7 +287,7 @@ struct battery
bool charging;
};
using packets = std::variant<crypto_handshake, pin_check_1, pin_check_3, headset_info_packet, feedback, audio_data, handshake, tracking, trackings, hand_tracking, inputs, timesync_response, battery>;
using packets = std::variant<crypto_handshake, pin_check_1, pin_check_3, headset_info_packet, feedback, audio_data, handshake, tracking, trackings, hand_tracking, inputs, timesync_response, battery, visibility_mask_changed>;
} // namespace from_headset
namespace to_headset