Fix *const *const ptr
This commit is contained in:
parent
f04df1e1df
commit
56bf57acf5
|
@ -5132,9 +5132,9 @@ pub struct DeviceCreateInfo {
|
||||||
pub queue_create_info_count: uint32_t,
|
pub queue_create_info_count: uint32_t,
|
||||||
pub p_queue_create_infos: *const DeviceQueueCreateInfo,
|
pub p_queue_create_infos: *const DeviceQueueCreateInfo,
|
||||||
pub enabled_layer_count: uint32_t,
|
pub enabled_layer_count: uint32_t,
|
||||||
pub pp_enabled_layer_names: *const c_char,
|
pub pp_enabled_layer_names: *const *const c_char,
|
||||||
pub enabled_extension_count: uint32_t,
|
pub enabled_extension_count: uint32_t,
|
||||||
pub pp_enabled_extension_names: *const c_char,
|
pub pp_enabled_extension_names: *const *const c_char,
|
||||||
pub p_enabled_features: *const PhysicalDeviceFeatures,
|
pub p_enabled_features: *const PhysicalDeviceFeatures,
|
||||||
}
|
}
|
||||||
impl ::std::default::Default for DeviceCreateInfo {
|
impl ::std::default::Default for DeviceCreateInfo {
|
||||||
|
@ -5161,9 +5161,9 @@ pub struct InstanceCreateInfo {
|
||||||
pub flags: InstanceCreateFlags,
|
pub flags: InstanceCreateFlags,
|
||||||
pub p_application_info: *const ApplicationInfo,
|
pub p_application_info: *const ApplicationInfo,
|
||||||
pub enabled_layer_count: uint32_t,
|
pub enabled_layer_count: uint32_t,
|
||||||
pub pp_enabled_layer_names: *const c_char,
|
pub pp_enabled_layer_names: *const *const c_char,
|
||||||
pub enabled_extension_count: uint32_t,
|
pub enabled_extension_count: uint32_t,
|
||||||
pub pp_enabled_extension_names: *const c_char,
|
pub pp_enabled_extension_names: *const *const c_char,
|
||||||
}
|
}
|
||||||
impl ::std::default::Default for InstanceCreateInfo {
|
impl ::std::default::Default for InstanceCreateInfo {
|
||||||
fn default() -> InstanceCreateInfo {
|
fn default() -> InstanceCreateInfo {
|
||||||
|
@ -17493,7 +17493,7 @@ pub mod extensions {
|
||||||
device: Device,
|
device: Device,
|
||||||
object_table: ObjectTableNVX,
|
object_table: ObjectTableNVX,
|
||||||
object_count: uint32_t,
|
object_count: uint32_t,
|
||||||
pp_object_table_entries: *const ObjectTableEntryNVX,
|
pp_object_table_entries: *const *const ObjectTableEntryNVX,
|
||||||
p_object_indices: *const uint32_t,
|
p_object_indices: *const uint32_t,
|
||||||
) -> Result,
|
) -> Result,
|
||||||
unregister_objects_nvx: extern "system" fn(
|
unregister_objects_nvx: extern "system" fn(
|
||||||
|
@ -17685,7 +17685,7 @@ pub mod extensions {
|
||||||
device: Device,
|
device: Device,
|
||||||
object_table: ObjectTableNVX,
|
object_table: ObjectTableNVX,
|
||||||
object_count: uint32_t,
|
object_count: uint32_t,
|
||||||
pp_object_table_entries: *const ObjectTableEntryNVX,
|
pp_object_table_entries: *const *const ObjectTableEntryNVX,
|
||||||
p_object_indices: *const uint32_t,
|
p_object_indices: *const uint32_t,
|
||||||
) -> Result {
|
) -> Result {
|
||||||
(self.register_objects_nvx)(
|
(self.register_objects_nvx)(
|
||||||
|
|
|
@ -563,7 +563,7 @@ impl ToTokens for vkxml::ReferenceType {
|
||||||
let ptr_name = match self {
|
let ptr_name = match self {
|
||||||
vkxml::ReferenceType::Pointer => "*const",
|
vkxml::ReferenceType::Pointer => "*const",
|
||||||
vkxml::ReferenceType::PointerToPointer => "*mut *mut",
|
vkxml::ReferenceType::PointerToPointer => "*mut *mut",
|
||||||
vkxml::ReferenceType::PointerToConstPointer => "*const",
|
vkxml::ReferenceType::PointerToConstPointer => "*const *const",
|
||||||
};
|
};
|
||||||
let ident = Term::intern(ptr_name);
|
let ident = Term::intern(ptr_name);
|
||||||
quote!{
|
quote!{
|
||||||
|
|
Loading…
Reference in a new issue