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
pub enum GLFeature {
FramebufferMultisample,
}
#[allow(dead_code)]
pub struct GLFeatureRequirements {
opengl_version: u32,
gles_version: u32,
}
fn get_feature_requirements(feature: GLFeature) -> GLFeatureRequirements {
match feature {
GLFeature::FramebufferMultisample => GLFeatureRequirements {
opengl_version: 30,
gles_version: 30,
}
}
}
impl GLFeature {
pub fn is_supported(feature: GLFeature) -> bool {
let _ = get_feature_requirements(feature);
false
}
}