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
42
43
44
45
46
47
use utils::vk_traits::*;
#[repr(i32)]
#[derive(Debug, PartialEq, Copy, Clone)]
pub enum VkDynamicState {
Viewport = 0,
Scissor = 1,
LineWidth = 2,
DepthBias = 3,
BlendConstants = 4,
DepthBounds = 5,
StencilCompareMask = 6,
StencilWriteMask = 7,
StencilReference = 8,
ViewportWScalingNv = 1000087000,
DiscardRectangleExt = 1000099000,
SampleLocationsExt = 1000143000,
ViewportShadingRatePaletteNv = 1000164004,
ViewportCoarseSampleOrderNv = 1000164006,
ExclusiveScissorNv = 1000205001,
}
#[doc(hidden)]
pub type RawVkDynamicState = i32;
impl VkWrappedType<RawVkDynamicState> for VkDynamicState {
fn vk_to_raw(src: &VkDynamicState, dst: &mut RawVkDynamicState) {
*dst = *src as i32
}
}
impl VkRawType<VkDynamicState> for RawVkDynamicState {
fn vk_to_wrapped(src: &RawVkDynamicState) -> VkDynamicState {
unsafe {
*((src as *const i32) as *const VkDynamicState)
}
}
}
impl Default for VkDynamicState {
fn default() -> VkDynamicState {
VkDynamicState::Viewport
}
}