d/simulated: implement get_visibility_mask

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2403>
This commit is contained in:
Simon Zeni 2025-01-16 16:51:36 -05:00 committed by Marge Bot
parent e236a472f0
commit 6dc491bec7

View file

@ -14,14 +14,14 @@
#include "math/m_api.h"
#include "math/m_mathinclude.h"
#include "util/u_var.h"
#include "util/u_misc.h"
#include "util/u_time.h"
#include "util/u_debug.h"
#include "util/u_device.h"
#include "util/u_logging.h"
#include "util/u_pretty_print.h"
#include "util/u_distortion_mesh.h"
#include "util/u_logging.h"
#include "util/u_misc.h"
#include "util/u_pretty_print.h"
#include "util/u_time.h"
#include "util/u_var.h"
#include "simulated_interface.h"
@ -174,7 +174,6 @@ simulated_ref_space_usage(struct xrt_device *xdev,
return XRT_SUCCESS;
}
/*
*
* 'Exported' functions.
@ -196,6 +195,7 @@ simulated_hmd_create(enum simulated_movement movement, const struct xrt_pose *ce
hmd->base.update_inputs = u_device_noop_update_inputs;
hmd->base.get_tracked_pose = simulated_hmd_get_tracked_pose;
hmd->base.get_view_poses = u_device_get_view_poses;
hmd->base.get_visibility_mask = u_device_get_visibility_mask;
hmd->base.ref_space_usage = simulated_ref_space_usage;
hmd->base.destroy = simulated_hmd_destroy;
hmd->base.name = XRT_DEVICE_GENERIC_HMD;