@@ -240,7 +240,7 @@ pub enum Basic {
240
240
OsString ,
241
241
Bool ,
242
242
Unsupported ,
243
- Vulkan ( String ) ,
243
+ Typedef ( String ) ,
244
244
}
245
245
246
246
impl Basic {
@@ -268,7 +268,7 @@ impl Basic {
268
268
| Self :: Float
269
269
| Self :: Double
270
270
| Self :: Bool
271
- | Self :: Vulkan ( _)
271
+ | Self :: Typedef ( _)
272
272
)
273
273
}
274
274
}
@@ -1039,8 +1039,6 @@ impl Namespace {
1039
1039
pub const INTERNAL_NAMESPACE_NAME : & str = "*" ;
1040
1040
pub const INTERNAL_NAMESPACE : u16 = 0 ;
1041
1041
pub const MAIN_NAMESPACE : u16 = 1 ;
1042
- pub const VULKAN_NAMESPACE_NAME : & str = "Vulkan" ;
1043
- pub const VULKAN_NAMESPACE : u16 = 2 ;
1044
1042
1045
1043
#[ derive( Debug ) ]
1046
1044
pub struct Library {
@@ -1063,62 +1061,6 @@ impl Library {
1063
1061
}
1064
1062
assert_eq ! ( MAIN_NAMESPACE , library. add_namespace( main_namespace_name) ) ;
1065
1063
1066
- assert_eq ! (
1067
- VULKAN_NAMESPACE ,
1068
- library. add_namespace( VULKAN_NAMESPACE_NAME )
1069
- ) ;
1070
- // TODO: This should be parseable from gir-files/Vulkan-1.0.gir!
1071
- const VULKAN : & [ & str ] = & [
1072
- "AccessFlags" ,
1073
- "Buffer" ,
1074
- "BufferUsageFlags" ,
1075
- "CommandBuffer" ,
1076
- "CommandBufferLevel" ,
1077
- "CommandPool" ,
1078
- "DescriptorPool" ,
1079
- "DescriptorSet" ,
1080
- "Device" ,
1081
- "DeviceMemory" ,
1082
- "DeviceSize" ,
1083
- "Fence" ,
1084
- "Format" ,
1085
- "Image" ,
1086
- "ImageCreateInfo" ,
1087
- "ImageFormatProperties" ,
1088
- "ImageLayout" ,
1089
- "ImageSubresourceRange" ,
1090
- "ImageTiling" ,
1091
- "ImageUsageFlags" ,
1092
- "ImageView" ,
1093
- "ImageViewCreateInfo" ,
1094
- "Instance" ,
1095
- "MemoryAllocateInfo" ,
1096
- "MemoryHeapFlags" ,
1097
- "MemoryPropertyFlags" ,
1098
- "MemoryRequirements" ,
1099
- "PhysicalDevice" ,
1100
- "PhysicalDeviceFeatures" ,
1101
- "PhysicalDeviceMemoryProperties" ,
1102
- "PhysicalDeviceProperties" ,
1103
- "PhysicalDeviceType" ,
1104
- "PipelineStageFlags" ,
1105
- "PresentModeKHR" ,
1106
- "Queue" ,
1107
- "QueueFamilyProperties" ,
1108
- "QueueFlags" ,
1109
- "Result" ,
1110
- "SampleCountFlags" ,
1111
- "Semaphore" ,
1112
- "SurfaceKHR" ,
1113
- ] ;
1114
- for v in VULKAN {
1115
- library. add_type (
1116
- VULKAN_NAMESPACE ,
1117
- v,
1118
- Type :: Basic ( Basic :: Vulkan ( v. to_string ( ) ) ) ,
1119
- ) ;
1120
- }
1121
-
1122
1064
//For string_type override
1123
1065
Type :: c_array ( & mut library, TypeId :: tid_utf8 ( ) , None , None ) ;
1124
1066
Type :: c_array ( & mut library, TypeId :: tid_filename ( ) , None , None ) ;
0 commit comments