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
use utils::vk_traits::*;
#[repr(i32)]
#[derive(Debug, PartialEq, Copy, Clone)]
pub enum VkSamplerReductionMode {
WeightedAverage = 0,
Min = 1,
Max = 2,
}
#[doc(hidden)]
pub type RawVkSamplerReductionMode = i32;
impl VkWrappedType<RawVkSamplerReductionMode> for VkSamplerReductionMode {
fn vk_to_raw(src: &VkSamplerReductionMode, dst: &mut RawVkSamplerReductionMode) {
*dst = *src as i32
}
}
impl VkRawType<VkSamplerReductionMode> for RawVkSamplerReductionMode {
fn vk_to_wrapped(src: &RawVkSamplerReductionMode) -> VkSamplerReductionMode {
unsafe {
*((src as *const i32) as *const VkSamplerReductionMode)
}
}
}
impl Default for VkSamplerReductionMode {
fn default() -> VkSamplerReductionMode {
VkSamplerReductionMode::WeightedAverage
}
}