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
use utils::vk_traits::*;
#[repr(i32)]
#[derive(Debug, PartialEq, Copy, Clone)]
pub enum VkQueryType {
Occlusion = 0,
PipelineStatistics = 1,
Timestamp = 2,
TransformFeedbackStreamExt = 1000028004,
PerformanceQueryKhr = 1000116000,
AccelerationStructureCompactedSizeKhr = 1000165000,
AccelerationStructureSerializationSizeKhr = 1000150000,
PerformanceQueryIntel = 1000210000,
}
#[doc(hidden)]
pub type RawVkQueryType = i32;
impl VkWrappedType<RawVkQueryType> for VkQueryType {
fn vk_to_raw(src: &VkQueryType, dst: &mut RawVkQueryType) {
*dst = *src as i32
}
}
impl VkRawType<VkQueryType> for RawVkQueryType {
fn vk_to_wrapped(src: &RawVkQueryType) -> VkQueryType {
unsafe {
*((src as *const i32) as *const VkQueryType)
}
}
}
impl Default for VkQueryType {
fn default() -> VkQueryType {
VkQueryType::Occlusion
}
}