1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#[derive(Debug, Clone)]
#[cfg_attr(feature = "serde-serialization", derive(Deserialize, Serialize))]
pub struct VRDisplayCapabilities {
pub has_position: bool,
pub has_orientation: bool,
pub has_external_display: bool,
pub can_present: bool,
#[deprecated(since="0.10.3", note="please use `future_frame_data` instead")]
pub presented_by_browser: bool,
pub max_layers: u64
}
impl Default for VRDisplayCapabilities {
fn default() -> VRDisplayCapabilities {
#[allow(deprecated)]
VRDisplayCapabilities {
has_position: false,
has_orientation: false,
has_external_display: false,
can_present: false,
presented_by_browser: false,
max_layers: 0
}
}
}