lava/vulkan/khr/
vk_geometry_type.rs1use utils::vk_traits::*;
4
5#[repr(i32)]
7#[derive(Debug, PartialEq, Copy, Clone)]
8pub enum VkGeometryType {
9 Triangles = 0,
10 Aabbs = 1,
11 Instances = 1000150000,
12}
13
14#[doc(hidden)]
15pub type RawVkGeometryType = i32;
16
17impl VkWrappedType<RawVkGeometryType> for VkGeometryType {
18 fn vk_to_raw(src: &VkGeometryType, dst: &mut RawVkGeometryType) {
19 *dst = *src as i32
20 }
21}
22
23impl VkRawType<VkGeometryType> for RawVkGeometryType {
24 fn vk_to_wrapped(src: &RawVkGeometryType) -> VkGeometryType {
25 unsafe {
26 *((src as *const i32) as *const VkGeometryType)
27 }
28 }
29}
30
31impl Default for VkGeometryType {
32 fn default() -> VkGeometryType {
33 VkGeometryType::Triangles
34 }
35}