diff options
Diffstat (limited to 'level_zero-sys/src/ze_api.rs')
-rw-r--r-- | level_zero-sys/src/ze_api.rs | 13865 |
1 files changed, 13775 insertions, 90 deletions
diff --git a/level_zero-sys/src/ze_api.rs b/level_zero-sys/src/ze_api.rs index e64988a..29fa60d 100644 --- a/level_zero-sys/src/ze_api.rs +++ b/level_zero-sys/src/ze_api.rs @@ -1,8 +1,5 @@ -/* automatically generated by rust-bindgen 0.54.1 */ +/* automatically generated by rust-bindgen 0.57.0 */ -pub type __uint8_t = ::std::os::raw::c_uchar; -pub type __uint32_t = ::std::os::raw::c_uint; -pub type __uint64_t = ::std::os::raw::c_ulong; #[doc = ""] #[doc = " @brief compiler-independent type"] pub type ze_bool_t = u8; @@ -354,9 +351,9 @@ impl _ze_result_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Defines Return/Error codes"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] #[must_use] -pub struct _ze_result_t(pub u32); +pub struct _ze_result_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Defines Return/Error codes"] pub use self::_ze_result_t as ze_result_t; @@ -516,8 +513,8 @@ impl _ze_structure_type_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Defines structure types"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_structure_type_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_structure_type_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Defines structure types"] pub use self::_ze_structure_type_t as ze_structure_type_t; @@ -564,12 +561,104 @@ impl ::std::ops::BitAndAssign for _ze_external_memory_type_flags_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief External memory type flags"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_external_memory_type_flags_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_external_memory_type_flags_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief External memory type flags"] pub use self::_ze_external_memory_type_flags_t as ze_external_memory_type_flags_t; #[doc = ""] +#[doc = " @brief Base for all properties types"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_base_properties_t { + #[doc = "< [in] type of this structure"] + pub stype: ze_structure_type_t, + #[doc = "< [in,out][optional] pointer to extension-specific structure"] + pub pNext: *mut ::std::os::raw::c_void, +} +#[test] +fn bindgen_test_layout__ze_base_properties_t() { + assert_eq!( + ::std::mem::size_of::<_ze_base_properties_t>(), + 16usize, + concat!("Size of: ", stringify!(_ze_base_properties_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_base_properties_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_base_properties_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_base_properties_t>())).stype as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_base_properties_t), + "::", + stringify!(stype) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_base_properties_t>())).pNext as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_base_properties_t), + "::", + stringify!(pNext) + ) + ); +} +#[doc = ""] +#[doc = " @brief Base for all properties types"] +pub type ze_base_properties_t = _ze_base_properties_t; +#[doc = ""] +#[doc = " @brief Base for all descriptor types"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_base_desc_t { + #[doc = "< [in] type of this structure"] + pub stype: ze_structure_type_t, + #[doc = "< [in][optional] pointer to extension-specific structure"] + pub pNext: *const ::std::os::raw::c_void, +} +#[test] +fn bindgen_test_layout__ze_base_desc_t() { + assert_eq!( + ::std::mem::size_of::<_ze_base_desc_t>(), + 16usize, + concat!("Size of: ", stringify!(_ze_base_desc_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_base_desc_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_base_desc_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_base_desc_t>())).stype as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_base_desc_t), + "::", + stringify!(stype) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_base_desc_t>())).pNext as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_base_desc_t), + "::", + stringify!(pNext) + ) + ); +} +#[doc = ""] +#[doc = " @brief Base for all descriptor types"] +pub type ze_base_desc_t = _ze_base_desc_t; +#[doc = ""] #[doc = " @brief Forward-declare ze_driver_uuid_t"] pub type ze_driver_uuid_t = _ze_driver_uuid_t; #[doc = ""] @@ -588,6 +677,9 @@ pub type ze_device_uuid_t = _ze_device_uuid_t; #[doc = " @brief Forward-declare ze_device_properties_t"] pub type ze_device_properties_t = _ze_device_properties_t; #[doc = ""] +#[doc = " @brief Forward-declare ze_device_thread_t"] +pub type ze_device_thread_t = _ze_device_thread_t; +#[doc = ""] #[doc = " @brief Forward-declare ze_device_compute_properties_t"] pub type ze_device_compute_properties_t = _ze_device_compute_properties_t; #[doc = ""] @@ -666,6 +758,15 @@ pub type ze_host_mem_alloc_desc_t = _ze_host_mem_alloc_desc_t; #[doc = " @brief Forward-declare ze_memory_allocation_properties_t"] pub type ze_memory_allocation_properties_t = _ze_memory_allocation_properties_t; #[doc = ""] +#[doc = " @brief Forward-declare ze_external_memory_export_desc_t"] +pub type ze_external_memory_export_desc_t = _ze_external_memory_export_desc_t; +#[doc = ""] +#[doc = " @brief Forward-declare ze_external_memory_import_fd_t"] +pub type ze_external_memory_import_fd_t = _ze_external_memory_import_fd_t; +#[doc = ""] +#[doc = " @brief Forward-declare ze_external_memory_export_fd_t"] +pub type ze_external_memory_export_fd_t = _ze_external_memory_export_fd_t; +#[doc = ""] #[doc = " @brief Forward-declare ze_module_constants_t"] pub type ze_module_constants_t = _ze_module_constants_t; #[doc = ""] @@ -687,6 +788,9 @@ pub type ze_kernel_properties_t = _ze_kernel_properties_t; #[doc = " @brief Forward-declare ze_group_count_t"] pub type ze_group_count_t = _ze_group_count_t; #[doc = ""] +#[doc = " @brief Forward-declare ze_raytracing_mem_alloc_ext_desc_t"] +pub type ze_raytracing_mem_alloc_ext_desc_t = _ze_raytracing_mem_alloc_ext_desc_t; +#[doc = ""] #[doc = " @brief Forward-declare ze_sampler_desc_t"] pub type ze_sampler_desc_t = _ze_sampler_desc_t; #[doc = ""] @@ -728,8 +832,8 @@ impl ::std::ops::BitAndAssign for _ze_init_flags_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported initialization flags"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_init_flags_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_init_flags_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported initialization flags"] pub use self::_ze_init_flags_t as ze_init_flags_t; @@ -797,8 +901,8 @@ impl _ze_api_version_t { #[doc = " @details"] #[doc = " - API versions contain major and minor attributes, use"] #[doc = " ::ZE_MAJOR_VERSION and ::ZE_MINOR_VERSION"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_api_version_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_api_version_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported API versions"] #[doc = ""] @@ -998,8 +1102,8 @@ impl ::std::ops::BitAndAssign for _ze_ipc_property_flags_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported IPC property flags"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_ipc_property_flags_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_ipc_property_flags_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported IPC property flags"] pub use self::_ze_ipc_property_flags_t as ze_ipc_property_flags_t; @@ -1241,8 +1345,8 @@ impl _ze_device_type_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported device types"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_device_type_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_device_type_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported device types"] pub use self::_ze_device_type_t as ze_device_type_t; @@ -1330,8 +1434,8 @@ impl ::std::ops::BitAndAssign for _ze_device_property_flags_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported device property flags"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_device_property_flags_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_device_property_flags_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported device property flags"] pub use self::_ze_device_property_flags_t as ze_device_property_flags_t; @@ -1647,6 +1751,77 @@ fn bindgen_test_layout__ze_device_properties_t() { ) ); } +#[doc = ""] +#[doc = " @brief Device thread identifier."] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_device_thread_t { + #[doc = "< [in,out] the slice number."] + #[doc = "< Must be UINT32_MAX (all) or less than ::ze_device_properties_t.numSlices."] + pub slice: u32, + #[doc = "< [in,out] the sub-slice number within its slice."] + #[doc = "< Must be UINT32_MAX (all) or less than ::ze_device_properties_t.numSubslicesPerSlice."] + pub subslice: u32, + #[doc = "< [in,out] the EU number within its sub-slice."] + #[doc = "< Must be UINT32_MAX (all) or less than ::ze_device_properties_t.numEUsPerSubslice."] + pub eu: u32, + #[doc = "< [in,out] the thread number within its EU."] + #[doc = "< Must be UINT32_MAX (all) or less than ::ze_device_properties_t.numThreadsPerEU."] + pub thread: u32, +} +#[test] +fn bindgen_test_layout__ze_device_thread_t() { + assert_eq!( + ::std::mem::size_of::<_ze_device_thread_t>(), + 16usize, + concat!("Size of: ", stringify!(_ze_device_thread_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_device_thread_t>(), + 4usize, + concat!("Alignment of ", stringify!(_ze_device_thread_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_device_thread_t>())).slice as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_thread_t), + "::", + stringify!(slice) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_device_thread_t>())).subslice as *const _ as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_thread_t), + "::", + stringify!(subslice) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_device_thread_t>())).eu as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_thread_t), + "::", + stringify!(eu) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_device_thread_t>())).thread as *const _ as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_thread_t), + "::", + stringify!(thread) + ) + ); +} extern "C" { #[doc = ""] #[doc = " @brief Retrieves properties of the device."] @@ -1977,8 +2152,8 @@ impl ::std::ops::BitAndAssign for _ze_device_module_flags_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported device module flags"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_device_module_flags_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_device_module_flags_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported device module flags"] pub use self::_ze_device_module_flags_t as ze_device_module_flags_t; @@ -2049,8 +2224,8 @@ impl ::std::ops::BitAndAssign for _ze_device_fp_flags_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported floating-Point capability flags"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_device_fp_flags_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_device_fp_flags_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported floating-Point capability flags"] pub use self::_ze_device_fp_flags_t as ze_device_fp_flags_t; @@ -2313,8 +2488,8 @@ impl ::std::ops::BitAndAssign for _ze_command_queue_group_property_flags_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported command queue group property flags"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_command_queue_group_property_flags_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_command_queue_group_property_flags_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported command queue group property flags"] pub use self::_ze_command_queue_group_property_flags_t as ze_command_queue_group_property_flags_t; @@ -2491,8 +2666,8 @@ impl ::std::ops::BitAndAssign for _ze_device_memory_property_flags_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported device memory property flags"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_device_memory_property_flags_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_device_memory_property_flags_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported device memory property flags"] pub use self::_ze_device_memory_property_flags_t as ze_device_memory_property_flags_t; @@ -2707,8 +2882,8 @@ impl ::std::ops::BitAndAssign for _ze_memory_access_cap_flags_t { #[doc = " @details"] #[doc = " - Supported access capabilities for different types of memory"] #[doc = " allocations"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_memory_access_cap_flags_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_memory_access_cap_flags_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Memory access capability flags"] #[doc = ""] @@ -2915,8 +3090,8 @@ impl ::std::ops::BitAndAssign for _ze_device_cache_property_flags_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported cache control property flags"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_device_cache_property_flags_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_device_cache_property_flags_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported cache control property flags"] pub use self::_ze_device_cache_property_flags_t as ze_device_cache_property_flags_t; @@ -3400,8 +3575,8 @@ impl ::std::ops::BitAndAssign for _ze_device_p2p_property_flags_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported device peer-to-peer property flags"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_device_p2p_property_flags_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_device_p2p_property_flags_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported device peer-to-peer property flags"] pub use self::_ze_device_p2p_property_flags_t as ze_device_p2p_property_flags_t; @@ -3588,8 +3763,8 @@ impl ::std::ops::BitAndAssign for _ze_context_flags_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported context creation flags"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_context_flags_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_context_flags_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported context creation flags"] pub use self::_ze_context_flags_t as ze_context_flags_t; @@ -3764,8 +3939,8 @@ impl ::std::ops::BitAndAssign for _ze_command_queue_flags_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported command queue flags"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_command_queue_flags_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_command_queue_flags_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported command queue flags"] pub use self::_ze_command_queue_flags_t as ze_command_queue_flags_t; @@ -3792,8 +3967,8 @@ impl _ze_command_queue_mode_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported command queue modes"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_command_queue_mode_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_command_queue_mode_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported command queue modes"] pub use self::_ze_command_queue_mode_t as ze_command_queue_mode_t; @@ -3819,8 +3994,8 @@ impl _ze_command_queue_priority_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported command queue priorities"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_command_queue_priority_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_command_queue_priority_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported command queue priorities"] pub use self::_ze_command_queue_priority_t as ze_command_queue_priority_t; @@ -4120,8 +4295,8 @@ impl ::std::ops::BitAndAssign for _ze_command_list_flags_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported command list creation flags"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_command_list_flags_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_command_list_flags_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported command list creation flags"] pub use self::_ze_command_list_flags_t as ze_command_list_flags_t; @@ -5104,8 +5279,8 @@ impl _ze_memory_advice_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported memory advice hints"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_memory_advice_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_memory_advice_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported memory advice hints"] pub use self::_ze_memory_advice_t as ze_memory_advice_t; @@ -5200,8 +5375,8 @@ impl ::std::ops::BitAndAssign for _ze_event_pool_flags_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported event pool creation flags"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_event_pool_flags_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_event_pool_flags_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported event pool creation flags"] pub use self::_ze_event_pool_flags_t as ze_event_pool_flags_t; @@ -5381,8 +5556,8 @@ impl ::std::ops::BitAndAssign for _ze_event_scope_flags_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported event scope flags"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_event_scope_flags_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_event_scope_flags_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported event scope flags"] pub use self::_ze_event_scope_flags_t as ze_event_scope_flags_t; @@ -6002,8 +6177,8 @@ impl ::std::ops::BitAndAssign for _ze_fence_flags_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported fence creation flags"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_fence_flags_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_fence_flags_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported fence creation flags"] pub use self::_ze_fence_flags_t as ze_fence_flags_t; @@ -6230,8 +6405,8 @@ impl ::std::ops::BitAndAssign for _ze_image_flags_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported image creation flags"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_image_flags_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_image_flags_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported image creation flags"] pub use self::_ze_image_flags_t as ze_image_flags_t; @@ -6265,8 +6440,8 @@ impl _ze_image_type_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported image types"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_image_type_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_image_type_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported image types"] pub use self::_ze_image_type_t as ze_image_type_t; @@ -6411,8 +6586,8 @@ impl _ze_image_format_layout_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported image format layouts"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_image_format_layout_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_image_format_layout_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported image format layouts"] pub use self::_ze_image_format_layout_t as ze_image_format_layout_t; @@ -6443,8 +6618,8 @@ impl _ze_image_format_type_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported image format types"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_image_format_type_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_image_format_type_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported image format types"] pub use self::_ze_image_format_type_t as ze_image_format_type_t; @@ -6483,8 +6658,8 @@ impl _ze_image_format_swizzle_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported image format component swizzle into channel"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_image_format_swizzle_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_image_format_swizzle_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported image format component swizzle into channel"] pub use self::_ze_image_format_swizzle_t as ze_image_format_swizzle_t; @@ -6783,8 +6958,8 @@ impl ::std::ops::BitAndAssign for _ze_image_sampler_filter_flags_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported sampler filtering flags"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_image_sampler_filter_flags_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_image_sampler_filter_flags_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported sampler filtering flags"] pub use self::_ze_image_sampler_filter_flags_t as ze_image_sampler_filter_flags_t; @@ -6975,8 +7150,8 @@ impl ::std::ops::BitAndAssign for _ze_device_mem_alloc_flags_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported memory allocation flags"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_device_mem_alloc_flags_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_device_mem_alloc_flags_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported memory allocation flags"] pub use self::_ze_device_mem_alloc_flags_t as ze_device_mem_alloc_flags_t; @@ -7106,8 +7281,8 @@ impl ::std::ops::BitAndAssign for _ze_host_mem_alloc_flags_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported host memory allocation flags"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_host_mem_alloc_flags_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_host_mem_alloc_flags_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported host memory allocation flags"] pub use self::_ze_host_mem_alloc_flags_t as ze_host_mem_alloc_flags_t; @@ -7352,8 +7527,8 @@ impl _ze_memory_type_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Memory allocation type"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_memory_type_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_memory_type_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Memory allocation type"] pub use self::_ze_memory_type_t as ze_memory_type_t; @@ -7567,8 +7742,8 @@ impl ::std::ops::BitAndAssign for _ze_ipc_memory_flags_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported IPC memory flags"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_ipc_memory_flags_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_ipc_memory_flags_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported IPC memory flags"] pub use self::_ze_ipc_memory_flags_t as ze_ipc_memory_flags_t; @@ -7630,6 +7805,248 @@ extern "C" { ptr: *const ::std::os::raw::c_void, ) -> ze_result_t; } +#[doc = ""] +#[doc = " @brief Additional allocation descriptor for exporting external memory"] +#[doc = ""] +#[doc = " @details"] +#[doc = " - This structure may be passed to ::zeMemAllocDevice, via the `pNext`"] +#[doc = " member of ::ze_device_mem_alloc_desc_t, to indicate an exportable"] +#[doc = " memory allocation."] +#[doc = " - This structure may be passed to ::zeImageCreate, via the `pNext`"] +#[doc = " member of ::ze_image_desc_t, to indicate an exportable image."] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_external_memory_export_desc_t { + #[doc = "< [in] type of this structure"] + pub stype: ze_structure_type_t, + #[doc = "< [in][optional] pointer to extension-specific structure"] + pub pNext: *const ::std::os::raw::c_void, + #[doc = "< [in] flags specifying memory export types for this allocation."] + #[doc = "< must be 0 (default) or a valid combination of ::ze_external_memory_type_flags_t"] + pub flags: ze_external_memory_type_flags_t, +} +#[test] +fn bindgen_test_layout__ze_external_memory_export_desc_t() { + assert_eq!( + ::std::mem::size_of::<_ze_external_memory_export_desc_t>(), + 24usize, + concat!("Size of: ", stringify!(_ze_external_memory_export_desc_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_external_memory_export_desc_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_external_memory_export_desc_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_external_memory_export_desc_t>())).stype as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_external_memory_export_desc_t), + "::", + stringify!(stype) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_external_memory_export_desc_t>())).pNext as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_external_memory_export_desc_t), + "::", + stringify!(pNext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_external_memory_export_desc_t>())).flags as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_external_memory_export_desc_t), + "::", + stringify!(flags) + ) + ); +} +#[doc = ""] +#[doc = " @brief Additional allocation descriptor for importing external memory as a"] +#[doc = " file descriptor"] +#[doc = ""] +#[doc = " @details"] +#[doc = " - This structure may be passed to ::zeMemAllocDevice, via the `pNext`"] +#[doc = " member of ::ze_device_mem_alloc_desc_t, to import memory from a file"] +#[doc = " descriptor."] +#[doc = " - This structure may be passed to ::zeImageCreate, via the `pNext`"] +#[doc = " member of ::ze_image_desc_t, to import memory from a file descriptor."] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_external_memory_import_fd_t { + #[doc = "< [in] type of this structure"] + pub stype: ze_structure_type_t, + #[doc = "< [in][optional] pointer to extension-specific structure"] + pub pNext: *const ::std::os::raw::c_void, + #[doc = "< [in] flags specifying the memory import type for the file descriptor."] + #[doc = "< must be 0 (default) or a valid combination of ::ze_external_memory_type_flags_t"] + pub flags: ze_external_memory_type_flags_t, + #[doc = "< [in] the file descriptor handle to import"] + pub fd: ::std::os::raw::c_int, +} +#[test] +fn bindgen_test_layout__ze_external_memory_import_fd_t() { + assert_eq!( + ::std::mem::size_of::<_ze_external_memory_import_fd_t>(), + 24usize, + concat!("Size of: ", stringify!(_ze_external_memory_import_fd_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_external_memory_import_fd_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_external_memory_import_fd_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_external_memory_import_fd_t>())).stype as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_external_memory_import_fd_t), + "::", + stringify!(stype) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_external_memory_import_fd_t>())).pNext as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_external_memory_import_fd_t), + "::", + stringify!(pNext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_external_memory_import_fd_t>())).flags as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_external_memory_import_fd_t), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_external_memory_import_fd_t>())).fd as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_ze_external_memory_import_fd_t), + "::", + stringify!(fd) + ) + ); +} +#[doc = ""] +#[doc = " @brief Exports an allocation as a file descriptor"] +#[doc = ""] +#[doc = " @details"] +#[doc = " - This structure may be passed to ::zeMemGetAllocProperties, via the"] +#[doc = " `pNext` member of ::ze_memory_allocation_properties_t, to export a"] +#[doc = " memory allocation as a file descriptor."] +#[doc = " - This structure may be passed to ::zeImageGetProperties, via the"] +#[doc = " `pNext` member of ::ze_image_properties_t, to export an image as a"] +#[doc = " file descriptor."] +#[doc = " - The requested memory export type must have been specified when the"] +#[doc = " allocation was made."] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_external_memory_export_fd_t { + #[doc = "< [in] type of this structure"] + pub stype: ze_structure_type_t, + #[doc = "< [in][optional] pointer to extension-specific structure"] + pub pNext: *const ::std::os::raw::c_void, + #[doc = "< [in] flags specifying the memory export type for the file descriptor."] + #[doc = "< must be 0 (default) or a valid combination of ::ze_external_memory_type_flags_t"] + pub flags: ze_external_memory_type_flags_t, + #[doc = "< [out] the exported file descriptor handle representing the allocation."] + pub fd: ::std::os::raw::c_int, +} +#[test] +fn bindgen_test_layout__ze_external_memory_export_fd_t() { + assert_eq!( + ::std::mem::size_of::<_ze_external_memory_export_fd_t>(), + 24usize, + concat!("Size of: ", stringify!(_ze_external_memory_export_fd_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_external_memory_export_fd_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_external_memory_export_fd_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_external_memory_export_fd_t>())).stype as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_external_memory_export_fd_t), + "::", + stringify!(stype) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_external_memory_export_fd_t>())).pNext as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_external_memory_export_fd_t), + "::", + stringify!(pNext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_external_memory_export_fd_t>())).flags as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_external_memory_export_fd_t), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_external_memory_export_fd_t>())).fd as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_ze_external_memory_export_fd_t), + "::", + stringify!(fd) + ) + ); +} impl _ze_module_format_t { #[doc = "< Format is SPIRV IL format"] pub const ZE_MODULE_FORMAT_IL_SPIRV: _ze_module_format_t = _ze_module_format_t(0); @@ -7644,8 +8061,8 @@ impl _ze_module_format_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported module creation input formats"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_module_format_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_module_format_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported module creation input formats"] pub use self::_ze_module_format_t as ze_module_format_t; @@ -8106,8 +8523,8 @@ impl ::std::ops::BitAndAssign for _ze_module_property_flags_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported module property flags"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_module_property_flags_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_module_property_flags_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported module property flags"] pub use self::_ze_module_property_flags_t as ze_module_property_flags_t; @@ -8228,8 +8645,8 @@ impl ::std::ops::BitAndAssign for _ze_kernel_flags_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported kernel creation flags"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_kernel_flags_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_kernel_flags_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported kernel creation flags"] pub use self::_ze_kernel_flags_t as ze_kernel_flags_t; @@ -8538,8 +8955,8 @@ impl ::std::ops::BitAndAssign for _ze_kernel_indirect_access_flags_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Kernel indirect access flags"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_kernel_indirect_access_flags_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_kernel_indirect_access_flags_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Kernel indirect access flags"] pub use self::_ze_kernel_indirect_access_flags_t as ze_kernel_indirect_access_flags_t; @@ -8657,8 +9074,8 @@ impl ::std::ops::BitAndAssign for _ze_cache_config_flags_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported Cache Config flags"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_cache_config_flags_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_cache_config_flags_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported Cache Config flags"] pub use self::_ze_cache_config_flags_t as ze_cache_config_flags_t; @@ -9217,6 +9634,150 @@ extern "C" { phWaitEvents: *mut ze_event_handle_t, ) -> ze_result_t; } +impl _ze_raytracing_ext_version_t { + #[doc = "< version 1.0"] + pub const ZE_RAYTRACING_EXT_VERSION_1_0: _ze_raytracing_ext_version_t = + _ze_raytracing_ext_version_t(65536); +} +impl _ze_raytracing_ext_version_t { + #[doc = "< latest known version"] + pub const ZE_RAYTRACING_EXT_VERSION_CURRENT: _ze_raytracing_ext_version_t = + _ze_raytracing_ext_version_t(65536); +} +impl _ze_raytracing_ext_version_t { + pub const ZE_RAYTRACING_EXT_VERSION_FORCE_UINT32: _ze_raytracing_ext_version_t = + _ze_raytracing_ext_version_t(2147483647); +} +#[repr(transparent)] +#[doc = ""] +#[doc = " @brief Raytracing Extension Version(s)"] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_raytracing_ext_version_t(pub ::std::os::raw::c_uint); +#[doc = ""] +#[doc = " @brief Raytracing Extension Version(s)"] +pub use self::_ze_raytracing_ext_version_t as ze_raytracing_ext_version_t; +impl _ze_raytracing_mem_alloc_ext_flags_t { + #[doc = "< reserved for future use"] + pub const ZE_RAYTRACING_MEM_ALLOC_EXT_FLAG_TBD: _ze_raytracing_mem_alloc_ext_flags_t = + _ze_raytracing_mem_alloc_ext_flags_t(1); +} +impl _ze_raytracing_mem_alloc_ext_flags_t { + pub const ZE_RAYTRACING_MEM_ALLOC_EXT_FLAG_FORCE_UINT32: _ze_raytracing_mem_alloc_ext_flags_t = + _ze_raytracing_mem_alloc_ext_flags_t(2147483647); +} +impl ::std::ops::BitOr<_ze_raytracing_mem_alloc_ext_flags_t> + for _ze_raytracing_mem_alloc_ext_flags_t +{ + type Output = Self; + #[inline] + fn bitor(self, other: Self) -> Self { + _ze_raytracing_mem_alloc_ext_flags_t(self.0 | other.0) + } +} +impl ::std::ops::BitOrAssign for _ze_raytracing_mem_alloc_ext_flags_t { + #[inline] + fn bitor_assign(&mut self, rhs: _ze_raytracing_mem_alloc_ext_flags_t) { + self.0 |= rhs.0; + } +} +impl ::std::ops::BitAnd<_ze_raytracing_mem_alloc_ext_flags_t> + for _ze_raytracing_mem_alloc_ext_flags_t +{ + type Output = Self; + #[inline] + fn bitand(self, other: Self) -> Self { + _ze_raytracing_mem_alloc_ext_flags_t(self.0 & other.0) + } +} +impl ::std::ops::BitAndAssign for _ze_raytracing_mem_alloc_ext_flags_t { + #[inline] + fn bitand_assign(&mut self, rhs: _ze_raytracing_mem_alloc_ext_flags_t) { + self.0 &= rhs.0; + } +} +#[repr(transparent)] +#[doc = ""] +#[doc = " @brief Supported raytracing memory allocation flags"] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_raytracing_mem_alloc_ext_flags_t(pub ::std::os::raw::c_uint); +#[doc = ""] +#[doc = " @brief Supported raytracing memory allocation flags"] +pub use self::_ze_raytracing_mem_alloc_ext_flags_t as ze_raytracing_mem_alloc_ext_flags_t; +#[doc = ""] +#[doc = " @brief Raytracing memory allocation descriptor"] +#[doc = ""] +#[doc = " @details"] +#[doc = " - This structure must be passed to ::zeMemAllocShared or"] +#[doc = " ::zeMemAllocDevice, via `pNext` member of"] +#[doc = " ::ze_device_mem_alloc_desc_t, for any memory allocation that is to be"] +#[doc = " accessed by raytracing fixed-function of the device."] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_raytracing_mem_alloc_ext_desc_t { + #[doc = "< [in] type of this structure"] + pub stype: ze_structure_type_t, + #[doc = "< [in][optional] pointer to extension-specific structure"] + pub pNext: *const ::std::os::raw::c_void, + #[doc = "< [in] flags specifying additional allocation controls."] + #[doc = "< must be 0 (default) or a valid combination of ::ze_raytracing_mem_alloc_ext_flags_t;"] + #[doc = "< default behavior may use implicit driver-based heuristics."] + pub flags: ze_raytracing_mem_alloc_ext_flags_t, +} +#[test] +fn bindgen_test_layout__ze_raytracing_mem_alloc_ext_desc_t() { + assert_eq!( + ::std::mem::size_of::<_ze_raytracing_mem_alloc_ext_desc_t>(), + 24usize, + concat!("Size of: ", stringify!(_ze_raytracing_mem_alloc_ext_desc_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_raytracing_mem_alloc_ext_desc_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_raytracing_mem_alloc_ext_desc_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_raytracing_mem_alloc_ext_desc_t>())).stype as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_raytracing_mem_alloc_ext_desc_t), + "::", + stringify!(stype) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_raytracing_mem_alloc_ext_desc_t>())).pNext as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_raytracing_mem_alloc_ext_desc_t), + "::", + stringify!(pNext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_raytracing_mem_alloc_ext_desc_t>())).flags as *const _ + as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_raytracing_mem_alloc_ext_desc_t), + "::", + stringify!(flags) + ) + ); +} extern "C" { #[doc = ""] #[doc = " @brief Makes memory resident for the device."] @@ -9363,8 +9924,8 @@ impl _ze_sampler_address_mode_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Sampler addressing modes"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_sampler_address_mode_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_sampler_address_mode_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Sampler addressing modes"] pub use self::_ze_sampler_address_mode_t as ze_sampler_address_mode_t; @@ -9385,8 +9946,8 @@ impl _ze_sampler_filter_mode_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Sampler filtering modes"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_sampler_filter_mode_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_sampler_filter_mode_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Sampler filtering modes"] pub use self::_ze_sampler_filter_mode_t as ze_sampler_filter_mode_t; @@ -9545,8 +10106,8 @@ impl _ze_memory_access_attribute_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Virtual memory page access attributes"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_memory_access_attribute_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_memory_access_attribute_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Virtual memory page access attributes"] pub use self::_ze_memory_access_attribute_t as ze_memory_access_attribute_t; @@ -9679,8 +10240,8 @@ impl ::std::ops::BitAndAssign for _ze_physical_mem_flags_t { #[repr(transparent)] #[doc = ""] #[doc = " @brief Supported physical memory creation flags"] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct _ze_physical_mem_flags_t(pub u32); +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_physical_mem_flags_t(pub ::std::os::raw::c_uint); #[doc = ""] #[doc = " @brief Supported physical memory creation flags"] pub use self::_ze_physical_mem_flags_t as ze_physical_mem_flags_t; @@ -9946,3 +10507,13127 @@ extern "C" { outSize: *mut usize, ) -> ze_result_t; } +#[doc = ""] +#[doc = " @brief Callback function parameters for zeInit"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_init_params_t { + pub pflags: *mut ze_init_flags_t, +} +#[test] +fn bindgen_test_layout__ze_init_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_init_params_t>(), + 8usize, + concat!("Size of: ", stringify!(_ze_init_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_init_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_init_params_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_init_params_t>())).pflags as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_init_params_t), + "::", + stringify!(pflags) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeInit"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_init_params_t = _ze_init_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeInit"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnInitCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_init_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Table of Global callback functions pointers"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_global_callbacks_t { + pub pfnInitCb: ze_pfnInitCb_t, +} +#[test] +fn bindgen_test_layout__ze_global_callbacks_t() { + assert_eq!( + ::std::mem::size_of::<_ze_global_callbacks_t>(), + 8usize, + concat!("Size of: ", stringify!(_ze_global_callbacks_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_global_callbacks_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_global_callbacks_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_global_callbacks_t>())).pfnInitCb as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_global_callbacks_t), + "::", + stringify!(pfnInitCb) + ) + ); +} +#[doc = ""] +#[doc = " @brief Table of Global callback functions pointers"] +pub type ze_global_callbacks_t = _ze_global_callbacks_t; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDriverGet"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_driver_get_params_t { + pub ppCount: *mut *mut u32, + pub pphDrivers: *mut *mut ze_driver_handle_t, +} +#[test] +fn bindgen_test_layout__ze_driver_get_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_driver_get_params_t>(), + 16usize, + concat!("Size of: ", stringify!(_ze_driver_get_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_driver_get_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_driver_get_params_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_driver_get_params_t>())).ppCount as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_driver_get_params_t), + "::", + stringify!(ppCount) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_driver_get_params_t>())).pphDrivers as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_driver_get_params_t), + "::", + stringify!(pphDrivers) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDriverGet"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_driver_get_params_t = _ze_driver_get_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeDriverGet"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnDriverGetCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_driver_get_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDriverGetApiVersion"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_driver_get_api_version_params_t { + pub phDriver: *mut ze_driver_handle_t, + pub pversion: *mut *mut ze_api_version_t, +} +#[test] +fn bindgen_test_layout__ze_driver_get_api_version_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_driver_get_api_version_params_t>(), + 16usize, + concat!("Size of: ", stringify!(_ze_driver_get_api_version_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_driver_get_api_version_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_driver_get_api_version_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_driver_get_api_version_params_t>())).phDriver as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_driver_get_api_version_params_t), + "::", + stringify!(phDriver) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_driver_get_api_version_params_t>())).pversion as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_driver_get_api_version_params_t), + "::", + stringify!(pversion) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDriverGetApiVersion"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_driver_get_api_version_params_t = _ze_driver_get_api_version_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeDriverGetApiVersion"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnDriverGetApiVersionCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_driver_get_api_version_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDriverGetProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_driver_get_properties_params_t { + pub phDriver: *mut ze_driver_handle_t, + pub ppDriverProperties: *mut *mut ze_driver_properties_t, +} +#[test] +fn bindgen_test_layout__ze_driver_get_properties_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_driver_get_properties_params_t>(), + 16usize, + concat!("Size of: ", stringify!(_ze_driver_get_properties_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_driver_get_properties_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_driver_get_properties_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_driver_get_properties_params_t>())).phDriver as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_driver_get_properties_params_t), + "::", + stringify!(phDriver) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_driver_get_properties_params_t>())).ppDriverProperties + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_driver_get_properties_params_t), + "::", + stringify!(ppDriverProperties) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDriverGetProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_driver_get_properties_params_t = _ze_driver_get_properties_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeDriverGetProperties"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnDriverGetPropertiesCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_driver_get_properties_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDriverGetIpcProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_driver_get_ipc_properties_params_t { + pub phDriver: *mut ze_driver_handle_t, + pub ppIpcProperties: *mut *mut ze_driver_ipc_properties_t, +} +#[test] +fn bindgen_test_layout__ze_driver_get_ipc_properties_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_driver_get_ipc_properties_params_t>(), + 16usize, + concat!( + "Size of: ", + stringify!(_ze_driver_get_ipc_properties_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_driver_get_ipc_properties_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_driver_get_ipc_properties_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_driver_get_ipc_properties_params_t>())).phDriver as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_driver_get_ipc_properties_params_t), + "::", + stringify!(phDriver) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_driver_get_ipc_properties_params_t>())).ppIpcProperties + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_driver_get_ipc_properties_params_t), + "::", + stringify!(ppIpcProperties) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDriverGetIpcProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_driver_get_ipc_properties_params_t = _ze_driver_get_ipc_properties_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeDriverGetIpcProperties"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnDriverGetIpcPropertiesCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_driver_get_ipc_properties_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDriverGetExtensionProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_driver_get_extension_properties_params_t { + pub phDriver: *mut ze_driver_handle_t, + pub ppCount: *mut *mut u32, + pub ppExtensionProperties: *mut *mut ze_driver_extension_properties_t, +} +#[test] +fn bindgen_test_layout__ze_driver_get_extension_properties_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_driver_get_extension_properties_params_t>(), + 24usize, + concat!( + "Size of: ", + stringify!(_ze_driver_get_extension_properties_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_driver_get_extension_properties_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_driver_get_extension_properties_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_driver_get_extension_properties_params_t>())).phDriver + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_driver_get_extension_properties_params_t), + "::", + stringify!(phDriver) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_driver_get_extension_properties_params_t>())).ppCount + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_driver_get_extension_properties_params_t), + "::", + stringify!(ppCount) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_driver_get_extension_properties_params_t>())) + .ppExtensionProperties as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_driver_get_extension_properties_params_t), + "::", + stringify!(ppExtensionProperties) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDriverGetExtensionProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_driver_get_extension_properties_params_t = _ze_driver_get_extension_properties_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeDriverGetExtensionProperties"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnDriverGetExtensionPropertiesCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_driver_get_extension_properties_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Table of Driver callback functions pointers"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_driver_callbacks_t { + pub pfnGetCb: ze_pfnDriverGetCb_t, + pub pfnGetApiVersionCb: ze_pfnDriverGetApiVersionCb_t, + pub pfnGetPropertiesCb: ze_pfnDriverGetPropertiesCb_t, + pub pfnGetIpcPropertiesCb: ze_pfnDriverGetIpcPropertiesCb_t, + pub pfnGetExtensionPropertiesCb: ze_pfnDriverGetExtensionPropertiesCb_t, +} +#[test] +fn bindgen_test_layout__ze_driver_callbacks_t() { + assert_eq!( + ::std::mem::size_of::<_ze_driver_callbacks_t>(), + 40usize, + concat!("Size of: ", stringify!(_ze_driver_callbacks_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_driver_callbacks_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_driver_callbacks_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_driver_callbacks_t>())).pfnGetCb as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_driver_callbacks_t), + "::", + stringify!(pfnGetCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_driver_callbacks_t>())).pfnGetApiVersionCb as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_driver_callbacks_t), + "::", + stringify!(pfnGetApiVersionCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_driver_callbacks_t>())).pfnGetPropertiesCb as *const _ + as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_driver_callbacks_t), + "::", + stringify!(pfnGetPropertiesCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_driver_callbacks_t>())).pfnGetIpcPropertiesCb as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_driver_callbacks_t), + "::", + stringify!(pfnGetIpcPropertiesCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_driver_callbacks_t>())).pfnGetExtensionPropertiesCb + as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_driver_callbacks_t), + "::", + stringify!(pfnGetExtensionPropertiesCb) + ) + ); +} +#[doc = ""] +#[doc = " @brief Table of Driver callback functions pointers"] +pub type ze_driver_callbacks_t = _ze_driver_callbacks_t; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDeviceGet"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_device_get_params_t { + pub phDriver: *mut ze_driver_handle_t, + pub ppCount: *mut *mut u32, + pub pphDevices: *mut *mut ze_device_handle_t, +} +#[test] +fn bindgen_test_layout__ze_device_get_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_device_get_params_t>(), + 24usize, + concat!("Size of: ", stringify!(_ze_device_get_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_device_get_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_device_get_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_get_params_t>())).phDriver as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_params_t), + "::", + stringify!(phDriver) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_device_get_params_t>())).ppCount as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_params_t), + "::", + stringify!(ppCount) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_get_params_t>())).pphDevices as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_params_t), + "::", + stringify!(pphDevices) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDeviceGet"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_device_get_params_t = _ze_device_get_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeDeviceGet"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnDeviceGetCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_device_get_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDeviceGetSubDevices"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_device_get_sub_devices_params_t { + pub phDevice: *mut ze_device_handle_t, + pub ppCount: *mut *mut u32, + pub pphSubdevices: *mut *mut ze_device_handle_t, +} +#[test] +fn bindgen_test_layout__ze_device_get_sub_devices_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_device_get_sub_devices_params_t>(), + 24usize, + concat!("Size of: ", stringify!(_ze_device_get_sub_devices_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_device_get_sub_devices_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_device_get_sub_devices_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_get_sub_devices_params_t>())).phDevice as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_sub_devices_params_t), + "::", + stringify!(phDevice) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_get_sub_devices_params_t>())).ppCount as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_sub_devices_params_t), + "::", + stringify!(ppCount) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_get_sub_devices_params_t>())).pphSubdevices + as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_sub_devices_params_t), + "::", + stringify!(pphSubdevices) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDeviceGetSubDevices"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_device_get_sub_devices_params_t = _ze_device_get_sub_devices_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeDeviceGetSubDevices"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnDeviceGetSubDevicesCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_device_get_sub_devices_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDeviceGetProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_device_get_properties_params_t { + pub phDevice: *mut ze_device_handle_t, + pub ppDeviceProperties: *mut *mut ze_device_properties_t, +} +#[test] +fn bindgen_test_layout__ze_device_get_properties_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_device_get_properties_params_t>(), + 16usize, + concat!("Size of: ", stringify!(_ze_device_get_properties_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_device_get_properties_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_device_get_properties_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_get_properties_params_t>())).phDevice as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_properties_params_t), + "::", + stringify!(phDevice) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_get_properties_params_t>())).ppDeviceProperties + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_properties_params_t), + "::", + stringify!(ppDeviceProperties) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDeviceGetProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_device_get_properties_params_t = _ze_device_get_properties_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeDeviceGetProperties"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnDeviceGetPropertiesCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_device_get_properties_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDeviceGetComputeProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_device_get_compute_properties_params_t { + pub phDevice: *mut ze_device_handle_t, + pub ppComputeProperties: *mut *mut ze_device_compute_properties_t, +} +#[test] +fn bindgen_test_layout__ze_device_get_compute_properties_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_device_get_compute_properties_params_t>(), + 16usize, + concat!( + "Size of: ", + stringify!(_ze_device_get_compute_properties_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_device_get_compute_properties_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_device_get_compute_properties_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_get_compute_properties_params_t>())).phDevice + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_compute_properties_params_t), + "::", + stringify!(phDevice) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_get_compute_properties_params_t>())) + .ppComputeProperties as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_compute_properties_params_t), + "::", + stringify!(ppComputeProperties) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDeviceGetComputeProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_device_get_compute_properties_params_t = _ze_device_get_compute_properties_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeDeviceGetComputeProperties"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnDeviceGetComputePropertiesCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_device_get_compute_properties_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDeviceGetModuleProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_device_get_module_properties_params_t { + pub phDevice: *mut ze_device_handle_t, + pub ppModuleProperties: *mut *mut ze_device_module_properties_t, +} +#[test] +fn bindgen_test_layout__ze_device_get_module_properties_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_device_get_module_properties_params_t>(), + 16usize, + concat!( + "Size of: ", + stringify!(_ze_device_get_module_properties_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_device_get_module_properties_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_device_get_module_properties_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_get_module_properties_params_t>())).phDevice + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_module_properties_params_t), + "::", + stringify!(phDevice) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_get_module_properties_params_t>())).ppModuleProperties + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_module_properties_params_t), + "::", + stringify!(ppModuleProperties) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDeviceGetModuleProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_device_get_module_properties_params_t = _ze_device_get_module_properties_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeDeviceGetModuleProperties"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnDeviceGetModulePropertiesCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_device_get_module_properties_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDeviceGetCommandQueueGroupProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_device_get_command_queue_group_properties_params_t { + pub phDevice: *mut ze_device_handle_t, + pub ppCount: *mut *mut u32, + pub ppCommandQueueGroupProperties: *mut *mut ze_command_queue_group_properties_t, +} +#[test] +fn bindgen_test_layout__ze_device_get_command_queue_group_properties_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_device_get_command_queue_group_properties_params_t>(), + 24usize, + concat!( + "Size of: ", + stringify!(_ze_device_get_command_queue_group_properties_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_device_get_command_queue_group_properties_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_device_get_command_queue_group_properties_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_get_command_queue_group_properties_params_t>())) + .phDevice as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_command_queue_group_properties_params_t), + "::", + stringify!(phDevice) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_get_command_queue_group_properties_params_t>())) + .ppCount as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_command_queue_group_properties_params_t), + "::", + stringify!(ppCount) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_get_command_queue_group_properties_params_t>())) + .ppCommandQueueGroupProperties as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_command_queue_group_properties_params_t), + "::", + stringify!(ppCommandQueueGroupProperties) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDeviceGetCommandQueueGroupProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_device_get_command_queue_group_properties_params_t = + _ze_device_get_command_queue_group_properties_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeDeviceGetCommandQueueGroupProperties"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnDeviceGetCommandQueueGroupPropertiesCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_device_get_command_queue_group_properties_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDeviceGetMemoryProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_device_get_memory_properties_params_t { + pub phDevice: *mut ze_device_handle_t, + pub ppCount: *mut *mut u32, + pub ppMemProperties: *mut *mut ze_device_memory_properties_t, +} +#[test] +fn bindgen_test_layout__ze_device_get_memory_properties_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_device_get_memory_properties_params_t>(), + 24usize, + concat!( + "Size of: ", + stringify!(_ze_device_get_memory_properties_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_device_get_memory_properties_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_device_get_memory_properties_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_get_memory_properties_params_t>())).phDevice + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_memory_properties_params_t), + "::", + stringify!(phDevice) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_get_memory_properties_params_t>())).ppCount + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_memory_properties_params_t), + "::", + stringify!(ppCount) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_get_memory_properties_params_t>())).ppMemProperties + as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_memory_properties_params_t), + "::", + stringify!(ppMemProperties) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDeviceGetMemoryProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_device_get_memory_properties_params_t = _ze_device_get_memory_properties_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeDeviceGetMemoryProperties"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnDeviceGetMemoryPropertiesCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_device_get_memory_properties_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDeviceGetMemoryAccessProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_device_get_memory_access_properties_params_t { + pub phDevice: *mut ze_device_handle_t, + pub ppMemAccessProperties: *mut *mut ze_device_memory_access_properties_t, +} +#[test] +fn bindgen_test_layout__ze_device_get_memory_access_properties_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_device_get_memory_access_properties_params_t>(), + 16usize, + concat!( + "Size of: ", + stringify!(_ze_device_get_memory_access_properties_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_device_get_memory_access_properties_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_device_get_memory_access_properties_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_get_memory_access_properties_params_t>())).phDevice + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_memory_access_properties_params_t), + "::", + stringify!(phDevice) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_get_memory_access_properties_params_t>())) + .ppMemAccessProperties as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_memory_access_properties_params_t), + "::", + stringify!(ppMemAccessProperties) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDeviceGetMemoryAccessProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_device_get_memory_access_properties_params_t = + _ze_device_get_memory_access_properties_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeDeviceGetMemoryAccessProperties"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnDeviceGetMemoryAccessPropertiesCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_device_get_memory_access_properties_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDeviceGetCacheProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_device_get_cache_properties_params_t { + pub phDevice: *mut ze_device_handle_t, + pub ppCount: *mut *mut u32, + pub ppCacheProperties: *mut *mut ze_device_cache_properties_t, +} +#[test] +fn bindgen_test_layout__ze_device_get_cache_properties_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_device_get_cache_properties_params_t>(), + 24usize, + concat!( + "Size of: ", + stringify!(_ze_device_get_cache_properties_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_device_get_cache_properties_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_device_get_cache_properties_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_get_cache_properties_params_t>())).phDevice + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_cache_properties_params_t), + "::", + stringify!(phDevice) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_get_cache_properties_params_t>())).ppCount as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_cache_properties_params_t), + "::", + stringify!(ppCount) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_get_cache_properties_params_t>())).ppCacheProperties + as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_cache_properties_params_t), + "::", + stringify!(ppCacheProperties) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDeviceGetCacheProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_device_get_cache_properties_params_t = _ze_device_get_cache_properties_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeDeviceGetCacheProperties"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnDeviceGetCachePropertiesCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_device_get_cache_properties_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDeviceGetImageProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_device_get_image_properties_params_t { + pub phDevice: *mut ze_device_handle_t, + pub ppImageProperties: *mut *mut ze_device_image_properties_t, +} +#[test] +fn bindgen_test_layout__ze_device_get_image_properties_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_device_get_image_properties_params_t>(), + 16usize, + concat!( + "Size of: ", + stringify!(_ze_device_get_image_properties_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_device_get_image_properties_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_device_get_image_properties_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_get_image_properties_params_t>())).phDevice + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_image_properties_params_t), + "::", + stringify!(phDevice) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_get_image_properties_params_t>())).ppImageProperties + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_image_properties_params_t), + "::", + stringify!(ppImageProperties) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDeviceGetImageProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_device_get_image_properties_params_t = _ze_device_get_image_properties_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeDeviceGetImageProperties"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnDeviceGetImagePropertiesCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_device_get_image_properties_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDeviceGetExternalMemoryProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_device_get_external_memory_properties_params_t { + pub phDevice: *mut ze_device_handle_t, + pub ppExternalMemoryProperties: *mut *mut ze_device_external_memory_properties_t, +} +#[test] +fn bindgen_test_layout__ze_device_get_external_memory_properties_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_device_get_external_memory_properties_params_t>(), + 16usize, + concat!( + "Size of: ", + stringify!(_ze_device_get_external_memory_properties_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_device_get_external_memory_properties_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_device_get_external_memory_properties_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_get_external_memory_properties_params_t>())).phDevice + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_external_memory_properties_params_t), + "::", + stringify!(phDevice) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_get_external_memory_properties_params_t>())) + .ppExternalMemoryProperties as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_external_memory_properties_params_t), + "::", + stringify!(ppExternalMemoryProperties) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDeviceGetExternalMemoryProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_device_get_external_memory_properties_params_t = + _ze_device_get_external_memory_properties_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeDeviceGetExternalMemoryProperties"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnDeviceGetExternalMemoryPropertiesCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_device_get_external_memory_properties_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDeviceGetP2PProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_device_get_p2_p_properties_params_t { + pub phDevice: *mut ze_device_handle_t, + pub phPeerDevice: *mut ze_device_handle_t, + pub ppP2PProperties: *mut *mut ze_device_p2p_properties_t, +} +#[test] +fn bindgen_test_layout__ze_device_get_p2_p_properties_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_device_get_p2_p_properties_params_t>(), + 24usize, + concat!( + "Size of: ", + stringify!(_ze_device_get_p2_p_properties_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_device_get_p2_p_properties_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_device_get_p2_p_properties_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_get_p2_p_properties_params_t>())).phDevice as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_p2_p_properties_params_t), + "::", + stringify!(phDevice) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_get_p2_p_properties_params_t>())).phPeerDevice + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_p2_p_properties_params_t), + "::", + stringify!(phPeerDevice) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_get_p2_p_properties_params_t>())).ppP2PProperties + as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_p2_p_properties_params_t), + "::", + stringify!(ppP2PProperties) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDeviceGetP2PProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_device_get_p2_p_properties_params_t = _ze_device_get_p2_p_properties_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeDeviceGetP2PProperties"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnDeviceGetP2PPropertiesCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_device_get_p2_p_properties_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDeviceCanAccessPeer"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_device_can_access_peer_params_t { + pub phDevice: *mut ze_device_handle_t, + pub phPeerDevice: *mut ze_device_handle_t, + pub pvalue: *mut *mut ze_bool_t, +} +#[test] +fn bindgen_test_layout__ze_device_can_access_peer_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_device_can_access_peer_params_t>(), + 24usize, + concat!("Size of: ", stringify!(_ze_device_can_access_peer_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_device_can_access_peer_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_device_can_access_peer_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_can_access_peer_params_t>())).phDevice as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_can_access_peer_params_t), + "::", + stringify!(phDevice) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_can_access_peer_params_t>())).phPeerDevice as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_can_access_peer_params_t), + "::", + stringify!(phPeerDevice) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_can_access_peer_params_t>())).pvalue as *const _ + as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_can_access_peer_params_t), + "::", + stringify!(pvalue) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDeviceCanAccessPeer"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_device_can_access_peer_params_t = _ze_device_can_access_peer_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeDeviceCanAccessPeer"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnDeviceCanAccessPeerCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_device_can_access_peer_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDeviceGetStatus"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_device_get_status_params_t { + pub phDevice: *mut ze_device_handle_t, +} +#[test] +fn bindgen_test_layout__ze_device_get_status_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_device_get_status_params_t>(), + 8usize, + concat!("Size of: ", stringify!(_ze_device_get_status_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_device_get_status_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_device_get_status_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_get_status_params_t>())).phDevice as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_get_status_params_t), + "::", + stringify!(phDevice) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeDeviceGetStatus"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_device_get_status_params_t = _ze_device_get_status_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeDeviceGetStatus"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnDeviceGetStatusCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_device_get_status_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Table of Device callback functions pointers"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_device_callbacks_t { + pub pfnGetCb: ze_pfnDeviceGetCb_t, + pub pfnGetSubDevicesCb: ze_pfnDeviceGetSubDevicesCb_t, + pub pfnGetPropertiesCb: ze_pfnDeviceGetPropertiesCb_t, + pub pfnGetComputePropertiesCb: ze_pfnDeviceGetComputePropertiesCb_t, + pub pfnGetModulePropertiesCb: ze_pfnDeviceGetModulePropertiesCb_t, + pub pfnGetCommandQueueGroupPropertiesCb: ze_pfnDeviceGetCommandQueueGroupPropertiesCb_t, + pub pfnGetMemoryPropertiesCb: ze_pfnDeviceGetMemoryPropertiesCb_t, + pub pfnGetMemoryAccessPropertiesCb: ze_pfnDeviceGetMemoryAccessPropertiesCb_t, + pub pfnGetCachePropertiesCb: ze_pfnDeviceGetCachePropertiesCb_t, + pub pfnGetImagePropertiesCb: ze_pfnDeviceGetImagePropertiesCb_t, + pub pfnGetExternalMemoryPropertiesCb: ze_pfnDeviceGetExternalMemoryPropertiesCb_t, + pub pfnGetP2PPropertiesCb: ze_pfnDeviceGetP2PPropertiesCb_t, + pub pfnCanAccessPeerCb: ze_pfnDeviceCanAccessPeerCb_t, + pub pfnGetStatusCb: ze_pfnDeviceGetStatusCb_t, +} +#[test] +fn bindgen_test_layout__ze_device_callbacks_t() { + assert_eq!( + ::std::mem::size_of::<_ze_device_callbacks_t>(), + 112usize, + concat!("Size of: ", stringify!(_ze_device_callbacks_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_device_callbacks_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_device_callbacks_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_device_callbacks_t>())).pfnGetCb as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_callbacks_t), + "::", + stringify!(pfnGetCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_callbacks_t>())).pfnGetSubDevicesCb as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_callbacks_t), + "::", + stringify!(pfnGetSubDevicesCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_callbacks_t>())).pfnGetPropertiesCb as *const _ + as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_callbacks_t), + "::", + stringify!(pfnGetPropertiesCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_callbacks_t>())).pfnGetComputePropertiesCb as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_callbacks_t), + "::", + stringify!(pfnGetComputePropertiesCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_callbacks_t>())).pfnGetModulePropertiesCb as *const _ + as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_callbacks_t), + "::", + stringify!(pfnGetModulePropertiesCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_callbacks_t>())).pfnGetCommandQueueGroupPropertiesCb + as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_callbacks_t), + "::", + stringify!(pfnGetCommandQueueGroupPropertiesCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_callbacks_t>())).pfnGetMemoryPropertiesCb as *const _ + as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_callbacks_t), + "::", + stringify!(pfnGetMemoryPropertiesCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_callbacks_t>())).pfnGetMemoryAccessPropertiesCb + as *const _ as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_callbacks_t), + "::", + stringify!(pfnGetMemoryAccessPropertiesCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_callbacks_t>())).pfnGetCachePropertiesCb as *const _ + as usize + }, + 64usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_callbacks_t), + "::", + stringify!(pfnGetCachePropertiesCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_callbacks_t>())).pfnGetImagePropertiesCb as *const _ + as usize + }, + 72usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_callbacks_t), + "::", + stringify!(pfnGetImagePropertiesCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_callbacks_t>())).pfnGetExternalMemoryPropertiesCb + as *const _ as usize + }, + 80usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_callbacks_t), + "::", + stringify!(pfnGetExternalMemoryPropertiesCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_callbacks_t>())).pfnGetP2PPropertiesCb as *const _ + as usize + }, + 88usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_callbacks_t), + "::", + stringify!(pfnGetP2PPropertiesCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_callbacks_t>())).pfnCanAccessPeerCb as *const _ + as usize + }, + 96usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_callbacks_t), + "::", + stringify!(pfnCanAccessPeerCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_device_callbacks_t>())).pfnGetStatusCb as *const _ as usize + }, + 104usize, + concat!( + "Offset of field: ", + stringify!(_ze_device_callbacks_t), + "::", + stringify!(pfnGetStatusCb) + ) + ); +} +#[doc = ""] +#[doc = " @brief Table of Device callback functions pointers"] +pub type ze_device_callbacks_t = _ze_device_callbacks_t; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeContextCreate"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_context_create_params_t { + pub phDriver: *mut ze_driver_handle_t, + pub pdesc: *mut *const ze_context_desc_t, + pub pphContext: *mut *mut ze_context_handle_t, +} +#[test] +fn bindgen_test_layout__ze_context_create_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_context_create_params_t>(), + 24usize, + concat!("Size of: ", stringify!(_ze_context_create_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_context_create_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_context_create_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_context_create_params_t>())).phDriver as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_context_create_params_t), + "::", + stringify!(phDriver) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_context_create_params_t>())).pdesc as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_context_create_params_t), + "::", + stringify!(pdesc) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_context_create_params_t>())).pphContext as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_context_create_params_t), + "::", + stringify!(pphContext) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeContextCreate"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_context_create_params_t = _ze_context_create_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeContextCreate"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnContextCreateCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_context_create_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeContextDestroy"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_context_destroy_params_t { + pub phContext: *mut ze_context_handle_t, +} +#[test] +fn bindgen_test_layout__ze_context_destroy_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_context_destroy_params_t>(), + 8usize, + concat!("Size of: ", stringify!(_ze_context_destroy_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_context_destroy_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_context_destroy_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_context_destroy_params_t>())).phContext as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_context_destroy_params_t), + "::", + stringify!(phContext) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeContextDestroy"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_context_destroy_params_t = _ze_context_destroy_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeContextDestroy"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnContextDestroyCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_context_destroy_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeContextGetStatus"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_context_get_status_params_t { + pub phContext: *mut ze_context_handle_t, +} +#[test] +fn bindgen_test_layout__ze_context_get_status_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_context_get_status_params_t>(), + 8usize, + concat!("Size of: ", stringify!(_ze_context_get_status_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_context_get_status_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_context_get_status_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_context_get_status_params_t>())).phContext as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_context_get_status_params_t), + "::", + stringify!(phContext) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeContextGetStatus"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_context_get_status_params_t = _ze_context_get_status_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeContextGetStatus"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnContextGetStatusCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_context_get_status_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeContextSystemBarrier"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_context_system_barrier_params_t { + pub phContext: *mut ze_context_handle_t, + pub phDevice: *mut ze_device_handle_t, +} +#[test] +fn bindgen_test_layout__ze_context_system_barrier_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_context_system_barrier_params_t>(), + 16usize, + concat!("Size of: ", stringify!(_ze_context_system_barrier_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_context_system_barrier_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_context_system_barrier_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_context_system_barrier_params_t>())).phContext as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_context_system_barrier_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_context_system_barrier_params_t>())).phDevice as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_context_system_barrier_params_t), + "::", + stringify!(phDevice) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeContextSystemBarrier"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_context_system_barrier_params_t = _ze_context_system_barrier_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeContextSystemBarrier"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnContextSystemBarrierCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_context_system_barrier_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeContextMakeMemoryResident"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_context_make_memory_resident_params_t { + pub phContext: *mut ze_context_handle_t, + pub phDevice: *mut ze_device_handle_t, + pub pptr: *mut *mut ::std::os::raw::c_void, + pub psize: *mut usize, +} +#[test] +fn bindgen_test_layout__ze_context_make_memory_resident_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_context_make_memory_resident_params_t>(), + 32usize, + concat!( + "Size of: ", + stringify!(_ze_context_make_memory_resident_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_context_make_memory_resident_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_context_make_memory_resident_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_context_make_memory_resident_params_t>())).phContext + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_context_make_memory_resident_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_context_make_memory_resident_params_t>())).phDevice + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_context_make_memory_resident_params_t), + "::", + stringify!(phDevice) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_context_make_memory_resident_params_t>())).pptr as *const _ + as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_context_make_memory_resident_params_t), + "::", + stringify!(pptr) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_context_make_memory_resident_params_t>())).psize as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_context_make_memory_resident_params_t), + "::", + stringify!(psize) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeContextMakeMemoryResident"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_context_make_memory_resident_params_t = _ze_context_make_memory_resident_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeContextMakeMemoryResident"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnContextMakeMemoryResidentCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_context_make_memory_resident_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeContextEvictMemory"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_context_evict_memory_params_t { + pub phContext: *mut ze_context_handle_t, + pub phDevice: *mut ze_device_handle_t, + pub pptr: *mut *mut ::std::os::raw::c_void, + pub psize: *mut usize, +} +#[test] +fn bindgen_test_layout__ze_context_evict_memory_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_context_evict_memory_params_t>(), + 32usize, + concat!("Size of: ", stringify!(_ze_context_evict_memory_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_context_evict_memory_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_context_evict_memory_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_context_evict_memory_params_t>())).phContext as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_context_evict_memory_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_context_evict_memory_params_t>())).phDevice as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_context_evict_memory_params_t), + "::", + stringify!(phDevice) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_context_evict_memory_params_t>())).pptr as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_context_evict_memory_params_t), + "::", + stringify!(pptr) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_context_evict_memory_params_t>())).psize as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_context_evict_memory_params_t), + "::", + stringify!(psize) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeContextEvictMemory"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_context_evict_memory_params_t = _ze_context_evict_memory_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeContextEvictMemory"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnContextEvictMemoryCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_context_evict_memory_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeContextMakeImageResident"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_context_make_image_resident_params_t { + pub phContext: *mut ze_context_handle_t, + pub phDevice: *mut ze_device_handle_t, + pub phImage: *mut ze_image_handle_t, +} +#[test] +fn bindgen_test_layout__ze_context_make_image_resident_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_context_make_image_resident_params_t>(), + 24usize, + concat!( + "Size of: ", + stringify!(_ze_context_make_image_resident_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_context_make_image_resident_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_context_make_image_resident_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_context_make_image_resident_params_t>())).phContext + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_context_make_image_resident_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_context_make_image_resident_params_t>())).phDevice + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_context_make_image_resident_params_t), + "::", + stringify!(phDevice) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_context_make_image_resident_params_t>())).phImage as *const _ + as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_context_make_image_resident_params_t), + "::", + stringify!(phImage) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeContextMakeImageResident"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_context_make_image_resident_params_t = _ze_context_make_image_resident_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeContextMakeImageResident"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnContextMakeImageResidentCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_context_make_image_resident_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeContextEvictImage"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_context_evict_image_params_t { + pub phContext: *mut ze_context_handle_t, + pub phDevice: *mut ze_device_handle_t, + pub phImage: *mut ze_image_handle_t, +} +#[test] +fn bindgen_test_layout__ze_context_evict_image_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_context_evict_image_params_t>(), + 24usize, + concat!("Size of: ", stringify!(_ze_context_evict_image_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_context_evict_image_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_context_evict_image_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_context_evict_image_params_t>())).phContext as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_context_evict_image_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_context_evict_image_params_t>())).phDevice as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_context_evict_image_params_t), + "::", + stringify!(phDevice) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_context_evict_image_params_t>())).phImage as *const _ + as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_context_evict_image_params_t), + "::", + stringify!(phImage) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeContextEvictImage"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_context_evict_image_params_t = _ze_context_evict_image_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeContextEvictImage"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnContextEvictImageCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_context_evict_image_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Table of Context callback functions pointers"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_context_callbacks_t { + pub pfnCreateCb: ze_pfnContextCreateCb_t, + pub pfnDestroyCb: ze_pfnContextDestroyCb_t, + pub pfnGetStatusCb: ze_pfnContextGetStatusCb_t, + pub pfnSystemBarrierCb: ze_pfnContextSystemBarrierCb_t, + pub pfnMakeMemoryResidentCb: ze_pfnContextMakeMemoryResidentCb_t, + pub pfnEvictMemoryCb: ze_pfnContextEvictMemoryCb_t, + pub pfnMakeImageResidentCb: ze_pfnContextMakeImageResidentCb_t, + pub pfnEvictImageCb: ze_pfnContextEvictImageCb_t, +} +#[test] +fn bindgen_test_layout__ze_context_callbacks_t() { + assert_eq!( + ::std::mem::size_of::<_ze_context_callbacks_t>(), + 64usize, + concat!("Size of: ", stringify!(_ze_context_callbacks_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_context_callbacks_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_context_callbacks_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_context_callbacks_t>())).pfnCreateCb as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_context_callbacks_t), + "::", + stringify!(pfnCreateCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_context_callbacks_t>())).pfnDestroyCb as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_context_callbacks_t), + "::", + stringify!(pfnDestroyCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_context_callbacks_t>())).pfnGetStatusCb as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_context_callbacks_t), + "::", + stringify!(pfnGetStatusCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_context_callbacks_t>())).pfnSystemBarrierCb as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_context_callbacks_t), + "::", + stringify!(pfnSystemBarrierCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_context_callbacks_t>())).pfnMakeMemoryResidentCb as *const _ + as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_context_callbacks_t), + "::", + stringify!(pfnMakeMemoryResidentCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_context_callbacks_t>())).pfnEvictMemoryCb as *const _ + as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_ze_context_callbacks_t), + "::", + stringify!(pfnEvictMemoryCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_context_callbacks_t>())).pfnMakeImageResidentCb as *const _ + as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_ze_context_callbacks_t), + "::", + stringify!(pfnMakeImageResidentCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_context_callbacks_t>())).pfnEvictImageCb as *const _ as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_ze_context_callbacks_t), + "::", + stringify!(pfnEvictImageCb) + ) + ); +} +#[doc = ""] +#[doc = " @brief Table of Context callback functions pointers"] +pub type ze_context_callbacks_t = _ze_context_callbacks_t; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandQueueCreate"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_queue_create_params_t { + pub phContext: *mut ze_context_handle_t, + pub phDevice: *mut ze_device_handle_t, + pub pdesc: *mut *const ze_command_queue_desc_t, + pub pphCommandQueue: *mut *mut ze_command_queue_handle_t, +} +#[test] +fn bindgen_test_layout__ze_command_queue_create_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_queue_create_params_t>(), + 32usize, + concat!("Size of: ", stringify!(_ze_command_queue_create_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_queue_create_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_command_queue_create_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_queue_create_params_t>())).phContext as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_queue_create_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_queue_create_params_t>())).phDevice as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_queue_create_params_t), + "::", + stringify!(phDevice) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_queue_create_params_t>())).pdesc as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_queue_create_params_t), + "::", + stringify!(pdesc) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_queue_create_params_t>())).pphCommandQueue + as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_queue_create_params_t), + "::", + stringify!(pphCommandQueue) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandQueueCreate"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_command_queue_create_params_t = _ze_command_queue_create_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeCommandQueueCreate"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnCommandQueueCreateCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_command_queue_create_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandQueueDestroy"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_queue_destroy_params_t { + pub phCommandQueue: *mut ze_command_queue_handle_t, +} +#[test] +fn bindgen_test_layout__ze_command_queue_destroy_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_queue_destroy_params_t>(), + 8usize, + concat!("Size of: ", stringify!(_ze_command_queue_destroy_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_queue_destroy_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_command_queue_destroy_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_queue_destroy_params_t>())).phCommandQueue + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_queue_destroy_params_t), + "::", + stringify!(phCommandQueue) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandQueueDestroy"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_command_queue_destroy_params_t = _ze_command_queue_destroy_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeCommandQueueDestroy"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnCommandQueueDestroyCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_command_queue_destroy_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandQueueExecuteCommandLists"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_queue_execute_command_lists_params_t { + pub phCommandQueue: *mut ze_command_queue_handle_t, + pub pnumCommandLists: *mut u32, + pub pphCommandLists: *mut *mut ze_command_list_handle_t, + pub phFence: *mut ze_fence_handle_t, +} +#[test] +fn bindgen_test_layout__ze_command_queue_execute_command_lists_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_queue_execute_command_lists_params_t>(), + 32usize, + concat!( + "Size of: ", + stringify!(_ze_command_queue_execute_command_lists_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_queue_execute_command_lists_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_command_queue_execute_command_lists_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_queue_execute_command_lists_params_t>())) + .phCommandQueue as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_queue_execute_command_lists_params_t), + "::", + stringify!(phCommandQueue) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_queue_execute_command_lists_params_t>())) + .pnumCommandLists as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_queue_execute_command_lists_params_t), + "::", + stringify!(pnumCommandLists) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_queue_execute_command_lists_params_t>())) + .pphCommandLists as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_queue_execute_command_lists_params_t), + "::", + stringify!(pphCommandLists) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_queue_execute_command_lists_params_t>())).phFence + as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_queue_execute_command_lists_params_t), + "::", + stringify!(phFence) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandQueueExecuteCommandLists"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_command_queue_execute_command_lists_params_t = + _ze_command_queue_execute_command_lists_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeCommandQueueExecuteCommandLists"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnCommandQueueExecuteCommandListsCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_command_queue_execute_command_lists_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandQueueSynchronize"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_queue_synchronize_params_t { + pub phCommandQueue: *mut ze_command_queue_handle_t, + pub ptimeout: *mut u64, +} +#[test] +fn bindgen_test_layout__ze_command_queue_synchronize_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_queue_synchronize_params_t>(), + 16usize, + concat!( + "Size of: ", + stringify!(_ze_command_queue_synchronize_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_queue_synchronize_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_command_queue_synchronize_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_queue_synchronize_params_t>())).phCommandQueue + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_queue_synchronize_params_t), + "::", + stringify!(phCommandQueue) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_queue_synchronize_params_t>())).ptimeout as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_queue_synchronize_params_t), + "::", + stringify!(ptimeout) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandQueueSynchronize"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_command_queue_synchronize_params_t = _ze_command_queue_synchronize_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeCommandQueueSynchronize"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnCommandQueueSynchronizeCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_command_queue_synchronize_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Table of CommandQueue callback functions pointers"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_queue_callbacks_t { + pub pfnCreateCb: ze_pfnCommandQueueCreateCb_t, + pub pfnDestroyCb: ze_pfnCommandQueueDestroyCb_t, + pub pfnExecuteCommandListsCb: ze_pfnCommandQueueExecuteCommandListsCb_t, + pub pfnSynchronizeCb: ze_pfnCommandQueueSynchronizeCb_t, +} +#[test] +fn bindgen_test_layout__ze_command_queue_callbacks_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_queue_callbacks_t>(), + 32usize, + concat!("Size of: ", stringify!(_ze_command_queue_callbacks_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_queue_callbacks_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_command_queue_callbacks_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_queue_callbacks_t>())).pfnCreateCb as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_queue_callbacks_t), + "::", + stringify!(pfnCreateCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_queue_callbacks_t>())).pfnDestroyCb as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_queue_callbacks_t), + "::", + stringify!(pfnDestroyCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_queue_callbacks_t>())).pfnExecuteCommandListsCb + as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_queue_callbacks_t), + "::", + stringify!(pfnExecuteCommandListsCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_queue_callbacks_t>())).pfnSynchronizeCb as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_queue_callbacks_t), + "::", + stringify!(pfnSynchronizeCb) + ) + ); +} +#[doc = ""] +#[doc = " @brief Table of CommandQueue callback functions pointers"] +pub type ze_command_queue_callbacks_t = _ze_command_queue_callbacks_t; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListCreate"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_list_create_params_t { + pub phContext: *mut ze_context_handle_t, + pub phDevice: *mut ze_device_handle_t, + pub pdesc: *mut *const ze_command_list_desc_t, + pub pphCommandList: *mut *mut ze_command_list_handle_t, +} +#[test] +fn bindgen_test_layout__ze_command_list_create_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_list_create_params_t>(), + 32usize, + concat!("Size of: ", stringify!(_ze_command_list_create_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_list_create_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_command_list_create_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_create_params_t>())).phContext as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_create_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_create_params_t>())).phDevice as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_create_params_t), + "::", + stringify!(phDevice) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_create_params_t>())).pdesc as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_create_params_t), + "::", + stringify!(pdesc) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_create_params_t>())).pphCommandList as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_create_params_t), + "::", + stringify!(pphCommandList) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListCreate"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_command_list_create_params_t = _ze_command_list_create_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeCommandListCreate"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnCommandListCreateCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_command_list_create_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListCreateImmediate"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_list_create_immediate_params_t { + pub phContext: *mut ze_context_handle_t, + pub phDevice: *mut ze_device_handle_t, + pub paltdesc: *mut *const ze_command_queue_desc_t, + pub pphCommandList: *mut *mut ze_command_list_handle_t, +} +#[test] +fn bindgen_test_layout__ze_command_list_create_immediate_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_list_create_immediate_params_t>(), + 32usize, + concat!( + "Size of: ", + stringify!(_ze_command_list_create_immediate_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_list_create_immediate_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_command_list_create_immediate_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_create_immediate_params_t>())).phContext + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_create_immediate_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_create_immediate_params_t>())).phDevice + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_create_immediate_params_t), + "::", + stringify!(phDevice) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_create_immediate_params_t>())).paltdesc + as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_create_immediate_params_t), + "::", + stringify!(paltdesc) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_create_immediate_params_t>())).pphCommandList + as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_create_immediate_params_t), + "::", + stringify!(pphCommandList) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListCreateImmediate"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_command_list_create_immediate_params_t = _ze_command_list_create_immediate_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeCommandListCreateImmediate"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnCommandListCreateImmediateCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_command_list_create_immediate_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListDestroy"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_list_destroy_params_t { + pub phCommandList: *mut ze_command_list_handle_t, +} +#[test] +fn bindgen_test_layout__ze_command_list_destroy_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_list_destroy_params_t>(), + 8usize, + concat!("Size of: ", stringify!(_ze_command_list_destroy_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_list_destroy_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_command_list_destroy_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_destroy_params_t>())).phCommandList as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_destroy_params_t), + "::", + stringify!(phCommandList) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListDestroy"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_command_list_destroy_params_t = _ze_command_list_destroy_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeCommandListDestroy"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnCommandListDestroyCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_command_list_destroy_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListClose"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_list_close_params_t { + pub phCommandList: *mut ze_command_list_handle_t, +} +#[test] +fn bindgen_test_layout__ze_command_list_close_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_list_close_params_t>(), + 8usize, + concat!("Size of: ", stringify!(_ze_command_list_close_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_list_close_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_command_list_close_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_close_params_t>())).phCommandList as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_close_params_t), + "::", + stringify!(phCommandList) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListClose"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_command_list_close_params_t = _ze_command_list_close_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeCommandListClose"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnCommandListCloseCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_command_list_close_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListReset"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_list_reset_params_t { + pub phCommandList: *mut ze_command_list_handle_t, +} +#[test] +fn bindgen_test_layout__ze_command_list_reset_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_list_reset_params_t>(), + 8usize, + concat!("Size of: ", stringify!(_ze_command_list_reset_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_list_reset_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_command_list_reset_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_reset_params_t>())).phCommandList as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_reset_params_t), + "::", + stringify!(phCommandList) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListReset"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_command_list_reset_params_t = _ze_command_list_reset_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeCommandListReset"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnCommandListResetCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_command_list_reset_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendWriteGlobalTimestamp"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_list_append_write_global_timestamp_params_t { + pub phCommandList: *mut ze_command_list_handle_t, + pub pdstptr: *mut *mut u64, + pub phSignalEvent: *mut ze_event_handle_t, + pub pnumWaitEvents: *mut u32, + pub pphWaitEvents: *mut *mut ze_event_handle_t, +} +#[test] +fn bindgen_test_layout__ze_command_list_append_write_global_timestamp_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_list_append_write_global_timestamp_params_t>(), + 40usize, + concat!( + "Size of: ", + stringify!(_ze_command_list_append_write_global_timestamp_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_list_append_write_global_timestamp_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_command_list_append_write_global_timestamp_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_write_global_timestamp_params_t>())) + .phCommandList as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_write_global_timestamp_params_t), + "::", + stringify!(phCommandList) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_write_global_timestamp_params_t>())) + .pdstptr as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_write_global_timestamp_params_t), + "::", + stringify!(pdstptr) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_write_global_timestamp_params_t>())) + .phSignalEvent as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_write_global_timestamp_params_t), + "::", + stringify!(phSignalEvent) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_write_global_timestamp_params_t>())) + .pnumWaitEvents as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_write_global_timestamp_params_t), + "::", + stringify!(pnumWaitEvents) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_write_global_timestamp_params_t>())) + .pphWaitEvents as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_write_global_timestamp_params_t), + "::", + stringify!(pphWaitEvents) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendWriteGlobalTimestamp"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_command_list_append_write_global_timestamp_params_t = + _ze_command_list_append_write_global_timestamp_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeCommandListAppendWriteGlobalTimestamp"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnCommandListAppendWriteGlobalTimestampCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_command_list_append_write_global_timestamp_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendBarrier"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_list_append_barrier_params_t { + pub phCommandList: *mut ze_command_list_handle_t, + pub phSignalEvent: *mut ze_event_handle_t, + pub pnumWaitEvents: *mut u32, + pub pphWaitEvents: *mut *mut ze_event_handle_t, +} +#[test] +fn bindgen_test_layout__ze_command_list_append_barrier_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_list_append_barrier_params_t>(), + 32usize, + concat!( + "Size of: ", + stringify!(_ze_command_list_append_barrier_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_list_append_barrier_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_command_list_append_barrier_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_barrier_params_t>())).phCommandList + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_barrier_params_t), + "::", + stringify!(phCommandList) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_barrier_params_t>())).phSignalEvent + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_barrier_params_t), + "::", + stringify!(phSignalEvent) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_barrier_params_t>())).pnumWaitEvents + as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_barrier_params_t), + "::", + stringify!(pnumWaitEvents) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_barrier_params_t>())).pphWaitEvents + as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_barrier_params_t), + "::", + stringify!(pphWaitEvents) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendBarrier"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_command_list_append_barrier_params_t = _ze_command_list_append_barrier_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeCommandListAppendBarrier"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnCommandListAppendBarrierCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_command_list_append_barrier_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendMemoryRangesBarrier"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_list_append_memory_ranges_barrier_params_t { + pub phCommandList: *mut ze_command_list_handle_t, + pub pnumRanges: *mut u32, + pub ppRangeSizes: *mut *const usize, + pub ppRanges: *mut *mut *const ::std::os::raw::c_void, + pub phSignalEvent: *mut ze_event_handle_t, + pub pnumWaitEvents: *mut u32, + pub pphWaitEvents: *mut *mut ze_event_handle_t, +} +#[test] +fn bindgen_test_layout__ze_command_list_append_memory_ranges_barrier_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_list_append_memory_ranges_barrier_params_t>(), + 56usize, + concat!( + "Size of: ", + stringify!(_ze_command_list_append_memory_ranges_barrier_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_list_append_memory_ranges_barrier_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_command_list_append_memory_ranges_barrier_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_ranges_barrier_params_t>())) + .phCommandList as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_ranges_barrier_params_t), + "::", + stringify!(phCommandList) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_ranges_barrier_params_t>())) + .pnumRanges as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_ranges_barrier_params_t), + "::", + stringify!(pnumRanges) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_ranges_barrier_params_t>())) + .ppRangeSizes as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_ranges_barrier_params_t), + "::", + stringify!(ppRangeSizes) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_ranges_barrier_params_t>())) + .ppRanges as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_ranges_barrier_params_t), + "::", + stringify!(ppRanges) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_ranges_barrier_params_t>())) + .phSignalEvent as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_ranges_barrier_params_t), + "::", + stringify!(phSignalEvent) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_ranges_barrier_params_t>())) + .pnumWaitEvents as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_ranges_barrier_params_t), + "::", + stringify!(pnumWaitEvents) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_ranges_barrier_params_t>())) + .pphWaitEvents as *const _ as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_ranges_barrier_params_t), + "::", + stringify!(pphWaitEvents) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendMemoryRangesBarrier"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_command_list_append_memory_ranges_barrier_params_t = + _ze_command_list_append_memory_ranges_barrier_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeCommandListAppendMemoryRangesBarrier"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnCommandListAppendMemoryRangesBarrierCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_command_list_append_memory_ranges_barrier_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendMemoryCopy"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_list_append_memory_copy_params_t { + pub phCommandList: *mut ze_command_list_handle_t, + pub pdstptr: *mut *mut ::std::os::raw::c_void, + pub psrcptr: *mut *const ::std::os::raw::c_void, + pub psize: *mut usize, + pub phSignalEvent: *mut ze_event_handle_t, + pub pnumWaitEvents: *mut u32, + pub pphWaitEvents: *mut *mut ze_event_handle_t, +} +#[test] +fn bindgen_test_layout__ze_command_list_append_memory_copy_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_list_append_memory_copy_params_t>(), + 56usize, + concat!( + "Size of: ", + stringify!(_ze_command_list_append_memory_copy_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_list_append_memory_copy_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_command_list_append_memory_copy_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_copy_params_t>())).phCommandList + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_copy_params_t), + "::", + stringify!(phCommandList) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_copy_params_t>())).pdstptr + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_copy_params_t), + "::", + stringify!(pdstptr) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_copy_params_t>())).psrcptr + as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_copy_params_t), + "::", + stringify!(psrcptr) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_copy_params_t>())).psize + as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_copy_params_t), + "::", + stringify!(psize) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_copy_params_t>())).phSignalEvent + as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_copy_params_t), + "::", + stringify!(phSignalEvent) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_copy_params_t>())).pnumWaitEvents + as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_copy_params_t), + "::", + stringify!(pnumWaitEvents) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_copy_params_t>())).pphWaitEvents + as *const _ as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_copy_params_t), + "::", + stringify!(pphWaitEvents) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendMemoryCopy"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_command_list_append_memory_copy_params_t = _ze_command_list_append_memory_copy_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeCommandListAppendMemoryCopy"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnCommandListAppendMemoryCopyCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_command_list_append_memory_copy_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendMemoryFill"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_list_append_memory_fill_params_t { + pub phCommandList: *mut ze_command_list_handle_t, + pub pptr: *mut *mut ::std::os::raw::c_void, + pub ppattern: *mut *const ::std::os::raw::c_void, + pub ppattern_size: *mut usize, + pub psize: *mut usize, + pub phSignalEvent: *mut ze_event_handle_t, + pub pnumWaitEvents: *mut u32, + pub pphWaitEvents: *mut *mut ze_event_handle_t, +} +#[test] +fn bindgen_test_layout__ze_command_list_append_memory_fill_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_list_append_memory_fill_params_t>(), + 64usize, + concat!( + "Size of: ", + stringify!(_ze_command_list_append_memory_fill_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_list_append_memory_fill_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_command_list_append_memory_fill_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_fill_params_t>())).phCommandList + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_fill_params_t), + "::", + stringify!(phCommandList) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_fill_params_t>())).pptr + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_fill_params_t), + "::", + stringify!(pptr) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_fill_params_t>())).ppattern + as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_fill_params_t), + "::", + stringify!(ppattern) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_fill_params_t>())).ppattern_size + as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_fill_params_t), + "::", + stringify!(ppattern_size) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_fill_params_t>())).psize + as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_fill_params_t), + "::", + stringify!(psize) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_fill_params_t>())).phSignalEvent + as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_fill_params_t), + "::", + stringify!(phSignalEvent) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_fill_params_t>())).pnumWaitEvents + as *const _ as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_fill_params_t), + "::", + stringify!(pnumWaitEvents) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_fill_params_t>())).pphWaitEvents + as *const _ as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_fill_params_t), + "::", + stringify!(pphWaitEvents) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendMemoryFill"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_command_list_append_memory_fill_params_t = _ze_command_list_append_memory_fill_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeCommandListAppendMemoryFill"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnCommandListAppendMemoryFillCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_command_list_append_memory_fill_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendMemoryCopyRegion"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_list_append_memory_copy_region_params_t { + pub phCommandList: *mut ze_command_list_handle_t, + pub pdstptr: *mut *mut ::std::os::raw::c_void, + pub pdstRegion: *mut *const ze_copy_region_t, + pub pdstPitch: *mut u32, + pub pdstSlicePitch: *mut u32, + pub psrcptr: *mut *const ::std::os::raw::c_void, + pub psrcRegion: *mut *const ze_copy_region_t, + pub psrcPitch: *mut u32, + pub psrcSlicePitch: *mut u32, + pub phSignalEvent: *mut ze_event_handle_t, + pub pnumWaitEvents: *mut u32, + pub pphWaitEvents: *mut *mut ze_event_handle_t, +} +#[test] +fn bindgen_test_layout__ze_command_list_append_memory_copy_region_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_list_append_memory_copy_region_params_t>(), + 96usize, + concat!( + "Size of: ", + stringify!(_ze_command_list_append_memory_copy_region_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_list_append_memory_copy_region_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_command_list_append_memory_copy_region_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_copy_region_params_t>())) + .phCommandList as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_copy_region_params_t), + "::", + stringify!(phCommandList) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_copy_region_params_t>())).pdstptr + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_copy_region_params_t), + "::", + stringify!(pdstptr) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_copy_region_params_t>())) + .pdstRegion as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_copy_region_params_t), + "::", + stringify!(pdstRegion) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_copy_region_params_t>())) + .pdstPitch as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_copy_region_params_t), + "::", + stringify!(pdstPitch) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_copy_region_params_t>())) + .pdstSlicePitch as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_copy_region_params_t), + "::", + stringify!(pdstSlicePitch) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_copy_region_params_t>())).psrcptr + as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_copy_region_params_t), + "::", + stringify!(psrcptr) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_copy_region_params_t>())) + .psrcRegion as *const _ as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_copy_region_params_t), + "::", + stringify!(psrcRegion) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_copy_region_params_t>())) + .psrcPitch as *const _ as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_copy_region_params_t), + "::", + stringify!(psrcPitch) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_copy_region_params_t>())) + .psrcSlicePitch as *const _ as usize + }, + 64usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_copy_region_params_t), + "::", + stringify!(psrcSlicePitch) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_copy_region_params_t>())) + .phSignalEvent as *const _ as usize + }, + 72usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_copy_region_params_t), + "::", + stringify!(phSignalEvent) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_copy_region_params_t>())) + .pnumWaitEvents as *const _ as usize + }, + 80usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_copy_region_params_t), + "::", + stringify!(pnumWaitEvents) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_copy_region_params_t>())) + .pphWaitEvents as *const _ as usize + }, + 88usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_copy_region_params_t), + "::", + stringify!(pphWaitEvents) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendMemoryCopyRegion"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_command_list_append_memory_copy_region_params_t = + _ze_command_list_append_memory_copy_region_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeCommandListAppendMemoryCopyRegion"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnCommandListAppendMemoryCopyRegionCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_command_list_append_memory_copy_region_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendMemoryCopyFromContext"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_list_append_memory_copy_from_context_params_t { + pub phCommandList: *mut ze_command_list_handle_t, + pub pdstptr: *mut *mut ::std::os::raw::c_void, + pub phContextSrc: *mut ze_context_handle_t, + pub psrcptr: *mut *const ::std::os::raw::c_void, + pub psize: *mut usize, + pub phSignalEvent: *mut ze_event_handle_t, + pub pnumWaitEvents: *mut u32, + pub pphWaitEvents: *mut *mut ze_event_handle_t, +} +#[test] +fn bindgen_test_layout__ze_command_list_append_memory_copy_from_context_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_list_append_memory_copy_from_context_params_t>(), + 64usize, + concat!( + "Size of: ", + stringify!(_ze_command_list_append_memory_copy_from_context_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_list_append_memory_copy_from_context_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_command_list_append_memory_copy_from_context_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_copy_from_context_params_t>())) + .phCommandList as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_copy_from_context_params_t), + "::", + stringify!(phCommandList) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_copy_from_context_params_t>())) + .pdstptr as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_copy_from_context_params_t), + "::", + stringify!(pdstptr) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_copy_from_context_params_t>())) + .phContextSrc as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_copy_from_context_params_t), + "::", + stringify!(phContextSrc) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_copy_from_context_params_t>())) + .psrcptr as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_copy_from_context_params_t), + "::", + stringify!(psrcptr) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_copy_from_context_params_t>())) + .psize as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_copy_from_context_params_t), + "::", + stringify!(psize) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_copy_from_context_params_t>())) + .phSignalEvent as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_copy_from_context_params_t), + "::", + stringify!(phSignalEvent) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_copy_from_context_params_t>())) + .pnumWaitEvents as *const _ as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_copy_from_context_params_t), + "::", + stringify!(pnumWaitEvents) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_copy_from_context_params_t>())) + .pphWaitEvents as *const _ as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_copy_from_context_params_t), + "::", + stringify!(pphWaitEvents) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendMemoryCopyFromContext"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_command_list_append_memory_copy_from_context_params_t = + _ze_command_list_append_memory_copy_from_context_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeCommandListAppendMemoryCopyFromContext"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnCommandListAppendMemoryCopyFromContextCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_command_list_append_memory_copy_from_context_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendImageCopy"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_list_append_image_copy_params_t { + pub phCommandList: *mut ze_command_list_handle_t, + pub phDstImage: *mut ze_image_handle_t, + pub phSrcImage: *mut ze_image_handle_t, + pub phSignalEvent: *mut ze_event_handle_t, + pub pnumWaitEvents: *mut u32, + pub pphWaitEvents: *mut *mut ze_event_handle_t, +} +#[test] +fn bindgen_test_layout__ze_command_list_append_image_copy_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_list_append_image_copy_params_t>(), + 48usize, + concat!( + "Size of: ", + stringify!(_ze_command_list_append_image_copy_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_list_append_image_copy_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_command_list_append_image_copy_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_image_copy_params_t>())).phCommandList + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_image_copy_params_t), + "::", + stringify!(phCommandList) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_image_copy_params_t>())).phDstImage + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_image_copy_params_t), + "::", + stringify!(phDstImage) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_image_copy_params_t>())).phSrcImage + as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_image_copy_params_t), + "::", + stringify!(phSrcImage) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_image_copy_params_t>())).phSignalEvent + as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_image_copy_params_t), + "::", + stringify!(phSignalEvent) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_image_copy_params_t>())).pnumWaitEvents + as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_image_copy_params_t), + "::", + stringify!(pnumWaitEvents) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_image_copy_params_t>())).pphWaitEvents + as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_image_copy_params_t), + "::", + stringify!(pphWaitEvents) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendImageCopy"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_command_list_append_image_copy_params_t = _ze_command_list_append_image_copy_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeCommandListAppendImageCopy"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnCommandListAppendImageCopyCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_command_list_append_image_copy_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendImageCopyRegion"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_list_append_image_copy_region_params_t { + pub phCommandList: *mut ze_command_list_handle_t, + pub phDstImage: *mut ze_image_handle_t, + pub phSrcImage: *mut ze_image_handle_t, + pub ppDstRegion: *mut *const ze_image_region_t, + pub ppSrcRegion: *mut *const ze_image_region_t, + pub phSignalEvent: *mut ze_event_handle_t, + pub pnumWaitEvents: *mut u32, + pub pphWaitEvents: *mut *mut ze_event_handle_t, +} +#[test] +fn bindgen_test_layout__ze_command_list_append_image_copy_region_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_list_append_image_copy_region_params_t>(), + 64usize, + concat!( + "Size of: ", + stringify!(_ze_command_list_append_image_copy_region_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_list_append_image_copy_region_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_command_list_append_image_copy_region_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_image_copy_region_params_t>())) + .phCommandList as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_image_copy_region_params_t), + "::", + stringify!(phCommandList) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_image_copy_region_params_t>())) + .phDstImage as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_image_copy_region_params_t), + "::", + stringify!(phDstImage) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_image_copy_region_params_t>())) + .phSrcImage as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_image_copy_region_params_t), + "::", + stringify!(phSrcImage) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_image_copy_region_params_t>())) + .ppDstRegion as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_image_copy_region_params_t), + "::", + stringify!(ppDstRegion) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_image_copy_region_params_t>())) + .ppSrcRegion as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_image_copy_region_params_t), + "::", + stringify!(ppSrcRegion) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_image_copy_region_params_t>())) + .phSignalEvent as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_image_copy_region_params_t), + "::", + stringify!(phSignalEvent) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_image_copy_region_params_t>())) + .pnumWaitEvents as *const _ as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_image_copy_region_params_t), + "::", + stringify!(pnumWaitEvents) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_image_copy_region_params_t>())) + .pphWaitEvents as *const _ as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_image_copy_region_params_t), + "::", + stringify!(pphWaitEvents) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendImageCopyRegion"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_command_list_append_image_copy_region_params_t = + _ze_command_list_append_image_copy_region_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeCommandListAppendImageCopyRegion"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnCommandListAppendImageCopyRegionCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_command_list_append_image_copy_region_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendImageCopyToMemory"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_list_append_image_copy_to_memory_params_t { + pub phCommandList: *mut ze_command_list_handle_t, + pub pdstptr: *mut *mut ::std::os::raw::c_void, + pub phSrcImage: *mut ze_image_handle_t, + pub ppSrcRegion: *mut *const ze_image_region_t, + pub phSignalEvent: *mut ze_event_handle_t, + pub pnumWaitEvents: *mut u32, + pub pphWaitEvents: *mut *mut ze_event_handle_t, +} +#[test] +fn bindgen_test_layout__ze_command_list_append_image_copy_to_memory_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_list_append_image_copy_to_memory_params_t>(), + 56usize, + concat!( + "Size of: ", + stringify!(_ze_command_list_append_image_copy_to_memory_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_list_append_image_copy_to_memory_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_command_list_append_image_copy_to_memory_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_image_copy_to_memory_params_t>())) + .phCommandList as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_image_copy_to_memory_params_t), + "::", + stringify!(phCommandList) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_image_copy_to_memory_params_t>())) + .pdstptr as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_image_copy_to_memory_params_t), + "::", + stringify!(pdstptr) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_image_copy_to_memory_params_t>())) + .phSrcImage as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_image_copy_to_memory_params_t), + "::", + stringify!(phSrcImage) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_image_copy_to_memory_params_t>())) + .ppSrcRegion as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_image_copy_to_memory_params_t), + "::", + stringify!(ppSrcRegion) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_image_copy_to_memory_params_t>())) + .phSignalEvent as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_image_copy_to_memory_params_t), + "::", + stringify!(phSignalEvent) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_image_copy_to_memory_params_t>())) + .pnumWaitEvents as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_image_copy_to_memory_params_t), + "::", + stringify!(pnumWaitEvents) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_image_copy_to_memory_params_t>())) + .pphWaitEvents as *const _ as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_image_copy_to_memory_params_t), + "::", + stringify!(pphWaitEvents) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendImageCopyToMemory"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_command_list_append_image_copy_to_memory_params_t = + _ze_command_list_append_image_copy_to_memory_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeCommandListAppendImageCopyToMemory"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnCommandListAppendImageCopyToMemoryCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_command_list_append_image_copy_to_memory_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendImageCopyFromMemory"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_list_append_image_copy_from_memory_params_t { + pub phCommandList: *mut ze_command_list_handle_t, + pub phDstImage: *mut ze_image_handle_t, + pub psrcptr: *mut *const ::std::os::raw::c_void, + pub ppDstRegion: *mut *const ze_image_region_t, + pub phSignalEvent: *mut ze_event_handle_t, + pub pnumWaitEvents: *mut u32, + pub pphWaitEvents: *mut *mut ze_event_handle_t, +} +#[test] +fn bindgen_test_layout__ze_command_list_append_image_copy_from_memory_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_list_append_image_copy_from_memory_params_t>(), + 56usize, + concat!( + "Size of: ", + stringify!(_ze_command_list_append_image_copy_from_memory_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_list_append_image_copy_from_memory_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_command_list_append_image_copy_from_memory_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_image_copy_from_memory_params_t>())) + .phCommandList as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_image_copy_from_memory_params_t), + "::", + stringify!(phCommandList) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_image_copy_from_memory_params_t>())) + .phDstImage as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_image_copy_from_memory_params_t), + "::", + stringify!(phDstImage) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_image_copy_from_memory_params_t>())) + .psrcptr as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_image_copy_from_memory_params_t), + "::", + stringify!(psrcptr) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_image_copy_from_memory_params_t>())) + .ppDstRegion as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_image_copy_from_memory_params_t), + "::", + stringify!(ppDstRegion) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_image_copy_from_memory_params_t>())) + .phSignalEvent as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_image_copy_from_memory_params_t), + "::", + stringify!(phSignalEvent) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_image_copy_from_memory_params_t>())) + .pnumWaitEvents as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_image_copy_from_memory_params_t), + "::", + stringify!(pnumWaitEvents) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_image_copy_from_memory_params_t>())) + .pphWaitEvents as *const _ as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_image_copy_from_memory_params_t), + "::", + stringify!(pphWaitEvents) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendImageCopyFromMemory"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_command_list_append_image_copy_from_memory_params_t = + _ze_command_list_append_image_copy_from_memory_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeCommandListAppendImageCopyFromMemory"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnCommandListAppendImageCopyFromMemoryCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_command_list_append_image_copy_from_memory_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendMemoryPrefetch"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_list_append_memory_prefetch_params_t { + pub phCommandList: *mut ze_command_list_handle_t, + pub pptr: *mut *const ::std::os::raw::c_void, + pub psize: *mut usize, +} +#[test] +fn bindgen_test_layout__ze_command_list_append_memory_prefetch_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_list_append_memory_prefetch_params_t>(), + 24usize, + concat!( + "Size of: ", + stringify!(_ze_command_list_append_memory_prefetch_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_list_append_memory_prefetch_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_command_list_append_memory_prefetch_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_prefetch_params_t>())) + .phCommandList as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_prefetch_params_t), + "::", + stringify!(phCommandList) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_prefetch_params_t>())).pptr + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_prefetch_params_t), + "::", + stringify!(pptr) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_memory_prefetch_params_t>())).psize + as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_memory_prefetch_params_t), + "::", + stringify!(psize) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendMemoryPrefetch"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_command_list_append_memory_prefetch_params_t = + _ze_command_list_append_memory_prefetch_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeCommandListAppendMemoryPrefetch"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnCommandListAppendMemoryPrefetchCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_command_list_append_memory_prefetch_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendMemAdvise"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_list_append_mem_advise_params_t { + pub phCommandList: *mut ze_command_list_handle_t, + pub phDevice: *mut ze_device_handle_t, + pub pptr: *mut *const ::std::os::raw::c_void, + pub psize: *mut usize, + pub padvice: *mut ze_memory_advice_t, +} +#[test] +fn bindgen_test_layout__ze_command_list_append_mem_advise_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_list_append_mem_advise_params_t>(), + 40usize, + concat!( + "Size of: ", + stringify!(_ze_command_list_append_mem_advise_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_list_append_mem_advise_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_command_list_append_mem_advise_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_mem_advise_params_t>())).phCommandList + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_mem_advise_params_t), + "::", + stringify!(phCommandList) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_mem_advise_params_t>())).phDevice + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_mem_advise_params_t), + "::", + stringify!(phDevice) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_mem_advise_params_t>())).pptr as *const _ + as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_mem_advise_params_t), + "::", + stringify!(pptr) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_mem_advise_params_t>())).psize + as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_mem_advise_params_t), + "::", + stringify!(psize) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_mem_advise_params_t>())).padvice + as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_mem_advise_params_t), + "::", + stringify!(padvice) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendMemAdvise"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_command_list_append_mem_advise_params_t = _ze_command_list_append_mem_advise_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeCommandListAppendMemAdvise"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnCommandListAppendMemAdviseCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_command_list_append_mem_advise_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendSignalEvent"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_list_append_signal_event_params_t { + pub phCommandList: *mut ze_command_list_handle_t, + pub phEvent: *mut ze_event_handle_t, +} +#[test] +fn bindgen_test_layout__ze_command_list_append_signal_event_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_list_append_signal_event_params_t>(), + 16usize, + concat!( + "Size of: ", + stringify!(_ze_command_list_append_signal_event_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_list_append_signal_event_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_command_list_append_signal_event_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_signal_event_params_t>())).phCommandList + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_signal_event_params_t), + "::", + stringify!(phCommandList) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_signal_event_params_t>())).phEvent + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_signal_event_params_t), + "::", + stringify!(phEvent) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendSignalEvent"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_command_list_append_signal_event_params_t = + _ze_command_list_append_signal_event_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeCommandListAppendSignalEvent"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnCommandListAppendSignalEventCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_command_list_append_signal_event_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendWaitOnEvents"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_list_append_wait_on_events_params_t { + pub phCommandList: *mut ze_command_list_handle_t, + pub pnumEvents: *mut u32, + pub pphEvents: *mut *mut ze_event_handle_t, +} +#[test] +fn bindgen_test_layout__ze_command_list_append_wait_on_events_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_list_append_wait_on_events_params_t>(), + 24usize, + concat!( + "Size of: ", + stringify!(_ze_command_list_append_wait_on_events_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_list_append_wait_on_events_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_command_list_append_wait_on_events_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_wait_on_events_params_t>())) + .phCommandList as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_wait_on_events_params_t), + "::", + stringify!(phCommandList) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_wait_on_events_params_t>())).pnumEvents + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_wait_on_events_params_t), + "::", + stringify!(pnumEvents) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_wait_on_events_params_t>())).pphEvents + as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_wait_on_events_params_t), + "::", + stringify!(pphEvents) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendWaitOnEvents"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_command_list_append_wait_on_events_params_t = + _ze_command_list_append_wait_on_events_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeCommandListAppendWaitOnEvents"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnCommandListAppendWaitOnEventsCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_command_list_append_wait_on_events_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendEventReset"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_list_append_event_reset_params_t { + pub phCommandList: *mut ze_command_list_handle_t, + pub phEvent: *mut ze_event_handle_t, +} +#[test] +fn bindgen_test_layout__ze_command_list_append_event_reset_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_list_append_event_reset_params_t>(), + 16usize, + concat!( + "Size of: ", + stringify!(_ze_command_list_append_event_reset_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_list_append_event_reset_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_command_list_append_event_reset_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_event_reset_params_t>())).phCommandList + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_event_reset_params_t), + "::", + stringify!(phCommandList) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_event_reset_params_t>())).phEvent + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_event_reset_params_t), + "::", + stringify!(phEvent) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendEventReset"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_command_list_append_event_reset_params_t = _ze_command_list_append_event_reset_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeCommandListAppendEventReset"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnCommandListAppendEventResetCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_command_list_append_event_reset_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendQueryKernelTimestamps"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_list_append_query_kernel_timestamps_params_t { + pub phCommandList: *mut ze_command_list_handle_t, + pub pnumEvents: *mut u32, + pub pphEvents: *mut *mut ze_event_handle_t, + pub pdstptr: *mut *mut ::std::os::raw::c_void, + pub ppOffsets: *mut *const usize, + pub phSignalEvent: *mut ze_event_handle_t, + pub pnumWaitEvents: *mut u32, + pub pphWaitEvents: *mut *mut ze_event_handle_t, +} +#[test] +fn bindgen_test_layout__ze_command_list_append_query_kernel_timestamps_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_list_append_query_kernel_timestamps_params_t>(), + 64usize, + concat!( + "Size of: ", + stringify!(_ze_command_list_append_query_kernel_timestamps_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_list_append_query_kernel_timestamps_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_command_list_append_query_kernel_timestamps_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_query_kernel_timestamps_params_t>())) + .phCommandList as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_query_kernel_timestamps_params_t), + "::", + stringify!(phCommandList) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_query_kernel_timestamps_params_t>())) + .pnumEvents as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_query_kernel_timestamps_params_t), + "::", + stringify!(pnumEvents) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_query_kernel_timestamps_params_t>())) + .pphEvents as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_query_kernel_timestamps_params_t), + "::", + stringify!(pphEvents) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_query_kernel_timestamps_params_t>())) + .pdstptr as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_query_kernel_timestamps_params_t), + "::", + stringify!(pdstptr) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_query_kernel_timestamps_params_t>())) + .ppOffsets as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_query_kernel_timestamps_params_t), + "::", + stringify!(ppOffsets) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_query_kernel_timestamps_params_t>())) + .phSignalEvent as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_query_kernel_timestamps_params_t), + "::", + stringify!(phSignalEvent) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_query_kernel_timestamps_params_t>())) + .pnumWaitEvents as *const _ as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_query_kernel_timestamps_params_t), + "::", + stringify!(pnumWaitEvents) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_query_kernel_timestamps_params_t>())) + .pphWaitEvents as *const _ as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_query_kernel_timestamps_params_t), + "::", + stringify!(pphWaitEvents) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendQueryKernelTimestamps"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_command_list_append_query_kernel_timestamps_params_t = + _ze_command_list_append_query_kernel_timestamps_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeCommandListAppendQueryKernelTimestamps"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnCommandListAppendQueryKernelTimestampsCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_command_list_append_query_kernel_timestamps_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendLaunchKernel"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_list_append_launch_kernel_params_t { + pub phCommandList: *mut ze_command_list_handle_t, + pub phKernel: *mut ze_kernel_handle_t, + pub ppLaunchFuncArgs: *mut *const ze_group_count_t, + pub phSignalEvent: *mut ze_event_handle_t, + pub pnumWaitEvents: *mut u32, + pub pphWaitEvents: *mut *mut ze_event_handle_t, +} +#[test] +fn bindgen_test_layout__ze_command_list_append_launch_kernel_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_list_append_launch_kernel_params_t>(), + 48usize, + concat!( + "Size of: ", + stringify!(_ze_command_list_append_launch_kernel_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_list_append_launch_kernel_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_command_list_append_launch_kernel_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_launch_kernel_params_t>())).phCommandList + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_launch_kernel_params_t), + "::", + stringify!(phCommandList) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_launch_kernel_params_t>())).phKernel + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_launch_kernel_params_t), + "::", + stringify!(phKernel) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_launch_kernel_params_t>())) + .ppLaunchFuncArgs as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_launch_kernel_params_t), + "::", + stringify!(ppLaunchFuncArgs) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_launch_kernel_params_t>())).phSignalEvent + as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_launch_kernel_params_t), + "::", + stringify!(phSignalEvent) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_launch_kernel_params_t>())) + .pnumWaitEvents as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_launch_kernel_params_t), + "::", + stringify!(pnumWaitEvents) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_launch_kernel_params_t>())).pphWaitEvents + as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_launch_kernel_params_t), + "::", + stringify!(pphWaitEvents) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendLaunchKernel"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_command_list_append_launch_kernel_params_t = + _ze_command_list_append_launch_kernel_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeCommandListAppendLaunchKernel"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnCommandListAppendLaunchKernelCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_command_list_append_launch_kernel_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendLaunchCooperativeKernel"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_list_append_launch_cooperative_kernel_params_t { + pub phCommandList: *mut ze_command_list_handle_t, + pub phKernel: *mut ze_kernel_handle_t, + pub ppLaunchFuncArgs: *mut *const ze_group_count_t, + pub phSignalEvent: *mut ze_event_handle_t, + pub pnumWaitEvents: *mut u32, + pub pphWaitEvents: *mut *mut ze_event_handle_t, +} +#[test] +fn bindgen_test_layout__ze_command_list_append_launch_cooperative_kernel_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_list_append_launch_cooperative_kernel_params_t>(), + 48usize, + concat!( + "Size of: ", + stringify!(_ze_command_list_append_launch_cooperative_kernel_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_list_append_launch_cooperative_kernel_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_command_list_append_launch_cooperative_kernel_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_launch_cooperative_kernel_params_t>())) + .phCommandList as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_launch_cooperative_kernel_params_t), + "::", + stringify!(phCommandList) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_launch_cooperative_kernel_params_t>())) + .phKernel as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_launch_cooperative_kernel_params_t), + "::", + stringify!(phKernel) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_launch_cooperative_kernel_params_t>())) + .ppLaunchFuncArgs as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_launch_cooperative_kernel_params_t), + "::", + stringify!(ppLaunchFuncArgs) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_launch_cooperative_kernel_params_t>())) + .phSignalEvent as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_launch_cooperative_kernel_params_t), + "::", + stringify!(phSignalEvent) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_launch_cooperative_kernel_params_t>())) + .pnumWaitEvents as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_launch_cooperative_kernel_params_t), + "::", + stringify!(pnumWaitEvents) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_launch_cooperative_kernel_params_t>())) + .pphWaitEvents as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_launch_cooperative_kernel_params_t), + "::", + stringify!(pphWaitEvents) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendLaunchCooperativeKernel"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_command_list_append_launch_cooperative_kernel_params_t = + _ze_command_list_append_launch_cooperative_kernel_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeCommandListAppendLaunchCooperativeKernel"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnCommandListAppendLaunchCooperativeKernelCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_command_list_append_launch_cooperative_kernel_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendLaunchKernelIndirect"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_list_append_launch_kernel_indirect_params_t { + pub phCommandList: *mut ze_command_list_handle_t, + pub phKernel: *mut ze_kernel_handle_t, + pub ppLaunchArgumentsBuffer: *mut *const ze_group_count_t, + pub phSignalEvent: *mut ze_event_handle_t, + pub pnumWaitEvents: *mut u32, + pub pphWaitEvents: *mut *mut ze_event_handle_t, +} +#[test] +fn bindgen_test_layout__ze_command_list_append_launch_kernel_indirect_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_list_append_launch_kernel_indirect_params_t>(), + 48usize, + concat!( + "Size of: ", + stringify!(_ze_command_list_append_launch_kernel_indirect_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_list_append_launch_kernel_indirect_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_command_list_append_launch_kernel_indirect_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_launch_kernel_indirect_params_t>())) + .phCommandList as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_launch_kernel_indirect_params_t), + "::", + stringify!(phCommandList) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_launch_kernel_indirect_params_t>())) + .phKernel as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_launch_kernel_indirect_params_t), + "::", + stringify!(phKernel) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_launch_kernel_indirect_params_t>())) + .ppLaunchArgumentsBuffer as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_launch_kernel_indirect_params_t), + "::", + stringify!(ppLaunchArgumentsBuffer) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_launch_kernel_indirect_params_t>())) + .phSignalEvent as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_launch_kernel_indirect_params_t), + "::", + stringify!(phSignalEvent) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_launch_kernel_indirect_params_t>())) + .pnumWaitEvents as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_launch_kernel_indirect_params_t), + "::", + stringify!(pnumWaitEvents) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_append_launch_kernel_indirect_params_t>())) + .pphWaitEvents as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_launch_kernel_indirect_params_t), + "::", + stringify!(pphWaitEvents) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendLaunchKernelIndirect"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_command_list_append_launch_kernel_indirect_params_t = + _ze_command_list_append_launch_kernel_indirect_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeCommandListAppendLaunchKernelIndirect"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnCommandListAppendLaunchKernelIndirectCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_command_list_append_launch_kernel_indirect_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendLaunchMultipleKernelsIndirect"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_list_append_launch_multiple_kernels_indirect_params_t { + pub phCommandList: *mut ze_command_list_handle_t, + pub pnumKernels: *mut u32, + pub pphKernels: *mut *mut ze_kernel_handle_t, + pub ppCountBuffer: *mut *const u32, + pub ppLaunchArgumentsBuffer: *mut *const ze_group_count_t, + pub phSignalEvent: *mut ze_event_handle_t, + pub pnumWaitEvents: *mut u32, + pub pphWaitEvents: *mut *mut ze_event_handle_t, +} +#[test] +fn bindgen_test_layout__ze_command_list_append_launch_multiple_kernels_indirect_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_list_append_launch_multiple_kernels_indirect_params_t>(), + 64usize, + concat!( + "Size of: ", + stringify!(_ze_command_list_append_launch_multiple_kernels_indirect_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_list_append_launch_multiple_kernels_indirect_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_command_list_append_launch_multiple_kernels_indirect_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::< + _ze_command_list_append_launch_multiple_kernels_indirect_params_t, + >())) + .phCommandList as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_launch_multiple_kernels_indirect_params_t), + "::", + stringify!(phCommandList) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::< + _ze_command_list_append_launch_multiple_kernels_indirect_params_t, + >())) + .pnumKernels as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_launch_multiple_kernels_indirect_params_t), + "::", + stringify!(pnumKernels) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::< + _ze_command_list_append_launch_multiple_kernels_indirect_params_t, + >())) + .pphKernels as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_launch_multiple_kernels_indirect_params_t), + "::", + stringify!(pphKernels) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::< + _ze_command_list_append_launch_multiple_kernels_indirect_params_t, + >())) + .ppCountBuffer as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_launch_multiple_kernels_indirect_params_t), + "::", + stringify!(ppCountBuffer) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::< + _ze_command_list_append_launch_multiple_kernels_indirect_params_t, + >())) + .ppLaunchArgumentsBuffer as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_launch_multiple_kernels_indirect_params_t), + "::", + stringify!(ppLaunchArgumentsBuffer) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::< + _ze_command_list_append_launch_multiple_kernels_indirect_params_t, + >())) + .phSignalEvent as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_launch_multiple_kernels_indirect_params_t), + "::", + stringify!(phSignalEvent) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::< + _ze_command_list_append_launch_multiple_kernels_indirect_params_t, + >())) + .pnumWaitEvents as *const _ as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_launch_multiple_kernels_indirect_params_t), + "::", + stringify!(pnumWaitEvents) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::< + _ze_command_list_append_launch_multiple_kernels_indirect_params_t, + >())) + .pphWaitEvents as *const _ as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_append_launch_multiple_kernels_indirect_params_t), + "::", + stringify!(pphWaitEvents) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeCommandListAppendLaunchMultipleKernelsIndirect"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_command_list_append_launch_multiple_kernels_indirect_params_t = + _ze_command_list_append_launch_multiple_kernels_indirect_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeCommandListAppendLaunchMultipleKernelsIndirect"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnCommandListAppendLaunchMultipleKernelsIndirectCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_command_list_append_launch_multiple_kernels_indirect_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Table of CommandList callback functions pointers"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_command_list_callbacks_t { + pub pfnCreateCb: ze_pfnCommandListCreateCb_t, + pub pfnCreateImmediateCb: ze_pfnCommandListCreateImmediateCb_t, + pub pfnDestroyCb: ze_pfnCommandListDestroyCb_t, + pub pfnCloseCb: ze_pfnCommandListCloseCb_t, + pub pfnResetCb: ze_pfnCommandListResetCb_t, + pub pfnAppendWriteGlobalTimestampCb: ze_pfnCommandListAppendWriteGlobalTimestampCb_t, + pub pfnAppendBarrierCb: ze_pfnCommandListAppendBarrierCb_t, + pub pfnAppendMemoryRangesBarrierCb: ze_pfnCommandListAppendMemoryRangesBarrierCb_t, + pub pfnAppendMemoryCopyCb: ze_pfnCommandListAppendMemoryCopyCb_t, + pub pfnAppendMemoryFillCb: ze_pfnCommandListAppendMemoryFillCb_t, + pub pfnAppendMemoryCopyRegionCb: ze_pfnCommandListAppendMemoryCopyRegionCb_t, + pub pfnAppendMemoryCopyFromContextCb: ze_pfnCommandListAppendMemoryCopyFromContextCb_t, + pub pfnAppendImageCopyCb: ze_pfnCommandListAppendImageCopyCb_t, + pub pfnAppendImageCopyRegionCb: ze_pfnCommandListAppendImageCopyRegionCb_t, + pub pfnAppendImageCopyToMemoryCb: ze_pfnCommandListAppendImageCopyToMemoryCb_t, + pub pfnAppendImageCopyFromMemoryCb: ze_pfnCommandListAppendImageCopyFromMemoryCb_t, + pub pfnAppendMemoryPrefetchCb: ze_pfnCommandListAppendMemoryPrefetchCb_t, + pub pfnAppendMemAdviseCb: ze_pfnCommandListAppendMemAdviseCb_t, + pub pfnAppendSignalEventCb: ze_pfnCommandListAppendSignalEventCb_t, + pub pfnAppendWaitOnEventsCb: ze_pfnCommandListAppendWaitOnEventsCb_t, + pub pfnAppendEventResetCb: ze_pfnCommandListAppendEventResetCb_t, + pub pfnAppendQueryKernelTimestampsCb: ze_pfnCommandListAppendQueryKernelTimestampsCb_t, + pub pfnAppendLaunchKernelCb: ze_pfnCommandListAppendLaunchKernelCb_t, + pub pfnAppendLaunchCooperativeKernelCb: ze_pfnCommandListAppendLaunchCooperativeKernelCb_t, + pub pfnAppendLaunchKernelIndirectCb: ze_pfnCommandListAppendLaunchKernelIndirectCb_t, + pub pfnAppendLaunchMultipleKernelsIndirectCb: + ze_pfnCommandListAppendLaunchMultipleKernelsIndirectCb_t, +} +#[test] +fn bindgen_test_layout__ze_command_list_callbacks_t() { + assert_eq!( + ::std::mem::size_of::<_ze_command_list_callbacks_t>(), + 208usize, + concat!("Size of: ", stringify!(_ze_command_list_callbacks_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_command_list_callbacks_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_command_list_callbacks_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_callbacks_t>())).pfnCreateCb as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_callbacks_t), + "::", + stringify!(pfnCreateCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_callbacks_t>())).pfnCreateImmediateCb + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_callbacks_t), + "::", + stringify!(pfnCreateImmediateCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_callbacks_t>())).pfnDestroyCb as *const _ + as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_callbacks_t), + "::", + stringify!(pfnDestroyCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_callbacks_t>())).pfnCloseCb as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_callbacks_t), + "::", + stringify!(pfnCloseCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_callbacks_t>())).pfnResetCb as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_callbacks_t), + "::", + stringify!(pfnResetCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_callbacks_t>())).pfnAppendWriteGlobalTimestampCb + as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_callbacks_t), + "::", + stringify!(pfnAppendWriteGlobalTimestampCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_callbacks_t>())).pfnAppendBarrierCb as *const _ + as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_callbacks_t), + "::", + stringify!(pfnAppendBarrierCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_callbacks_t>())).pfnAppendMemoryRangesBarrierCb + as *const _ as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_callbacks_t), + "::", + stringify!(pfnAppendMemoryRangesBarrierCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_callbacks_t>())).pfnAppendMemoryCopyCb + as *const _ as usize + }, + 64usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_callbacks_t), + "::", + stringify!(pfnAppendMemoryCopyCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_callbacks_t>())).pfnAppendMemoryFillCb + as *const _ as usize + }, + 72usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_callbacks_t), + "::", + stringify!(pfnAppendMemoryFillCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_callbacks_t>())).pfnAppendMemoryCopyRegionCb + as *const _ as usize + }, + 80usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_callbacks_t), + "::", + stringify!(pfnAppendMemoryCopyRegionCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_callbacks_t>())) + .pfnAppendMemoryCopyFromContextCb as *const _ as usize + }, + 88usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_callbacks_t), + "::", + stringify!(pfnAppendMemoryCopyFromContextCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_callbacks_t>())).pfnAppendImageCopyCb + as *const _ as usize + }, + 96usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_callbacks_t), + "::", + stringify!(pfnAppendImageCopyCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_callbacks_t>())).pfnAppendImageCopyRegionCb + as *const _ as usize + }, + 104usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_callbacks_t), + "::", + stringify!(pfnAppendImageCopyRegionCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_callbacks_t>())).pfnAppendImageCopyToMemoryCb + as *const _ as usize + }, + 112usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_callbacks_t), + "::", + stringify!(pfnAppendImageCopyToMemoryCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_callbacks_t>())).pfnAppendImageCopyFromMemoryCb + as *const _ as usize + }, + 120usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_callbacks_t), + "::", + stringify!(pfnAppendImageCopyFromMemoryCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_callbacks_t>())).pfnAppendMemoryPrefetchCb + as *const _ as usize + }, + 128usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_callbacks_t), + "::", + stringify!(pfnAppendMemoryPrefetchCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_callbacks_t>())).pfnAppendMemAdviseCb + as *const _ as usize + }, + 136usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_callbacks_t), + "::", + stringify!(pfnAppendMemAdviseCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_callbacks_t>())).pfnAppendSignalEventCb + as *const _ as usize + }, + 144usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_callbacks_t), + "::", + stringify!(pfnAppendSignalEventCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_callbacks_t>())).pfnAppendWaitOnEventsCb + as *const _ as usize + }, + 152usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_callbacks_t), + "::", + stringify!(pfnAppendWaitOnEventsCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_callbacks_t>())).pfnAppendEventResetCb + as *const _ as usize + }, + 160usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_callbacks_t), + "::", + stringify!(pfnAppendEventResetCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_callbacks_t>())) + .pfnAppendQueryKernelTimestampsCb as *const _ as usize + }, + 168usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_callbacks_t), + "::", + stringify!(pfnAppendQueryKernelTimestampsCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_callbacks_t>())).pfnAppendLaunchKernelCb + as *const _ as usize + }, + 176usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_callbacks_t), + "::", + stringify!(pfnAppendLaunchKernelCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_callbacks_t>())) + .pfnAppendLaunchCooperativeKernelCb as *const _ as usize + }, + 184usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_callbacks_t), + "::", + stringify!(pfnAppendLaunchCooperativeKernelCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_callbacks_t>())).pfnAppendLaunchKernelIndirectCb + as *const _ as usize + }, + 192usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_callbacks_t), + "::", + stringify!(pfnAppendLaunchKernelIndirectCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_command_list_callbacks_t>())) + .pfnAppendLaunchMultipleKernelsIndirectCb as *const _ as usize + }, + 200usize, + concat!( + "Offset of field: ", + stringify!(_ze_command_list_callbacks_t), + "::", + stringify!(pfnAppendLaunchMultipleKernelsIndirectCb) + ) + ); +} +#[doc = ""] +#[doc = " @brief Table of CommandList callback functions pointers"] +pub type ze_command_list_callbacks_t = _ze_command_list_callbacks_t; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeFenceCreate"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_fence_create_params_t { + pub phCommandQueue: *mut ze_command_queue_handle_t, + pub pdesc: *mut *const ze_fence_desc_t, + pub pphFence: *mut *mut ze_fence_handle_t, +} +#[test] +fn bindgen_test_layout__ze_fence_create_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_fence_create_params_t>(), + 24usize, + concat!("Size of: ", stringify!(_ze_fence_create_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_fence_create_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_fence_create_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_fence_create_params_t>())).phCommandQueue as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_fence_create_params_t), + "::", + stringify!(phCommandQueue) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_fence_create_params_t>())).pdesc as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_fence_create_params_t), + "::", + stringify!(pdesc) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_fence_create_params_t>())).pphFence as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_fence_create_params_t), + "::", + stringify!(pphFence) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeFenceCreate"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_fence_create_params_t = _ze_fence_create_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeFenceCreate"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnFenceCreateCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_fence_create_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeFenceDestroy"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_fence_destroy_params_t { + pub phFence: *mut ze_fence_handle_t, +} +#[test] +fn bindgen_test_layout__ze_fence_destroy_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_fence_destroy_params_t>(), + 8usize, + concat!("Size of: ", stringify!(_ze_fence_destroy_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_fence_destroy_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_fence_destroy_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_fence_destroy_params_t>())).phFence as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_fence_destroy_params_t), + "::", + stringify!(phFence) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeFenceDestroy"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_fence_destroy_params_t = _ze_fence_destroy_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeFenceDestroy"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnFenceDestroyCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_fence_destroy_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeFenceHostSynchronize"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_fence_host_synchronize_params_t { + pub phFence: *mut ze_fence_handle_t, + pub ptimeout: *mut u64, +} +#[test] +fn bindgen_test_layout__ze_fence_host_synchronize_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_fence_host_synchronize_params_t>(), + 16usize, + concat!("Size of: ", stringify!(_ze_fence_host_synchronize_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_fence_host_synchronize_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_fence_host_synchronize_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_fence_host_synchronize_params_t>())).phFence as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_fence_host_synchronize_params_t), + "::", + stringify!(phFence) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_fence_host_synchronize_params_t>())).ptimeout as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_fence_host_synchronize_params_t), + "::", + stringify!(ptimeout) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeFenceHostSynchronize"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_fence_host_synchronize_params_t = _ze_fence_host_synchronize_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeFenceHostSynchronize"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnFenceHostSynchronizeCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_fence_host_synchronize_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeFenceQueryStatus"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_fence_query_status_params_t { + pub phFence: *mut ze_fence_handle_t, +} +#[test] +fn bindgen_test_layout__ze_fence_query_status_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_fence_query_status_params_t>(), + 8usize, + concat!("Size of: ", stringify!(_ze_fence_query_status_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_fence_query_status_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_fence_query_status_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_fence_query_status_params_t>())).phFence as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_fence_query_status_params_t), + "::", + stringify!(phFence) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeFenceQueryStatus"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_fence_query_status_params_t = _ze_fence_query_status_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeFenceQueryStatus"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnFenceQueryStatusCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_fence_query_status_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeFenceReset"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_fence_reset_params_t { + pub phFence: *mut ze_fence_handle_t, +} +#[test] +fn bindgen_test_layout__ze_fence_reset_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_fence_reset_params_t>(), + 8usize, + concat!("Size of: ", stringify!(_ze_fence_reset_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_fence_reset_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_fence_reset_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_fence_reset_params_t>())).phFence as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_fence_reset_params_t), + "::", + stringify!(phFence) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeFenceReset"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_fence_reset_params_t = _ze_fence_reset_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeFenceReset"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnFenceResetCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_fence_reset_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Table of Fence callback functions pointers"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_fence_callbacks_t { + pub pfnCreateCb: ze_pfnFenceCreateCb_t, + pub pfnDestroyCb: ze_pfnFenceDestroyCb_t, + pub pfnHostSynchronizeCb: ze_pfnFenceHostSynchronizeCb_t, + pub pfnQueryStatusCb: ze_pfnFenceQueryStatusCb_t, + pub pfnResetCb: ze_pfnFenceResetCb_t, +} +#[test] +fn bindgen_test_layout__ze_fence_callbacks_t() { + assert_eq!( + ::std::mem::size_of::<_ze_fence_callbacks_t>(), + 40usize, + concat!("Size of: ", stringify!(_ze_fence_callbacks_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_fence_callbacks_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_fence_callbacks_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_fence_callbacks_t>())).pfnCreateCb as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_fence_callbacks_t), + "::", + stringify!(pfnCreateCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_fence_callbacks_t>())).pfnDestroyCb as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_fence_callbacks_t), + "::", + stringify!(pfnDestroyCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_fence_callbacks_t>())).pfnHostSynchronizeCb as *const _ + as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_fence_callbacks_t), + "::", + stringify!(pfnHostSynchronizeCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_fence_callbacks_t>())).pfnQueryStatusCb as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_fence_callbacks_t), + "::", + stringify!(pfnQueryStatusCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_fence_callbacks_t>())).pfnResetCb as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_fence_callbacks_t), + "::", + stringify!(pfnResetCb) + ) + ); +} +#[doc = ""] +#[doc = " @brief Table of Fence callback functions pointers"] +pub type ze_fence_callbacks_t = _ze_fence_callbacks_t; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeEventPoolCreate"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_event_pool_create_params_t { + pub phContext: *mut ze_context_handle_t, + pub pdesc: *mut *const ze_event_pool_desc_t, + pub pnumDevices: *mut u32, + pub pphDevices: *mut *mut ze_device_handle_t, + pub pphEventPool: *mut *mut ze_event_pool_handle_t, +} +#[test] +fn bindgen_test_layout__ze_event_pool_create_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_event_pool_create_params_t>(), + 40usize, + concat!("Size of: ", stringify!(_ze_event_pool_create_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_event_pool_create_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_event_pool_create_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_pool_create_params_t>())).phContext as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_pool_create_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_pool_create_params_t>())).pdesc as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_pool_create_params_t), + "::", + stringify!(pdesc) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_pool_create_params_t>())).pnumDevices as *const _ + as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_pool_create_params_t), + "::", + stringify!(pnumDevices) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_pool_create_params_t>())).pphDevices as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_pool_create_params_t), + "::", + stringify!(pphDevices) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_pool_create_params_t>())).pphEventPool as *const _ + as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_pool_create_params_t), + "::", + stringify!(pphEventPool) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeEventPoolCreate"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_event_pool_create_params_t = _ze_event_pool_create_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeEventPoolCreate"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnEventPoolCreateCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_event_pool_create_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeEventPoolDestroy"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_event_pool_destroy_params_t { + pub phEventPool: *mut ze_event_pool_handle_t, +} +#[test] +fn bindgen_test_layout__ze_event_pool_destroy_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_event_pool_destroy_params_t>(), + 8usize, + concat!("Size of: ", stringify!(_ze_event_pool_destroy_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_event_pool_destroy_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_event_pool_destroy_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_pool_destroy_params_t>())).phEventPool as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_pool_destroy_params_t), + "::", + stringify!(phEventPool) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeEventPoolDestroy"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_event_pool_destroy_params_t = _ze_event_pool_destroy_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeEventPoolDestroy"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnEventPoolDestroyCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_event_pool_destroy_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeEventPoolGetIpcHandle"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_event_pool_get_ipc_handle_params_t { + pub phEventPool: *mut ze_event_pool_handle_t, + pub pphIpc: *mut *mut ze_ipc_event_pool_handle_t, +} +#[test] +fn bindgen_test_layout__ze_event_pool_get_ipc_handle_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_event_pool_get_ipc_handle_params_t>(), + 16usize, + concat!( + "Size of: ", + stringify!(_ze_event_pool_get_ipc_handle_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_event_pool_get_ipc_handle_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_event_pool_get_ipc_handle_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_pool_get_ipc_handle_params_t>())).phEventPool + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_pool_get_ipc_handle_params_t), + "::", + stringify!(phEventPool) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_pool_get_ipc_handle_params_t>())).pphIpc as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_pool_get_ipc_handle_params_t), + "::", + stringify!(pphIpc) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeEventPoolGetIpcHandle"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_event_pool_get_ipc_handle_params_t = _ze_event_pool_get_ipc_handle_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeEventPoolGetIpcHandle"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnEventPoolGetIpcHandleCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_event_pool_get_ipc_handle_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeEventPoolOpenIpcHandle"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_event_pool_open_ipc_handle_params_t { + pub phContext: *mut ze_context_handle_t, + pub phIpc: *mut ze_ipc_event_pool_handle_t, + pub pphEventPool: *mut *mut ze_event_pool_handle_t, +} +#[test] +fn bindgen_test_layout__ze_event_pool_open_ipc_handle_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_event_pool_open_ipc_handle_params_t>(), + 24usize, + concat!( + "Size of: ", + stringify!(_ze_event_pool_open_ipc_handle_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_event_pool_open_ipc_handle_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_event_pool_open_ipc_handle_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_pool_open_ipc_handle_params_t>())).phContext + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_pool_open_ipc_handle_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_pool_open_ipc_handle_params_t>())).phIpc as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_pool_open_ipc_handle_params_t), + "::", + stringify!(phIpc) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_pool_open_ipc_handle_params_t>())).pphEventPool + as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_pool_open_ipc_handle_params_t), + "::", + stringify!(pphEventPool) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeEventPoolOpenIpcHandle"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_event_pool_open_ipc_handle_params_t = _ze_event_pool_open_ipc_handle_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeEventPoolOpenIpcHandle"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnEventPoolOpenIpcHandleCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_event_pool_open_ipc_handle_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeEventPoolCloseIpcHandle"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_event_pool_close_ipc_handle_params_t { + pub phEventPool: *mut ze_event_pool_handle_t, +} +#[test] +fn bindgen_test_layout__ze_event_pool_close_ipc_handle_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_event_pool_close_ipc_handle_params_t>(), + 8usize, + concat!( + "Size of: ", + stringify!(_ze_event_pool_close_ipc_handle_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_event_pool_close_ipc_handle_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_event_pool_close_ipc_handle_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_pool_close_ipc_handle_params_t>())).phEventPool + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_pool_close_ipc_handle_params_t), + "::", + stringify!(phEventPool) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeEventPoolCloseIpcHandle"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_event_pool_close_ipc_handle_params_t = _ze_event_pool_close_ipc_handle_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeEventPoolCloseIpcHandle"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnEventPoolCloseIpcHandleCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_event_pool_close_ipc_handle_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Table of EventPool callback functions pointers"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_event_pool_callbacks_t { + pub pfnCreateCb: ze_pfnEventPoolCreateCb_t, + pub pfnDestroyCb: ze_pfnEventPoolDestroyCb_t, + pub pfnGetIpcHandleCb: ze_pfnEventPoolGetIpcHandleCb_t, + pub pfnOpenIpcHandleCb: ze_pfnEventPoolOpenIpcHandleCb_t, + pub pfnCloseIpcHandleCb: ze_pfnEventPoolCloseIpcHandleCb_t, +} +#[test] +fn bindgen_test_layout__ze_event_pool_callbacks_t() { + assert_eq!( + ::std::mem::size_of::<_ze_event_pool_callbacks_t>(), + 40usize, + concat!("Size of: ", stringify!(_ze_event_pool_callbacks_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_event_pool_callbacks_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_event_pool_callbacks_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_pool_callbacks_t>())).pfnCreateCb as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_pool_callbacks_t), + "::", + stringify!(pfnCreateCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_pool_callbacks_t>())).pfnDestroyCb as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_pool_callbacks_t), + "::", + stringify!(pfnDestroyCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_pool_callbacks_t>())).pfnGetIpcHandleCb as *const _ + as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_pool_callbacks_t), + "::", + stringify!(pfnGetIpcHandleCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_pool_callbacks_t>())).pfnOpenIpcHandleCb as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_pool_callbacks_t), + "::", + stringify!(pfnOpenIpcHandleCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_pool_callbacks_t>())).pfnCloseIpcHandleCb as *const _ + as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_pool_callbacks_t), + "::", + stringify!(pfnCloseIpcHandleCb) + ) + ); +} +#[doc = ""] +#[doc = " @brief Table of EventPool callback functions pointers"] +pub type ze_event_pool_callbacks_t = _ze_event_pool_callbacks_t; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeEventCreate"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_event_create_params_t { + pub phEventPool: *mut ze_event_pool_handle_t, + pub pdesc: *mut *const ze_event_desc_t, + pub pphEvent: *mut *mut ze_event_handle_t, +} +#[test] +fn bindgen_test_layout__ze_event_create_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_event_create_params_t>(), + 24usize, + concat!("Size of: ", stringify!(_ze_event_create_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_event_create_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_event_create_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_create_params_t>())).phEventPool as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_create_params_t), + "::", + stringify!(phEventPool) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_event_create_params_t>())).pdesc as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_create_params_t), + "::", + stringify!(pdesc) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_create_params_t>())).pphEvent as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_create_params_t), + "::", + stringify!(pphEvent) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeEventCreate"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_event_create_params_t = _ze_event_create_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeEventCreate"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnEventCreateCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_event_create_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeEventDestroy"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_event_destroy_params_t { + pub phEvent: *mut ze_event_handle_t, +} +#[test] +fn bindgen_test_layout__ze_event_destroy_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_event_destroy_params_t>(), + 8usize, + concat!("Size of: ", stringify!(_ze_event_destroy_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_event_destroy_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_event_destroy_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_destroy_params_t>())).phEvent as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_destroy_params_t), + "::", + stringify!(phEvent) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeEventDestroy"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_event_destroy_params_t = _ze_event_destroy_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeEventDestroy"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnEventDestroyCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_event_destroy_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeEventHostSignal"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_event_host_signal_params_t { + pub phEvent: *mut ze_event_handle_t, +} +#[test] +fn bindgen_test_layout__ze_event_host_signal_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_event_host_signal_params_t>(), + 8usize, + concat!("Size of: ", stringify!(_ze_event_host_signal_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_event_host_signal_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_event_host_signal_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_host_signal_params_t>())).phEvent as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_host_signal_params_t), + "::", + stringify!(phEvent) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeEventHostSignal"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_event_host_signal_params_t = _ze_event_host_signal_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeEventHostSignal"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnEventHostSignalCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_event_host_signal_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeEventHostSynchronize"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_event_host_synchronize_params_t { + pub phEvent: *mut ze_event_handle_t, + pub ptimeout: *mut u64, +} +#[test] +fn bindgen_test_layout__ze_event_host_synchronize_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_event_host_synchronize_params_t>(), + 16usize, + concat!("Size of: ", stringify!(_ze_event_host_synchronize_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_event_host_synchronize_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_event_host_synchronize_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_host_synchronize_params_t>())).phEvent as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_host_synchronize_params_t), + "::", + stringify!(phEvent) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_host_synchronize_params_t>())).ptimeout as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_host_synchronize_params_t), + "::", + stringify!(ptimeout) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeEventHostSynchronize"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_event_host_synchronize_params_t = _ze_event_host_synchronize_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeEventHostSynchronize"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnEventHostSynchronizeCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_event_host_synchronize_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeEventQueryStatus"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_event_query_status_params_t { + pub phEvent: *mut ze_event_handle_t, +} +#[test] +fn bindgen_test_layout__ze_event_query_status_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_event_query_status_params_t>(), + 8usize, + concat!("Size of: ", stringify!(_ze_event_query_status_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_event_query_status_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_event_query_status_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_query_status_params_t>())).phEvent as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_query_status_params_t), + "::", + stringify!(phEvent) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeEventQueryStatus"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_event_query_status_params_t = _ze_event_query_status_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeEventQueryStatus"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnEventQueryStatusCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_event_query_status_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeEventHostReset"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_event_host_reset_params_t { + pub phEvent: *mut ze_event_handle_t, +} +#[test] +fn bindgen_test_layout__ze_event_host_reset_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_event_host_reset_params_t>(), + 8usize, + concat!("Size of: ", stringify!(_ze_event_host_reset_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_event_host_reset_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_event_host_reset_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_host_reset_params_t>())).phEvent as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_host_reset_params_t), + "::", + stringify!(phEvent) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeEventHostReset"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_event_host_reset_params_t = _ze_event_host_reset_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeEventHostReset"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnEventHostResetCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_event_host_reset_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeEventQueryKernelTimestamp"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_event_query_kernel_timestamp_params_t { + pub phEvent: *mut ze_event_handle_t, + pub pdstptr: *mut *mut ze_kernel_timestamp_result_t, +} +#[test] +fn bindgen_test_layout__ze_event_query_kernel_timestamp_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_event_query_kernel_timestamp_params_t>(), + 16usize, + concat!( + "Size of: ", + stringify!(_ze_event_query_kernel_timestamp_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_event_query_kernel_timestamp_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_event_query_kernel_timestamp_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_query_kernel_timestamp_params_t>())).phEvent + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_query_kernel_timestamp_params_t), + "::", + stringify!(phEvent) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_query_kernel_timestamp_params_t>())).pdstptr + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_query_kernel_timestamp_params_t), + "::", + stringify!(pdstptr) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeEventQueryKernelTimestamp"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_event_query_kernel_timestamp_params_t = _ze_event_query_kernel_timestamp_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeEventQueryKernelTimestamp"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnEventQueryKernelTimestampCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_event_query_kernel_timestamp_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Table of Event callback functions pointers"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_event_callbacks_t { + pub pfnCreateCb: ze_pfnEventCreateCb_t, + pub pfnDestroyCb: ze_pfnEventDestroyCb_t, + pub pfnHostSignalCb: ze_pfnEventHostSignalCb_t, + pub pfnHostSynchronizeCb: ze_pfnEventHostSynchronizeCb_t, + pub pfnQueryStatusCb: ze_pfnEventQueryStatusCb_t, + pub pfnHostResetCb: ze_pfnEventHostResetCb_t, + pub pfnQueryKernelTimestampCb: ze_pfnEventQueryKernelTimestampCb_t, +} +#[test] +fn bindgen_test_layout__ze_event_callbacks_t() { + assert_eq!( + ::std::mem::size_of::<_ze_event_callbacks_t>(), + 56usize, + concat!("Size of: ", stringify!(_ze_event_callbacks_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_event_callbacks_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_event_callbacks_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_callbacks_t>())).pfnCreateCb as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_callbacks_t), + "::", + stringify!(pfnCreateCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_callbacks_t>())).pfnDestroyCb as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_callbacks_t), + "::", + stringify!(pfnDestroyCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_callbacks_t>())).pfnHostSignalCb as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_callbacks_t), + "::", + stringify!(pfnHostSignalCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_callbacks_t>())).pfnHostSynchronizeCb as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_callbacks_t), + "::", + stringify!(pfnHostSynchronizeCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_callbacks_t>())).pfnQueryStatusCb as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_callbacks_t), + "::", + stringify!(pfnQueryStatusCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_callbacks_t>())).pfnHostResetCb as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_callbacks_t), + "::", + stringify!(pfnHostResetCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_event_callbacks_t>())).pfnQueryKernelTimestampCb as *const _ + as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_ze_event_callbacks_t), + "::", + stringify!(pfnQueryKernelTimestampCb) + ) + ); +} +#[doc = ""] +#[doc = " @brief Table of Event callback functions pointers"] +pub type ze_event_callbacks_t = _ze_event_callbacks_t; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeImageGetProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_image_get_properties_params_t { + pub phDevice: *mut ze_device_handle_t, + pub pdesc: *mut *const ze_image_desc_t, + pub ppImageProperties: *mut *mut ze_image_properties_t, +} +#[test] +fn bindgen_test_layout__ze_image_get_properties_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_image_get_properties_params_t>(), + 24usize, + concat!("Size of: ", stringify!(_ze_image_get_properties_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_image_get_properties_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_image_get_properties_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_image_get_properties_params_t>())).phDevice as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_image_get_properties_params_t), + "::", + stringify!(phDevice) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_image_get_properties_params_t>())).pdesc as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_image_get_properties_params_t), + "::", + stringify!(pdesc) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_image_get_properties_params_t>())).ppImageProperties + as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_image_get_properties_params_t), + "::", + stringify!(ppImageProperties) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeImageGetProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_image_get_properties_params_t = _ze_image_get_properties_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeImageGetProperties"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnImageGetPropertiesCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_image_get_properties_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeImageCreate"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_image_create_params_t { + pub phContext: *mut ze_context_handle_t, + pub phDevice: *mut ze_device_handle_t, + pub pdesc: *mut *const ze_image_desc_t, + pub pphImage: *mut *mut ze_image_handle_t, +} +#[test] +fn bindgen_test_layout__ze_image_create_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_image_create_params_t>(), + 32usize, + concat!("Size of: ", stringify!(_ze_image_create_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_image_create_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_image_create_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_image_create_params_t>())).phContext as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_image_create_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_image_create_params_t>())).phDevice as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_image_create_params_t), + "::", + stringify!(phDevice) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_image_create_params_t>())).pdesc as *const _ as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_image_create_params_t), + "::", + stringify!(pdesc) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_image_create_params_t>())).pphImage as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_image_create_params_t), + "::", + stringify!(pphImage) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeImageCreate"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_image_create_params_t = _ze_image_create_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeImageCreate"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnImageCreateCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_image_create_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeImageDestroy"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_image_destroy_params_t { + pub phImage: *mut ze_image_handle_t, +} +#[test] +fn bindgen_test_layout__ze_image_destroy_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_image_destroy_params_t>(), + 8usize, + concat!("Size of: ", stringify!(_ze_image_destroy_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_image_destroy_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_image_destroy_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_image_destroy_params_t>())).phImage as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_image_destroy_params_t), + "::", + stringify!(phImage) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeImageDestroy"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_image_destroy_params_t = _ze_image_destroy_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeImageDestroy"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnImageDestroyCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_image_destroy_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Table of Image callback functions pointers"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_image_callbacks_t { + pub pfnGetPropertiesCb: ze_pfnImageGetPropertiesCb_t, + pub pfnCreateCb: ze_pfnImageCreateCb_t, + pub pfnDestroyCb: ze_pfnImageDestroyCb_t, +} +#[test] +fn bindgen_test_layout__ze_image_callbacks_t() { + assert_eq!( + ::std::mem::size_of::<_ze_image_callbacks_t>(), + 24usize, + concat!("Size of: ", stringify!(_ze_image_callbacks_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_image_callbacks_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_image_callbacks_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_image_callbacks_t>())).pfnGetPropertiesCb as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_image_callbacks_t), + "::", + stringify!(pfnGetPropertiesCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_image_callbacks_t>())).pfnCreateCb as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_image_callbacks_t), + "::", + stringify!(pfnCreateCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_image_callbacks_t>())).pfnDestroyCb as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_image_callbacks_t), + "::", + stringify!(pfnDestroyCb) + ) + ); +} +#[doc = ""] +#[doc = " @brief Table of Image callback functions pointers"] +pub type ze_image_callbacks_t = _ze_image_callbacks_t; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeModuleCreate"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_module_create_params_t { + pub phContext: *mut ze_context_handle_t, + pub phDevice: *mut ze_device_handle_t, + pub pdesc: *mut *const ze_module_desc_t, + pub pphModule: *mut *mut ze_module_handle_t, + pub pphBuildLog: *mut *mut ze_module_build_log_handle_t, +} +#[test] +fn bindgen_test_layout__ze_module_create_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_module_create_params_t>(), + 40usize, + concat!("Size of: ", stringify!(_ze_module_create_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_module_create_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_module_create_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_create_params_t>())).phContext as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_create_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_create_params_t>())).phDevice as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_create_params_t), + "::", + stringify!(phDevice) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_create_params_t>())).pdesc as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_create_params_t), + "::", + stringify!(pdesc) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_create_params_t>())).pphModule as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_create_params_t), + "::", + stringify!(pphModule) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_create_params_t>())).pphBuildLog as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_create_params_t), + "::", + stringify!(pphBuildLog) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeModuleCreate"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_module_create_params_t = _ze_module_create_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeModuleCreate"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnModuleCreateCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_module_create_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeModuleDestroy"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_module_destroy_params_t { + pub phModule: *mut ze_module_handle_t, +} +#[test] +fn bindgen_test_layout__ze_module_destroy_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_module_destroy_params_t>(), + 8usize, + concat!("Size of: ", stringify!(_ze_module_destroy_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_module_destroy_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_module_destroy_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_destroy_params_t>())).phModule as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_destroy_params_t), + "::", + stringify!(phModule) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeModuleDestroy"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_module_destroy_params_t = _ze_module_destroy_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeModuleDestroy"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnModuleDestroyCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_module_destroy_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeModuleDynamicLink"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_module_dynamic_link_params_t { + pub pnumModules: *mut u32, + pub pphModules: *mut *mut ze_module_handle_t, + pub pphLinkLog: *mut *mut ze_module_build_log_handle_t, +} +#[test] +fn bindgen_test_layout__ze_module_dynamic_link_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_module_dynamic_link_params_t>(), + 24usize, + concat!("Size of: ", stringify!(_ze_module_dynamic_link_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_module_dynamic_link_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_module_dynamic_link_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_dynamic_link_params_t>())).pnumModules as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_dynamic_link_params_t), + "::", + stringify!(pnumModules) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_dynamic_link_params_t>())).pphModules as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_dynamic_link_params_t), + "::", + stringify!(pphModules) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_dynamic_link_params_t>())).pphLinkLog as *const _ + as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_dynamic_link_params_t), + "::", + stringify!(pphLinkLog) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeModuleDynamicLink"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_module_dynamic_link_params_t = _ze_module_dynamic_link_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeModuleDynamicLink"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnModuleDynamicLinkCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_module_dynamic_link_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeModuleGetNativeBinary"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_module_get_native_binary_params_t { + pub phModule: *mut ze_module_handle_t, + pub ppSize: *mut *mut usize, + pub ppModuleNativeBinary: *mut *mut u8, +} +#[test] +fn bindgen_test_layout__ze_module_get_native_binary_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_module_get_native_binary_params_t>(), + 24usize, + concat!( + "Size of: ", + stringify!(_ze_module_get_native_binary_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_module_get_native_binary_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_module_get_native_binary_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_get_native_binary_params_t>())).phModule as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_get_native_binary_params_t), + "::", + stringify!(phModule) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_get_native_binary_params_t>())).ppSize as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_get_native_binary_params_t), + "::", + stringify!(ppSize) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_get_native_binary_params_t>())).ppModuleNativeBinary + as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_get_native_binary_params_t), + "::", + stringify!(ppModuleNativeBinary) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeModuleGetNativeBinary"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_module_get_native_binary_params_t = _ze_module_get_native_binary_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeModuleGetNativeBinary"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnModuleGetNativeBinaryCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_module_get_native_binary_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeModuleGetGlobalPointer"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_module_get_global_pointer_params_t { + pub phModule: *mut ze_module_handle_t, + pub ppGlobalName: *mut *const ::std::os::raw::c_char, + pub ppSize: *mut *mut usize, + pub ppptr: *mut *mut *mut ::std::os::raw::c_void, +} +#[test] +fn bindgen_test_layout__ze_module_get_global_pointer_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_module_get_global_pointer_params_t>(), + 32usize, + concat!( + "Size of: ", + stringify!(_ze_module_get_global_pointer_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_module_get_global_pointer_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_module_get_global_pointer_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_get_global_pointer_params_t>())).phModule as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_get_global_pointer_params_t), + "::", + stringify!(phModule) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_get_global_pointer_params_t>())).ppGlobalName + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_get_global_pointer_params_t), + "::", + stringify!(ppGlobalName) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_get_global_pointer_params_t>())).ppSize as *const _ + as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_get_global_pointer_params_t), + "::", + stringify!(ppSize) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_get_global_pointer_params_t>())).ppptr as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_get_global_pointer_params_t), + "::", + stringify!(ppptr) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeModuleGetGlobalPointer"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_module_get_global_pointer_params_t = _ze_module_get_global_pointer_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeModuleGetGlobalPointer"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnModuleGetGlobalPointerCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_module_get_global_pointer_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeModuleGetKernelNames"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_module_get_kernel_names_params_t { + pub phModule: *mut ze_module_handle_t, + pub ppCount: *mut *mut u32, + pub ppNames: *mut *mut *const ::std::os::raw::c_char, +} +#[test] +fn bindgen_test_layout__ze_module_get_kernel_names_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_module_get_kernel_names_params_t>(), + 24usize, + concat!( + "Size of: ", + stringify!(_ze_module_get_kernel_names_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_module_get_kernel_names_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_module_get_kernel_names_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_get_kernel_names_params_t>())).phModule as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_get_kernel_names_params_t), + "::", + stringify!(phModule) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_get_kernel_names_params_t>())).ppCount as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_get_kernel_names_params_t), + "::", + stringify!(ppCount) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_get_kernel_names_params_t>())).ppNames as *const _ + as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_get_kernel_names_params_t), + "::", + stringify!(ppNames) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeModuleGetKernelNames"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_module_get_kernel_names_params_t = _ze_module_get_kernel_names_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeModuleGetKernelNames"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnModuleGetKernelNamesCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_module_get_kernel_names_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeModuleGetProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_module_get_properties_params_t { + pub phModule: *mut ze_module_handle_t, + pub ppModuleProperties: *mut *mut ze_module_properties_t, +} +#[test] +fn bindgen_test_layout__ze_module_get_properties_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_module_get_properties_params_t>(), + 16usize, + concat!("Size of: ", stringify!(_ze_module_get_properties_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_module_get_properties_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_module_get_properties_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_get_properties_params_t>())).phModule as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_get_properties_params_t), + "::", + stringify!(phModule) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_get_properties_params_t>())).ppModuleProperties + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_get_properties_params_t), + "::", + stringify!(ppModuleProperties) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeModuleGetProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_module_get_properties_params_t = _ze_module_get_properties_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeModuleGetProperties"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnModuleGetPropertiesCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_module_get_properties_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeModuleGetFunctionPointer"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_module_get_function_pointer_params_t { + pub phModule: *mut ze_module_handle_t, + pub ppFunctionName: *mut *const ::std::os::raw::c_char, + pub ppfnFunction: *mut *mut *mut ::std::os::raw::c_void, +} +#[test] +fn bindgen_test_layout__ze_module_get_function_pointer_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_module_get_function_pointer_params_t>(), + 24usize, + concat!( + "Size of: ", + stringify!(_ze_module_get_function_pointer_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_module_get_function_pointer_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_module_get_function_pointer_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_get_function_pointer_params_t>())).phModule + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_get_function_pointer_params_t), + "::", + stringify!(phModule) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_get_function_pointer_params_t>())).ppFunctionName + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_get_function_pointer_params_t), + "::", + stringify!(ppFunctionName) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_get_function_pointer_params_t>())).ppfnFunction + as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_get_function_pointer_params_t), + "::", + stringify!(ppfnFunction) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeModuleGetFunctionPointer"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_module_get_function_pointer_params_t = _ze_module_get_function_pointer_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeModuleGetFunctionPointer"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnModuleGetFunctionPointerCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_module_get_function_pointer_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Table of Module callback functions pointers"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_module_callbacks_t { + pub pfnCreateCb: ze_pfnModuleCreateCb_t, + pub pfnDestroyCb: ze_pfnModuleDestroyCb_t, + pub pfnDynamicLinkCb: ze_pfnModuleDynamicLinkCb_t, + pub pfnGetNativeBinaryCb: ze_pfnModuleGetNativeBinaryCb_t, + pub pfnGetGlobalPointerCb: ze_pfnModuleGetGlobalPointerCb_t, + pub pfnGetKernelNamesCb: ze_pfnModuleGetKernelNamesCb_t, + pub pfnGetPropertiesCb: ze_pfnModuleGetPropertiesCb_t, + pub pfnGetFunctionPointerCb: ze_pfnModuleGetFunctionPointerCb_t, +} +#[test] +fn bindgen_test_layout__ze_module_callbacks_t() { + assert_eq!( + ::std::mem::size_of::<_ze_module_callbacks_t>(), + 64usize, + concat!("Size of: ", stringify!(_ze_module_callbacks_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_module_callbacks_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_module_callbacks_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_callbacks_t>())).pfnCreateCb as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_callbacks_t), + "::", + stringify!(pfnCreateCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_callbacks_t>())).pfnDestroyCb as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_callbacks_t), + "::", + stringify!(pfnDestroyCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_callbacks_t>())).pfnDynamicLinkCb as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_callbacks_t), + "::", + stringify!(pfnDynamicLinkCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_callbacks_t>())).pfnGetNativeBinaryCb as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_callbacks_t), + "::", + stringify!(pfnGetNativeBinaryCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_callbacks_t>())).pfnGetGlobalPointerCb as *const _ + as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_callbacks_t), + "::", + stringify!(pfnGetGlobalPointerCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_callbacks_t>())).pfnGetKernelNamesCb as *const _ + as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_callbacks_t), + "::", + stringify!(pfnGetKernelNamesCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_callbacks_t>())).pfnGetPropertiesCb as *const _ + as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_callbacks_t), + "::", + stringify!(pfnGetPropertiesCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_callbacks_t>())).pfnGetFunctionPointerCb as *const _ + as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_callbacks_t), + "::", + stringify!(pfnGetFunctionPointerCb) + ) + ); +} +#[doc = ""] +#[doc = " @brief Table of Module callback functions pointers"] +pub type ze_module_callbacks_t = _ze_module_callbacks_t; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeModuleBuildLogDestroy"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_module_build_log_destroy_params_t { + pub phModuleBuildLog: *mut ze_module_build_log_handle_t, +} +#[test] +fn bindgen_test_layout__ze_module_build_log_destroy_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_module_build_log_destroy_params_t>(), + 8usize, + concat!( + "Size of: ", + stringify!(_ze_module_build_log_destroy_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_module_build_log_destroy_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_module_build_log_destroy_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_build_log_destroy_params_t>())).phModuleBuildLog + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_build_log_destroy_params_t), + "::", + stringify!(phModuleBuildLog) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeModuleBuildLogDestroy"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_module_build_log_destroy_params_t = _ze_module_build_log_destroy_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeModuleBuildLogDestroy"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnModuleBuildLogDestroyCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_module_build_log_destroy_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeModuleBuildLogGetString"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_module_build_log_get_string_params_t { + pub phModuleBuildLog: *mut ze_module_build_log_handle_t, + pub ppSize: *mut *mut usize, + pub ppBuildLog: *mut *mut ::std::os::raw::c_char, +} +#[test] +fn bindgen_test_layout__ze_module_build_log_get_string_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_module_build_log_get_string_params_t>(), + 24usize, + concat!( + "Size of: ", + stringify!(_ze_module_build_log_get_string_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_module_build_log_get_string_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_module_build_log_get_string_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_build_log_get_string_params_t>())).phModuleBuildLog + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_build_log_get_string_params_t), + "::", + stringify!(phModuleBuildLog) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_build_log_get_string_params_t>())).ppSize as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_build_log_get_string_params_t), + "::", + stringify!(ppSize) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_build_log_get_string_params_t>())).ppBuildLog + as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_build_log_get_string_params_t), + "::", + stringify!(ppBuildLog) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeModuleBuildLogGetString"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_module_build_log_get_string_params_t = _ze_module_build_log_get_string_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeModuleBuildLogGetString"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnModuleBuildLogGetStringCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_module_build_log_get_string_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Table of ModuleBuildLog callback functions pointers"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_module_build_log_callbacks_t { + pub pfnDestroyCb: ze_pfnModuleBuildLogDestroyCb_t, + pub pfnGetStringCb: ze_pfnModuleBuildLogGetStringCb_t, +} +#[test] +fn bindgen_test_layout__ze_module_build_log_callbacks_t() { + assert_eq!( + ::std::mem::size_of::<_ze_module_build_log_callbacks_t>(), + 16usize, + concat!("Size of: ", stringify!(_ze_module_build_log_callbacks_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_module_build_log_callbacks_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_module_build_log_callbacks_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_build_log_callbacks_t>())).pfnDestroyCb as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_build_log_callbacks_t), + "::", + stringify!(pfnDestroyCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_build_log_callbacks_t>())).pfnGetStringCb as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_build_log_callbacks_t), + "::", + stringify!(pfnGetStringCb) + ) + ); +} +#[doc = ""] +#[doc = " @brief Table of ModuleBuildLog callback functions pointers"] +pub type ze_module_build_log_callbacks_t = _ze_module_build_log_callbacks_t; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeKernelCreate"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_kernel_create_params_t { + pub phModule: *mut ze_module_handle_t, + pub pdesc: *mut *const ze_kernel_desc_t, + pub pphKernel: *mut *mut ze_kernel_handle_t, +} +#[test] +fn bindgen_test_layout__ze_kernel_create_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_kernel_create_params_t>(), + 24usize, + concat!("Size of: ", stringify!(_ze_kernel_create_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_kernel_create_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_kernel_create_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_create_params_t>())).phModule as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_create_params_t), + "::", + stringify!(phModule) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_create_params_t>())).pdesc as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_create_params_t), + "::", + stringify!(pdesc) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_create_params_t>())).pphKernel as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_create_params_t), + "::", + stringify!(pphKernel) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeKernelCreate"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_kernel_create_params_t = _ze_kernel_create_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeKernelCreate"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnKernelCreateCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_kernel_create_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeKernelDestroy"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_kernel_destroy_params_t { + pub phKernel: *mut ze_kernel_handle_t, +} +#[test] +fn bindgen_test_layout__ze_kernel_destroy_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_kernel_destroy_params_t>(), + 8usize, + concat!("Size of: ", stringify!(_ze_kernel_destroy_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_kernel_destroy_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_kernel_destroy_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_destroy_params_t>())).phKernel as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_destroy_params_t), + "::", + stringify!(phKernel) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeKernelDestroy"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_kernel_destroy_params_t = _ze_kernel_destroy_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeKernelDestroy"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnKernelDestroyCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_kernel_destroy_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeKernelSetCacheConfig"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_kernel_set_cache_config_params_t { + pub phKernel: *mut ze_kernel_handle_t, + pub pflags: *mut ze_cache_config_flags_t, +} +#[test] +fn bindgen_test_layout__ze_kernel_set_cache_config_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_kernel_set_cache_config_params_t>(), + 16usize, + concat!( + "Size of: ", + stringify!(_ze_kernel_set_cache_config_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_kernel_set_cache_config_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_kernel_set_cache_config_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_set_cache_config_params_t>())).phKernel as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_set_cache_config_params_t), + "::", + stringify!(phKernel) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_set_cache_config_params_t>())).pflags as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_set_cache_config_params_t), + "::", + stringify!(pflags) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeKernelSetCacheConfig"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_kernel_set_cache_config_params_t = _ze_kernel_set_cache_config_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeKernelSetCacheConfig"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnKernelSetCacheConfigCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_kernel_set_cache_config_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeKernelSetGroupSize"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_kernel_set_group_size_params_t { + pub phKernel: *mut ze_kernel_handle_t, + pub pgroupSizeX: *mut u32, + pub pgroupSizeY: *mut u32, + pub pgroupSizeZ: *mut u32, +} +#[test] +fn bindgen_test_layout__ze_kernel_set_group_size_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_kernel_set_group_size_params_t>(), + 32usize, + concat!("Size of: ", stringify!(_ze_kernel_set_group_size_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_kernel_set_group_size_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_kernel_set_group_size_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_set_group_size_params_t>())).phKernel as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_set_group_size_params_t), + "::", + stringify!(phKernel) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_set_group_size_params_t>())).pgroupSizeX as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_set_group_size_params_t), + "::", + stringify!(pgroupSizeX) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_set_group_size_params_t>())).pgroupSizeY as *const _ + as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_set_group_size_params_t), + "::", + stringify!(pgroupSizeY) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_set_group_size_params_t>())).pgroupSizeZ as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_set_group_size_params_t), + "::", + stringify!(pgroupSizeZ) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeKernelSetGroupSize"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_kernel_set_group_size_params_t = _ze_kernel_set_group_size_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeKernelSetGroupSize"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnKernelSetGroupSizeCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_kernel_set_group_size_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeKernelSuggestGroupSize"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_kernel_suggest_group_size_params_t { + pub phKernel: *mut ze_kernel_handle_t, + pub pglobalSizeX: *mut u32, + pub pglobalSizeY: *mut u32, + pub pglobalSizeZ: *mut u32, + pub pgroupSizeX: *mut *mut u32, + pub pgroupSizeY: *mut *mut u32, + pub pgroupSizeZ: *mut *mut u32, +} +#[test] +fn bindgen_test_layout__ze_kernel_suggest_group_size_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_kernel_suggest_group_size_params_t>(), + 56usize, + concat!( + "Size of: ", + stringify!(_ze_kernel_suggest_group_size_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_kernel_suggest_group_size_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_kernel_suggest_group_size_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_suggest_group_size_params_t>())).phKernel as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_suggest_group_size_params_t), + "::", + stringify!(phKernel) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_suggest_group_size_params_t>())).pglobalSizeX + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_suggest_group_size_params_t), + "::", + stringify!(pglobalSizeX) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_suggest_group_size_params_t>())).pglobalSizeY + as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_suggest_group_size_params_t), + "::", + stringify!(pglobalSizeY) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_suggest_group_size_params_t>())).pglobalSizeZ + as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_suggest_group_size_params_t), + "::", + stringify!(pglobalSizeZ) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_suggest_group_size_params_t>())).pgroupSizeX + as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_suggest_group_size_params_t), + "::", + stringify!(pgroupSizeX) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_suggest_group_size_params_t>())).pgroupSizeY + as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_suggest_group_size_params_t), + "::", + stringify!(pgroupSizeY) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_suggest_group_size_params_t>())).pgroupSizeZ + as *const _ as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_suggest_group_size_params_t), + "::", + stringify!(pgroupSizeZ) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeKernelSuggestGroupSize"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_kernel_suggest_group_size_params_t = _ze_kernel_suggest_group_size_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeKernelSuggestGroupSize"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnKernelSuggestGroupSizeCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_kernel_suggest_group_size_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeKernelSuggestMaxCooperativeGroupCount"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_kernel_suggest_max_cooperative_group_count_params_t { + pub phKernel: *mut ze_kernel_handle_t, + pub ptotalGroupCount: *mut *mut u32, +} +#[test] +fn bindgen_test_layout__ze_kernel_suggest_max_cooperative_group_count_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_kernel_suggest_max_cooperative_group_count_params_t>(), + 16usize, + concat!( + "Size of: ", + stringify!(_ze_kernel_suggest_max_cooperative_group_count_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_kernel_suggest_max_cooperative_group_count_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_kernel_suggest_max_cooperative_group_count_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_suggest_max_cooperative_group_count_params_t>())) + .phKernel as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_suggest_max_cooperative_group_count_params_t), + "::", + stringify!(phKernel) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_suggest_max_cooperative_group_count_params_t>())) + .ptotalGroupCount as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_suggest_max_cooperative_group_count_params_t), + "::", + stringify!(ptotalGroupCount) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeKernelSuggestMaxCooperativeGroupCount"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_kernel_suggest_max_cooperative_group_count_params_t = + _ze_kernel_suggest_max_cooperative_group_count_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeKernelSuggestMaxCooperativeGroupCount"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnKernelSuggestMaxCooperativeGroupCountCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_kernel_suggest_max_cooperative_group_count_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeKernelSetArgumentValue"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_kernel_set_argument_value_params_t { + pub phKernel: *mut ze_kernel_handle_t, + pub pargIndex: *mut u32, + pub pargSize: *mut usize, + pub ppArgValue: *mut *const ::std::os::raw::c_void, +} +#[test] +fn bindgen_test_layout__ze_kernel_set_argument_value_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_kernel_set_argument_value_params_t>(), + 32usize, + concat!( + "Size of: ", + stringify!(_ze_kernel_set_argument_value_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_kernel_set_argument_value_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_kernel_set_argument_value_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_set_argument_value_params_t>())).phKernel as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_set_argument_value_params_t), + "::", + stringify!(phKernel) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_set_argument_value_params_t>())).pargIndex as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_set_argument_value_params_t), + "::", + stringify!(pargIndex) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_set_argument_value_params_t>())).pargSize as *const _ + as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_set_argument_value_params_t), + "::", + stringify!(pargSize) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_set_argument_value_params_t>())).ppArgValue + as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_set_argument_value_params_t), + "::", + stringify!(ppArgValue) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeKernelSetArgumentValue"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_kernel_set_argument_value_params_t = _ze_kernel_set_argument_value_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeKernelSetArgumentValue"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnKernelSetArgumentValueCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_kernel_set_argument_value_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeKernelSetIndirectAccess"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_kernel_set_indirect_access_params_t { + pub phKernel: *mut ze_kernel_handle_t, + pub pflags: *mut ze_kernel_indirect_access_flags_t, +} +#[test] +fn bindgen_test_layout__ze_kernel_set_indirect_access_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_kernel_set_indirect_access_params_t>(), + 16usize, + concat!( + "Size of: ", + stringify!(_ze_kernel_set_indirect_access_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_kernel_set_indirect_access_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_kernel_set_indirect_access_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_set_indirect_access_params_t>())).phKernel as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_set_indirect_access_params_t), + "::", + stringify!(phKernel) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_set_indirect_access_params_t>())).pflags as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_set_indirect_access_params_t), + "::", + stringify!(pflags) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeKernelSetIndirectAccess"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_kernel_set_indirect_access_params_t = _ze_kernel_set_indirect_access_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeKernelSetIndirectAccess"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnKernelSetIndirectAccessCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_kernel_set_indirect_access_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeKernelGetIndirectAccess"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_kernel_get_indirect_access_params_t { + pub phKernel: *mut ze_kernel_handle_t, + pub ppFlags: *mut *mut ze_kernel_indirect_access_flags_t, +} +#[test] +fn bindgen_test_layout__ze_kernel_get_indirect_access_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_kernel_get_indirect_access_params_t>(), + 16usize, + concat!( + "Size of: ", + stringify!(_ze_kernel_get_indirect_access_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_kernel_get_indirect_access_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_kernel_get_indirect_access_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_get_indirect_access_params_t>())).phKernel as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_get_indirect_access_params_t), + "::", + stringify!(phKernel) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_get_indirect_access_params_t>())).ppFlags as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_get_indirect_access_params_t), + "::", + stringify!(ppFlags) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeKernelGetIndirectAccess"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_kernel_get_indirect_access_params_t = _ze_kernel_get_indirect_access_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeKernelGetIndirectAccess"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnKernelGetIndirectAccessCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_kernel_get_indirect_access_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeKernelGetSourceAttributes"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_kernel_get_source_attributes_params_t { + pub phKernel: *mut ze_kernel_handle_t, + pub ppSize: *mut *mut u32, + pub ppString: *mut *mut *mut ::std::os::raw::c_char, +} +#[test] +fn bindgen_test_layout__ze_kernel_get_source_attributes_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_kernel_get_source_attributes_params_t>(), + 24usize, + concat!( + "Size of: ", + stringify!(_ze_kernel_get_source_attributes_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_kernel_get_source_attributes_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_kernel_get_source_attributes_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_get_source_attributes_params_t>())).phKernel + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_get_source_attributes_params_t), + "::", + stringify!(phKernel) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_get_source_attributes_params_t>())).ppSize as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_get_source_attributes_params_t), + "::", + stringify!(ppSize) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_get_source_attributes_params_t>())).ppString + as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_get_source_attributes_params_t), + "::", + stringify!(ppString) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeKernelGetSourceAttributes"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_kernel_get_source_attributes_params_t = _ze_kernel_get_source_attributes_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeKernelGetSourceAttributes"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnKernelGetSourceAttributesCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_kernel_get_source_attributes_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeKernelGetProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_kernel_get_properties_params_t { + pub phKernel: *mut ze_kernel_handle_t, + pub ppKernelProperties: *mut *mut ze_kernel_properties_t, +} +#[test] +fn bindgen_test_layout__ze_kernel_get_properties_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_kernel_get_properties_params_t>(), + 16usize, + concat!("Size of: ", stringify!(_ze_kernel_get_properties_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_kernel_get_properties_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_kernel_get_properties_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_get_properties_params_t>())).phKernel as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_get_properties_params_t), + "::", + stringify!(phKernel) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_get_properties_params_t>())).ppKernelProperties + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_get_properties_params_t), + "::", + stringify!(ppKernelProperties) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeKernelGetProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_kernel_get_properties_params_t = _ze_kernel_get_properties_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeKernelGetProperties"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnKernelGetPropertiesCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_kernel_get_properties_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeKernelGetName"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_kernel_get_name_params_t { + pub phKernel: *mut ze_kernel_handle_t, + pub ppSize: *mut *mut usize, + pub ppName: *mut *mut ::std::os::raw::c_char, +} +#[test] +fn bindgen_test_layout__ze_kernel_get_name_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_kernel_get_name_params_t>(), + 24usize, + concat!("Size of: ", stringify!(_ze_kernel_get_name_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_kernel_get_name_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_kernel_get_name_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_get_name_params_t>())).phKernel as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_get_name_params_t), + "::", + stringify!(phKernel) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_get_name_params_t>())).ppSize as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_get_name_params_t), + "::", + stringify!(ppSize) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_get_name_params_t>())).ppName as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_get_name_params_t), + "::", + stringify!(ppName) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeKernelGetName"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_kernel_get_name_params_t = _ze_kernel_get_name_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeKernelGetName"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnKernelGetNameCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_kernel_get_name_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Table of Kernel callback functions pointers"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_kernel_callbacks_t { + pub pfnCreateCb: ze_pfnKernelCreateCb_t, + pub pfnDestroyCb: ze_pfnKernelDestroyCb_t, + pub pfnSetCacheConfigCb: ze_pfnKernelSetCacheConfigCb_t, + pub pfnSetGroupSizeCb: ze_pfnKernelSetGroupSizeCb_t, + pub pfnSuggestGroupSizeCb: ze_pfnKernelSuggestGroupSizeCb_t, + pub pfnSuggestMaxCooperativeGroupCountCb: ze_pfnKernelSuggestMaxCooperativeGroupCountCb_t, + pub pfnSetArgumentValueCb: ze_pfnKernelSetArgumentValueCb_t, + pub pfnSetIndirectAccessCb: ze_pfnKernelSetIndirectAccessCb_t, + pub pfnGetIndirectAccessCb: ze_pfnKernelGetIndirectAccessCb_t, + pub pfnGetSourceAttributesCb: ze_pfnKernelGetSourceAttributesCb_t, + pub pfnGetPropertiesCb: ze_pfnKernelGetPropertiesCb_t, + pub pfnGetNameCb: ze_pfnKernelGetNameCb_t, +} +#[test] +fn bindgen_test_layout__ze_kernel_callbacks_t() { + assert_eq!( + ::std::mem::size_of::<_ze_kernel_callbacks_t>(), + 96usize, + concat!("Size of: ", stringify!(_ze_kernel_callbacks_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_kernel_callbacks_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_kernel_callbacks_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_callbacks_t>())).pfnCreateCb as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_callbacks_t), + "::", + stringify!(pfnCreateCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_callbacks_t>())).pfnDestroyCb as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_callbacks_t), + "::", + stringify!(pfnDestroyCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_callbacks_t>())).pfnSetCacheConfigCb as *const _ + as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_callbacks_t), + "::", + stringify!(pfnSetCacheConfigCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_callbacks_t>())).pfnSetGroupSizeCb as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_callbacks_t), + "::", + stringify!(pfnSetGroupSizeCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_callbacks_t>())).pfnSuggestGroupSizeCb as *const _ + as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_callbacks_t), + "::", + stringify!(pfnSuggestGroupSizeCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_callbacks_t>())).pfnSuggestMaxCooperativeGroupCountCb + as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_callbacks_t), + "::", + stringify!(pfnSuggestMaxCooperativeGroupCountCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_callbacks_t>())).pfnSetArgumentValueCb as *const _ + as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_callbacks_t), + "::", + stringify!(pfnSetArgumentValueCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_callbacks_t>())).pfnSetIndirectAccessCb as *const _ + as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_callbacks_t), + "::", + stringify!(pfnSetIndirectAccessCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_callbacks_t>())).pfnGetIndirectAccessCb as *const _ + as usize + }, + 64usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_callbacks_t), + "::", + stringify!(pfnGetIndirectAccessCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_callbacks_t>())).pfnGetSourceAttributesCb as *const _ + as usize + }, + 72usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_callbacks_t), + "::", + stringify!(pfnGetSourceAttributesCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_callbacks_t>())).pfnGetPropertiesCb as *const _ + as usize + }, + 80usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_callbacks_t), + "::", + stringify!(pfnGetPropertiesCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_kernel_callbacks_t>())).pfnGetNameCb as *const _ as usize + }, + 88usize, + concat!( + "Offset of field: ", + stringify!(_ze_kernel_callbacks_t), + "::", + stringify!(pfnGetNameCb) + ) + ); +} +#[doc = ""] +#[doc = " @brief Table of Kernel callback functions pointers"] +pub type ze_kernel_callbacks_t = _ze_kernel_callbacks_t; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeSamplerCreate"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_sampler_create_params_t { + pub phContext: *mut ze_context_handle_t, + pub phDevice: *mut ze_device_handle_t, + pub pdesc: *mut *const ze_sampler_desc_t, + pub pphSampler: *mut *mut ze_sampler_handle_t, +} +#[test] +fn bindgen_test_layout__ze_sampler_create_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_sampler_create_params_t>(), + 32usize, + concat!("Size of: ", stringify!(_ze_sampler_create_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_sampler_create_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_sampler_create_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_sampler_create_params_t>())).phContext as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_sampler_create_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_sampler_create_params_t>())).phDevice as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_sampler_create_params_t), + "::", + stringify!(phDevice) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_sampler_create_params_t>())).pdesc as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_sampler_create_params_t), + "::", + stringify!(pdesc) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_sampler_create_params_t>())).pphSampler as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_sampler_create_params_t), + "::", + stringify!(pphSampler) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeSamplerCreate"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_sampler_create_params_t = _ze_sampler_create_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeSamplerCreate"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnSamplerCreateCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_sampler_create_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeSamplerDestroy"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_sampler_destroy_params_t { + pub phSampler: *mut ze_sampler_handle_t, +} +#[test] +fn bindgen_test_layout__ze_sampler_destroy_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_sampler_destroy_params_t>(), + 8usize, + concat!("Size of: ", stringify!(_ze_sampler_destroy_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_sampler_destroy_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_sampler_destroy_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_sampler_destroy_params_t>())).phSampler as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_sampler_destroy_params_t), + "::", + stringify!(phSampler) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeSamplerDestroy"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_sampler_destroy_params_t = _ze_sampler_destroy_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeSamplerDestroy"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnSamplerDestroyCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_sampler_destroy_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Table of Sampler callback functions pointers"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_sampler_callbacks_t { + pub pfnCreateCb: ze_pfnSamplerCreateCb_t, + pub pfnDestroyCb: ze_pfnSamplerDestroyCb_t, +} +#[test] +fn bindgen_test_layout__ze_sampler_callbacks_t() { + assert_eq!( + ::std::mem::size_of::<_ze_sampler_callbacks_t>(), + 16usize, + concat!("Size of: ", stringify!(_ze_sampler_callbacks_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_sampler_callbacks_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_sampler_callbacks_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_sampler_callbacks_t>())).pfnCreateCb as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_sampler_callbacks_t), + "::", + stringify!(pfnCreateCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_sampler_callbacks_t>())).pfnDestroyCb as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_sampler_callbacks_t), + "::", + stringify!(pfnDestroyCb) + ) + ); +} +#[doc = ""] +#[doc = " @brief Table of Sampler callback functions pointers"] +pub type ze_sampler_callbacks_t = _ze_sampler_callbacks_t; +#[doc = ""] +#[doc = " @brief Callback function parameters for zePhysicalMemCreate"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_physical_mem_create_params_t { + pub phContext: *mut ze_context_handle_t, + pub phDevice: *mut ze_device_handle_t, + pub pdesc: *mut *mut ze_physical_mem_desc_t, + pub pphPhysicalMemory: *mut *mut ze_physical_mem_handle_t, +} +#[test] +fn bindgen_test_layout__ze_physical_mem_create_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_physical_mem_create_params_t>(), + 32usize, + concat!("Size of: ", stringify!(_ze_physical_mem_create_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_physical_mem_create_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_physical_mem_create_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_physical_mem_create_params_t>())).phContext as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_physical_mem_create_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_physical_mem_create_params_t>())).phDevice as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_physical_mem_create_params_t), + "::", + stringify!(phDevice) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_physical_mem_create_params_t>())).pdesc as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_physical_mem_create_params_t), + "::", + stringify!(pdesc) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_physical_mem_create_params_t>())).pphPhysicalMemory + as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_physical_mem_create_params_t), + "::", + stringify!(pphPhysicalMemory) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zePhysicalMemCreate"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_physical_mem_create_params_t = _ze_physical_mem_create_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zePhysicalMemCreate"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnPhysicalMemCreateCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_physical_mem_create_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zePhysicalMemDestroy"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_physical_mem_destroy_params_t { + pub phContext: *mut ze_context_handle_t, + pub phPhysicalMemory: *mut ze_physical_mem_handle_t, +} +#[test] +fn bindgen_test_layout__ze_physical_mem_destroy_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_physical_mem_destroy_params_t>(), + 16usize, + concat!("Size of: ", stringify!(_ze_physical_mem_destroy_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_physical_mem_destroy_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_physical_mem_destroy_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_physical_mem_destroy_params_t>())).phContext as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_physical_mem_destroy_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_physical_mem_destroy_params_t>())).phPhysicalMemory + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_physical_mem_destroy_params_t), + "::", + stringify!(phPhysicalMemory) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zePhysicalMemDestroy"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_physical_mem_destroy_params_t = _ze_physical_mem_destroy_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zePhysicalMemDestroy"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnPhysicalMemDestroyCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_physical_mem_destroy_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Table of PhysicalMem callback functions pointers"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_physical_mem_callbacks_t { + pub pfnCreateCb: ze_pfnPhysicalMemCreateCb_t, + pub pfnDestroyCb: ze_pfnPhysicalMemDestroyCb_t, +} +#[test] +fn bindgen_test_layout__ze_physical_mem_callbacks_t() { + assert_eq!( + ::std::mem::size_of::<_ze_physical_mem_callbacks_t>(), + 16usize, + concat!("Size of: ", stringify!(_ze_physical_mem_callbacks_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_physical_mem_callbacks_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_physical_mem_callbacks_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_physical_mem_callbacks_t>())).pfnCreateCb as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_physical_mem_callbacks_t), + "::", + stringify!(pfnCreateCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_physical_mem_callbacks_t>())).pfnDestroyCb as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_physical_mem_callbacks_t), + "::", + stringify!(pfnDestroyCb) + ) + ); +} +#[doc = ""] +#[doc = " @brief Table of PhysicalMem callback functions pointers"] +pub type ze_physical_mem_callbacks_t = _ze_physical_mem_callbacks_t; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeMemAllocShared"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_mem_alloc_shared_params_t { + pub phContext: *mut ze_context_handle_t, + pub pdevice_desc: *mut *const ze_device_mem_alloc_desc_t, + pub phost_desc: *mut *const ze_host_mem_alloc_desc_t, + pub psize: *mut usize, + pub palignment: *mut usize, + pub phDevice: *mut ze_device_handle_t, + pub ppptr: *mut *mut *mut ::std::os::raw::c_void, +} +#[test] +fn bindgen_test_layout__ze_mem_alloc_shared_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_mem_alloc_shared_params_t>(), + 56usize, + concat!("Size of: ", stringify!(_ze_mem_alloc_shared_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_mem_alloc_shared_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_mem_alloc_shared_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_alloc_shared_params_t>())).phContext as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_alloc_shared_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_alloc_shared_params_t>())).pdevice_desc as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_alloc_shared_params_t), + "::", + stringify!(pdevice_desc) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_alloc_shared_params_t>())).phost_desc as *const _ + as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_alloc_shared_params_t), + "::", + stringify!(phost_desc) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_alloc_shared_params_t>())).psize as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_alloc_shared_params_t), + "::", + stringify!(psize) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_alloc_shared_params_t>())).palignment as *const _ + as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_alloc_shared_params_t), + "::", + stringify!(palignment) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_alloc_shared_params_t>())).phDevice as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_alloc_shared_params_t), + "::", + stringify!(phDevice) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_alloc_shared_params_t>())).ppptr as *const _ as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_alloc_shared_params_t), + "::", + stringify!(ppptr) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeMemAllocShared"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_mem_alloc_shared_params_t = _ze_mem_alloc_shared_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeMemAllocShared"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnMemAllocSharedCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_mem_alloc_shared_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeMemAllocDevice"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_mem_alloc_device_params_t { + pub phContext: *mut ze_context_handle_t, + pub pdevice_desc: *mut *const ze_device_mem_alloc_desc_t, + pub psize: *mut usize, + pub palignment: *mut usize, + pub phDevice: *mut ze_device_handle_t, + pub ppptr: *mut *mut *mut ::std::os::raw::c_void, +} +#[test] +fn bindgen_test_layout__ze_mem_alloc_device_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_mem_alloc_device_params_t>(), + 48usize, + concat!("Size of: ", stringify!(_ze_mem_alloc_device_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_mem_alloc_device_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_mem_alloc_device_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_alloc_device_params_t>())).phContext as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_alloc_device_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_alloc_device_params_t>())).pdevice_desc as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_alloc_device_params_t), + "::", + stringify!(pdevice_desc) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_alloc_device_params_t>())).psize as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_alloc_device_params_t), + "::", + stringify!(psize) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_alloc_device_params_t>())).palignment as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_alloc_device_params_t), + "::", + stringify!(palignment) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_alloc_device_params_t>())).phDevice as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_alloc_device_params_t), + "::", + stringify!(phDevice) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_alloc_device_params_t>())).ppptr as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_alloc_device_params_t), + "::", + stringify!(ppptr) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeMemAllocDevice"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_mem_alloc_device_params_t = _ze_mem_alloc_device_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeMemAllocDevice"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnMemAllocDeviceCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_mem_alloc_device_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeMemAllocHost"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_mem_alloc_host_params_t { + pub phContext: *mut ze_context_handle_t, + pub phost_desc: *mut *const ze_host_mem_alloc_desc_t, + pub psize: *mut usize, + pub palignment: *mut usize, + pub ppptr: *mut *mut *mut ::std::os::raw::c_void, +} +#[test] +fn bindgen_test_layout__ze_mem_alloc_host_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_mem_alloc_host_params_t>(), + 40usize, + concat!("Size of: ", stringify!(_ze_mem_alloc_host_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_mem_alloc_host_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_mem_alloc_host_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_alloc_host_params_t>())).phContext as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_alloc_host_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_alloc_host_params_t>())).phost_desc as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_alloc_host_params_t), + "::", + stringify!(phost_desc) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_alloc_host_params_t>())).psize as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_alloc_host_params_t), + "::", + stringify!(psize) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_alloc_host_params_t>())).palignment as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_alloc_host_params_t), + "::", + stringify!(palignment) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_alloc_host_params_t>())).ppptr as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_alloc_host_params_t), + "::", + stringify!(ppptr) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeMemAllocHost"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_mem_alloc_host_params_t = _ze_mem_alloc_host_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeMemAllocHost"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnMemAllocHostCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_mem_alloc_host_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeMemFree"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_mem_free_params_t { + pub phContext: *mut ze_context_handle_t, + pub pptr: *mut *mut ::std::os::raw::c_void, +} +#[test] +fn bindgen_test_layout__ze_mem_free_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_mem_free_params_t>(), + 16usize, + concat!("Size of: ", stringify!(_ze_mem_free_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_mem_free_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_mem_free_params_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_mem_free_params_t>())).phContext as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_free_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_mem_free_params_t>())).pptr as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_free_params_t), + "::", + stringify!(pptr) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeMemFree"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_mem_free_params_t = _ze_mem_free_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeMemFree"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnMemFreeCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_mem_free_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeMemGetAllocProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_mem_get_alloc_properties_params_t { + pub phContext: *mut ze_context_handle_t, + pub pptr: *mut *const ::std::os::raw::c_void, + pub ppMemAllocProperties: *mut *mut ze_memory_allocation_properties_t, + pub pphDevice: *mut *mut ze_device_handle_t, +} +#[test] +fn bindgen_test_layout__ze_mem_get_alloc_properties_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_mem_get_alloc_properties_params_t>(), + 32usize, + concat!( + "Size of: ", + stringify!(_ze_mem_get_alloc_properties_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_mem_get_alloc_properties_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_mem_get_alloc_properties_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_get_alloc_properties_params_t>())).phContext as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_get_alloc_properties_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_get_alloc_properties_params_t>())).pptr as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_get_alloc_properties_params_t), + "::", + stringify!(pptr) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_get_alloc_properties_params_t>())).ppMemAllocProperties + as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_get_alloc_properties_params_t), + "::", + stringify!(ppMemAllocProperties) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_get_alloc_properties_params_t>())).pphDevice as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_get_alloc_properties_params_t), + "::", + stringify!(pphDevice) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeMemGetAllocProperties"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_mem_get_alloc_properties_params_t = _ze_mem_get_alloc_properties_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeMemGetAllocProperties"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnMemGetAllocPropertiesCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_mem_get_alloc_properties_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeMemGetAddressRange"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_mem_get_address_range_params_t { + pub phContext: *mut ze_context_handle_t, + pub pptr: *mut *const ::std::os::raw::c_void, + pub ppBase: *mut *mut *mut ::std::os::raw::c_void, + pub ppSize: *mut *mut usize, +} +#[test] +fn bindgen_test_layout__ze_mem_get_address_range_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_mem_get_address_range_params_t>(), + 32usize, + concat!("Size of: ", stringify!(_ze_mem_get_address_range_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_mem_get_address_range_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_mem_get_address_range_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_get_address_range_params_t>())).phContext as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_get_address_range_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_get_address_range_params_t>())).pptr as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_get_address_range_params_t), + "::", + stringify!(pptr) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_get_address_range_params_t>())).ppBase as *const _ + as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_get_address_range_params_t), + "::", + stringify!(ppBase) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_get_address_range_params_t>())).ppSize as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_get_address_range_params_t), + "::", + stringify!(ppSize) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeMemGetAddressRange"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_mem_get_address_range_params_t = _ze_mem_get_address_range_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeMemGetAddressRange"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnMemGetAddressRangeCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_mem_get_address_range_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeMemGetIpcHandle"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_mem_get_ipc_handle_params_t { + pub phContext: *mut ze_context_handle_t, + pub pptr: *mut *const ::std::os::raw::c_void, + pub ppIpcHandle: *mut *mut ze_ipc_mem_handle_t, +} +#[test] +fn bindgen_test_layout__ze_mem_get_ipc_handle_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_mem_get_ipc_handle_params_t>(), + 24usize, + concat!("Size of: ", stringify!(_ze_mem_get_ipc_handle_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_mem_get_ipc_handle_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_mem_get_ipc_handle_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_get_ipc_handle_params_t>())).phContext as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_get_ipc_handle_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_get_ipc_handle_params_t>())).pptr as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_get_ipc_handle_params_t), + "::", + stringify!(pptr) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_get_ipc_handle_params_t>())).ppIpcHandle as *const _ + as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_get_ipc_handle_params_t), + "::", + stringify!(ppIpcHandle) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeMemGetIpcHandle"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_mem_get_ipc_handle_params_t = _ze_mem_get_ipc_handle_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeMemGetIpcHandle"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnMemGetIpcHandleCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_mem_get_ipc_handle_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeMemOpenIpcHandle"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_mem_open_ipc_handle_params_t { + pub phContext: *mut ze_context_handle_t, + pub phDevice: *mut ze_device_handle_t, + pub phandle: *mut ze_ipc_mem_handle_t, + pub pflags: *mut ze_ipc_memory_flags_t, + pub ppptr: *mut *mut *mut ::std::os::raw::c_void, +} +#[test] +fn bindgen_test_layout__ze_mem_open_ipc_handle_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_mem_open_ipc_handle_params_t>(), + 40usize, + concat!("Size of: ", stringify!(_ze_mem_open_ipc_handle_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_mem_open_ipc_handle_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_mem_open_ipc_handle_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_open_ipc_handle_params_t>())).phContext as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_open_ipc_handle_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_open_ipc_handle_params_t>())).phDevice as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_open_ipc_handle_params_t), + "::", + stringify!(phDevice) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_open_ipc_handle_params_t>())).phandle as *const _ + as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_open_ipc_handle_params_t), + "::", + stringify!(phandle) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_open_ipc_handle_params_t>())).pflags as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_open_ipc_handle_params_t), + "::", + stringify!(pflags) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_open_ipc_handle_params_t>())).ppptr as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_open_ipc_handle_params_t), + "::", + stringify!(ppptr) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeMemOpenIpcHandle"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_mem_open_ipc_handle_params_t = _ze_mem_open_ipc_handle_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeMemOpenIpcHandle"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnMemOpenIpcHandleCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_mem_open_ipc_handle_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeMemCloseIpcHandle"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_mem_close_ipc_handle_params_t { + pub phContext: *mut ze_context_handle_t, + pub pptr: *mut *const ::std::os::raw::c_void, +} +#[test] +fn bindgen_test_layout__ze_mem_close_ipc_handle_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_mem_close_ipc_handle_params_t>(), + 16usize, + concat!("Size of: ", stringify!(_ze_mem_close_ipc_handle_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_mem_close_ipc_handle_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_mem_close_ipc_handle_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_close_ipc_handle_params_t>())).phContext as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_close_ipc_handle_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_close_ipc_handle_params_t>())).pptr as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_close_ipc_handle_params_t), + "::", + stringify!(pptr) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeMemCloseIpcHandle"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_mem_close_ipc_handle_params_t = _ze_mem_close_ipc_handle_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeMemCloseIpcHandle"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnMemCloseIpcHandleCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_mem_close_ipc_handle_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Table of Mem callback functions pointers"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_mem_callbacks_t { + pub pfnAllocSharedCb: ze_pfnMemAllocSharedCb_t, + pub pfnAllocDeviceCb: ze_pfnMemAllocDeviceCb_t, + pub pfnAllocHostCb: ze_pfnMemAllocHostCb_t, + pub pfnFreeCb: ze_pfnMemFreeCb_t, + pub pfnGetAllocPropertiesCb: ze_pfnMemGetAllocPropertiesCb_t, + pub pfnGetAddressRangeCb: ze_pfnMemGetAddressRangeCb_t, + pub pfnGetIpcHandleCb: ze_pfnMemGetIpcHandleCb_t, + pub pfnOpenIpcHandleCb: ze_pfnMemOpenIpcHandleCb_t, + pub pfnCloseIpcHandleCb: ze_pfnMemCloseIpcHandleCb_t, +} +#[test] +fn bindgen_test_layout__ze_mem_callbacks_t() { + assert_eq!( + ::std::mem::size_of::<_ze_mem_callbacks_t>(), + 72usize, + concat!("Size of: ", stringify!(_ze_mem_callbacks_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_mem_callbacks_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_mem_callbacks_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_callbacks_t>())).pfnAllocSharedCb as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_callbacks_t), + "::", + stringify!(pfnAllocSharedCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_callbacks_t>())).pfnAllocDeviceCb as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_callbacks_t), + "::", + stringify!(pfnAllocDeviceCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_callbacks_t>())).pfnAllocHostCb as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_callbacks_t), + "::", + stringify!(pfnAllocHostCb) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_mem_callbacks_t>())).pfnFreeCb as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_callbacks_t), + "::", + stringify!(pfnFreeCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_callbacks_t>())).pfnGetAllocPropertiesCb as *const _ + as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_callbacks_t), + "::", + stringify!(pfnGetAllocPropertiesCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_callbacks_t>())).pfnGetAddressRangeCb as *const _ + as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_callbacks_t), + "::", + stringify!(pfnGetAddressRangeCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_callbacks_t>())).pfnGetIpcHandleCb as *const _ as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_callbacks_t), + "::", + stringify!(pfnGetIpcHandleCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_callbacks_t>())).pfnOpenIpcHandleCb as *const _ as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_callbacks_t), + "::", + stringify!(pfnOpenIpcHandleCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_mem_callbacks_t>())).pfnCloseIpcHandleCb as *const _ as usize + }, + 64usize, + concat!( + "Offset of field: ", + stringify!(_ze_mem_callbacks_t), + "::", + stringify!(pfnCloseIpcHandleCb) + ) + ); +} +#[doc = ""] +#[doc = " @brief Table of Mem callback functions pointers"] +pub type ze_mem_callbacks_t = _ze_mem_callbacks_t; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeVirtualMemReserve"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_virtual_mem_reserve_params_t { + pub phContext: *mut ze_context_handle_t, + pub ppStart: *mut *const ::std::os::raw::c_void, + pub psize: *mut usize, + pub ppptr: *mut *mut *mut ::std::os::raw::c_void, +} +#[test] +fn bindgen_test_layout__ze_virtual_mem_reserve_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_virtual_mem_reserve_params_t>(), + 32usize, + concat!("Size of: ", stringify!(_ze_virtual_mem_reserve_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_virtual_mem_reserve_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_virtual_mem_reserve_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_reserve_params_t>())).phContext as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_reserve_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_reserve_params_t>())).ppStart as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_reserve_params_t), + "::", + stringify!(ppStart) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_reserve_params_t>())).psize as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_reserve_params_t), + "::", + stringify!(psize) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_reserve_params_t>())).ppptr as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_reserve_params_t), + "::", + stringify!(ppptr) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeVirtualMemReserve"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_virtual_mem_reserve_params_t = _ze_virtual_mem_reserve_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeVirtualMemReserve"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnVirtualMemReserveCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_virtual_mem_reserve_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeVirtualMemFree"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_virtual_mem_free_params_t { + pub phContext: *mut ze_context_handle_t, + pub pptr: *mut *const ::std::os::raw::c_void, + pub psize: *mut usize, +} +#[test] +fn bindgen_test_layout__ze_virtual_mem_free_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_virtual_mem_free_params_t>(), + 24usize, + concat!("Size of: ", stringify!(_ze_virtual_mem_free_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_virtual_mem_free_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_virtual_mem_free_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_free_params_t>())).phContext as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_free_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_free_params_t>())).pptr as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_free_params_t), + "::", + stringify!(pptr) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_free_params_t>())).psize as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_free_params_t), + "::", + stringify!(psize) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeVirtualMemFree"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_virtual_mem_free_params_t = _ze_virtual_mem_free_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeVirtualMemFree"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnVirtualMemFreeCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_virtual_mem_free_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeVirtualMemQueryPageSize"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_virtual_mem_query_page_size_params_t { + pub phContext: *mut ze_context_handle_t, + pub phDevice: *mut ze_device_handle_t, + pub psize: *mut usize, + pub ppagesize: *mut *mut usize, +} +#[test] +fn bindgen_test_layout__ze_virtual_mem_query_page_size_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_virtual_mem_query_page_size_params_t>(), + 32usize, + concat!( + "Size of: ", + stringify!(_ze_virtual_mem_query_page_size_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_virtual_mem_query_page_size_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_virtual_mem_query_page_size_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_query_page_size_params_t>())).phContext + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_query_page_size_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_query_page_size_params_t>())).phDevice + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_query_page_size_params_t), + "::", + stringify!(phDevice) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_query_page_size_params_t>())).psize as *const _ + as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_query_page_size_params_t), + "::", + stringify!(psize) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_query_page_size_params_t>())).ppagesize + as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_query_page_size_params_t), + "::", + stringify!(ppagesize) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeVirtualMemQueryPageSize"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_virtual_mem_query_page_size_params_t = _ze_virtual_mem_query_page_size_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeVirtualMemQueryPageSize"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnVirtualMemQueryPageSizeCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_virtual_mem_query_page_size_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeVirtualMemMap"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_virtual_mem_map_params_t { + pub phContext: *mut ze_context_handle_t, + pub pptr: *mut *const ::std::os::raw::c_void, + pub psize: *mut usize, + pub phPhysicalMemory: *mut ze_physical_mem_handle_t, + pub poffset: *mut usize, + pub paccess: *mut ze_memory_access_attribute_t, +} +#[test] +fn bindgen_test_layout__ze_virtual_mem_map_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_virtual_mem_map_params_t>(), + 48usize, + concat!("Size of: ", stringify!(_ze_virtual_mem_map_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_virtual_mem_map_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_virtual_mem_map_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_map_params_t>())).phContext as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_map_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_map_params_t>())).pptr as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_map_params_t), + "::", + stringify!(pptr) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_map_params_t>())).psize as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_map_params_t), + "::", + stringify!(psize) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_map_params_t>())).phPhysicalMemory as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_map_params_t), + "::", + stringify!(phPhysicalMemory) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_map_params_t>())).poffset as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_map_params_t), + "::", + stringify!(poffset) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_map_params_t>())).paccess as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_map_params_t), + "::", + stringify!(paccess) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeVirtualMemMap"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_virtual_mem_map_params_t = _ze_virtual_mem_map_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeVirtualMemMap"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnVirtualMemMapCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_virtual_mem_map_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeVirtualMemUnmap"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_virtual_mem_unmap_params_t { + pub phContext: *mut ze_context_handle_t, + pub pptr: *mut *const ::std::os::raw::c_void, + pub psize: *mut usize, +} +#[test] +fn bindgen_test_layout__ze_virtual_mem_unmap_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_virtual_mem_unmap_params_t>(), + 24usize, + concat!("Size of: ", stringify!(_ze_virtual_mem_unmap_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_virtual_mem_unmap_params_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_virtual_mem_unmap_params_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_unmap_params_t>())).phContext as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_unmap_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_unmap_params_t>())).pptr as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_unmap_params_t), + "::", + stringify!(pptr) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_unmap_params_t>())).psize as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_unmap_params_t), + "::", + stringify!(psize) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeVirtualMemUnmap"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_virtual_mem_unmap_params_t = _ze_virtual_mem_unmap_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeVirtualMemUnmap"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnVirtualMemUnmapCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_virtual_mem_unmap_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeVirtualMemSetAccessAttribute"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_virtual_mem_set_access_attribute_params_t { + pub phContext: *mut ze_context_handle_t, + pub pptr: *mut *const ::std::os::raw::c_void, + pub psize: *mut usize, + pub paccess: *mut ze_memory_access_attribute_t, +} +#[test] +fn bindgen_test_layout__ze_virtual_mem_set_access_attribute_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_virtual_mem_set_access_attribute_params_t>(), + 32usize, + concat!( + "Size of: ", + stringify!(_ze_virtual_mem_set_access_attribute_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_virtual_mem_set_access_attribute_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_virtual_mem_set_access_attribute_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_set_access_attribute_params_t>())).phContext + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_set_access_attribute_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_set_access_attribute_params_t>())).pptr + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_set_access_attribute_params_t), + "::", + stringify!(pptr) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_set_access_attribute_params_t>())).psize + as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_set_access_attribute_params_t), + "::", + stringify!(psize) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_set_access_attribute_params_t>())).paccess + as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_set_access_attribute_params_t), + "::", + stringify!(paccess) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeVirtualMemSetAccessAttribute"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_virtual_mem_set_access_attribute_params_t = + _ze_virtual_mem_set_access_attribute_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeVirtualMemSetAccessAttribute"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnVirtualMemSetAccessAttributeCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_virtual_mem_set_access_attribute_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Callback function parameters for zeVirtualMemGetAccessAttribute"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_virtual_mem_get_access_attribute_params_t { + pub phContext: *mut ze_context_handle_t, + pub pptr: *mut *const ::std::os::raw::c_void, + pub psize: *mut usize, + pub paccess: *mut *mut ze_memory_access_attribute_t, + pub poutSize: *mut *mut usize, +} +#[test] +fn bindgen_test_layout__ze_virtual_mem_get_access_attribute_params_t() { + assert_eq!( + ::std::mem::size_of::<_ze_virtual_mem_get_access_attribute_params_t>(), + 40usize, + concat!( + "Size of: ", + stringify!(_ze_virtual_mem_get_access_attribute_params_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_ze_virtual_mem_get_access_attribute_params_t>(), + 8usize, + concat!( + "Alignment of ", + stringify!(_ze_virtual_mem_get_access_attribute_params_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_get_access_attribute_params_t>())).phContext + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_get_access_attribute_params_t), + "::", + stringify!(phContext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_get_access_attribute_params_t>())).pptr + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_get_access_attribute_params_t), + "::", + stringify!(pptr) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_get_access_attribute_params_t>())).psize + as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_get_access_attribute_params_t), + "::", + stringify!(psize) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_get_access_attribute_params_t>())).paccess + as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_get_access_attribute_params_t), + "::", + stringify!(paccess) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_get_access_attribute_params_t>())).poutSize + as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_get_access_attribute_params_t), + "::", + stringify!(poutSize) + ) + ); +} +#[doc = ""] +#[doc = " @brief Callback function parameters for zeVirtualMemGetAccessAttribute"] +#[doc = " @details Each entry is a pointer to the parameter passed to the function;"] +#[doc = " allowing the callback the ability to modify the parameter's value"] +pub type ze_virtual_mem_get_access_attribute_params_t = + _ze_virtual_mem_get_access_attribute_params_t; +#[doc = ""] +#[doc = " @brief Callback function-pointer for zeVirtualMemGetAccessAttribute"] +#[doc = " @param[in] params Parameters passed to this instance"] +#[doc = " @param[in] result Return value"] +#[doc = " @param[in] pTracerUserData Per-Tracer user data"] +#[doc = " @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data"] +pub type ze_pfnVirtualMemGetAccessAttributeCb_t = ::std::option::Option< + unsafe extern "C" fn( + params: *mut ze_virtual_mem_get_access_attribute_params_t, + result: ze_result_t, + pTracerUserData: *mut ::std::os::raw::c_void, + ppTracerInstanceUserData: *mut *mut ::std::os::raw::c_void, + ), +>; +#[doc = ""] +#[doc = " @brief Table of VirtualMem callback functions pointers"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_virtual_mem_callbacks_t { + pub pfnReserveCb: ze_pfnVirtualMemReserveCb_t, + pub pfnFreeCb: ze_pfnVirtualMemFreeCb_t, + pub pfnQueryPageSizeCb: ze_pfnVirtualMemQueryPageSizeCb_t, + pub pfnMapCb: ze_pfnVirtualMemMapCb_t, + pub pfnUnmapCb: ze_pfnVirtualMemUnmapCb_t, + pub pfnSetAccessAttributeCb: ze_pfnVirtualMemSetAccessAttributeCb_t, + pub pfnGetAccessAttributeCb: ze_pfnVirtualMemGetAccessAttributeCb_t, +} +#[test] +fn bindgen_test_layout__ze_virtual_mem_callbacks_t() { + assert_eq!( + ::std::mem::size_of::<_ze_virtual_mem_callbacks_t>(), + 56usize, + concat!("Size of: ", stringify!(_ze_virtual_mem_callbacks_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_virtual_mem_callbacks_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_virtual_mem_callbacks_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_callbacks_t>())).pfnReserveCb as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_callbacks_t), + "::", + stringify!(pfnReserveCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_callbacks_t>())).pfnFreeCb as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_callbacks_t), + "::", + stringify!(pfnFreeCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_callbacks_t>())).pfnQueryPageSizeCb as *const _ + as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_callbacks_t), + "::", + stringify!(pfnQueryPageSizeCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_callbacks_t>())).pfnMapCb as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_callbacks_t), + "::", + stringify!(pfnMapCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_callbacks_t>())).pfnUnmapCb as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_callbacks_t), + "::", + stringify!(pfnUnmapCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_callbacks_t>())).pfnSetAccessAttributeCb + as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_callbacks_t), + "::", + stringify!(pfnSetAccessAttributeCb) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_virtual_mem_callbacks_t>())).pfnGetAccessAttributeCb + as *const _ as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_ze_virtual_mem_callbacks_t), + "::", + stringify!(pfnGetAccessAttributeCb) + ) + ); +} +#[doc = ""] +#[doc = " @brief Table of VirtualMem callback functions pointers"] +pub type ze_virtual_mem_callbacks_t = _ze_virtual_mem_callbacks_t; +#[doc = ""] +#[doc = " @brief Container for all callbacks"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_callbacks_t { + pub Global: ze_global_callbacks_t, + pub Driver: ze_driver_callbacks_t, + pub Device: ze_device_callbacks_t, + pub Context: ze_context_callbacks_t, + pub CommandQueue: ze_command_queue_callbacks_t, + pub CommandList: ze_command_list_callbacks_t, + pub Fence: ze_fence_callbacks_t, + pub EventPool: ze_event_pool_callbacks_t, + pub Event: ze_event_callbacks_t, + pub Image: ze_image_callbacks_t, + pub Module: ze_module_callbacks_t, + pub ModuleBuildLog: ze_module_build_log_callbacks_t, + pub Kernel: ze_kernel_callbacks_t, + pub Sampler: ze_sampler_callbacks_t, + pub PhysicalMem: ze_physical_mem_callbacks_t, + pub Mem: ze_mem_callbacks_t, + pub VirtualMem: ze_virtual_mem_callbacks_t, +} +#[test] +fn bindgen_test_layout__ze_callbacks_t() { + assert_eq!( + ::std::mem::size_of::<_ze_callbacks_t>(), + 960usize, + concat!("Size of: ", stringify!(_ze_callbacks_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_callbacks_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_callbacks_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_callbacks_t>())).Global as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_callbacks_t), + "::", + stringify!(Global) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_callbacks_t>())).Driver as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_callbacks_t), + "::", + stringify!(Driver) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_callbacks_t>())).Device as *const _ as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_ze_callbacks_t), + "::", + stringify!(Device) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_callbacks_t>())).Context as *const _ as usize }, + 160usize, + concat!( + "Offset of field: ", + stringify!(_ze_callbacks_t), + "::", + stringify!(Context) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_callbacks_t>())).CommandQueue as *const _ as usize }, + 224usize, + concat!( + "Offset of field: ", + stringify!(_ze_callbacks_t), + "::", + stringify!(CommandQueue) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_callbacks_t>())).CommandList as *const _ as usize }, + 256usize, + concat!( + "Offset of field: ", + stringify!(_ze_callbacks_t), + "::", + stringify!(CommandList) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_callbacks_t>())).Fence as *const _ as usize }, + 464usize, + concat!( + "Offset of field: ", + stringify!(_ze_callbacks_t), + "::", + stringify!(Fence) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_callbacks_t>())).EventPool as *const _ as usize }, + 504usize, + concat!( + "Offset of field: ", + stringify!(_ze_callbacks_t), + "::", + stringify!(EventPool) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_callbacks_t>())).Event as *const _ as usize }, + 544usize, + concat!( + "Offset of field: ", + stringify!(_ze_callbacks_t), + "::", + stringify!(Event) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_callbacks_t>())).Image as *const _ as usize }, + 600usize, + concat!( + "Offset of field: ", + stringify!(_ze_callbacks_t), + "::", + stringify!(Image) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_callbacks_t>())).Module as *const _ as usize }, + 624usize, + concat!( + "Offset of field: ", + stringify!(_ze_callbacks_t), + "::", + stringify!(Module) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_callbacks_t>())).ModuleBuildLog as *const _ as usize }, + 688usize, + concat!( + "Offset of field: ", + stringify!(_ze_callbacks_t), + "::", + stringify!(ModuleBuildLog) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_callbacks_t>())).Kernel as *const _ as usize }, + 704usize, + concat!( + "Offset of field: ", + stringify!(_ze_callbacks_t), + "::", + stringify!(Kernel) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_callbacks_t>())).Sampler as *const _ as usize }, + 800usize, + concat!( + "Offset of field: ", + stringify!(_ze_callbacks_t), + "::", + stringify!(Sampler) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_callbacks_t>())).PhysicalMem as *const _ as usize }, + 816usize, + concat!( + "Offset of field: ", + stringify!(_ze_callbacks_t), + "::", + stringify!(PhysicalMem) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_callbacks_t>())).Mem as *const _ as usize }, + 832usize, + concat!( + "Offset of field: ", + stringify!(_ze_callbacks_t), + "::", + stringify!(Mem) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_ze_callbacks_t>())).VirtualMem as *const _ as usize }, + 904usize, + concat!( + "Offset of field: ", + stringify!(_ze_callbacks_t), + "::", + stringify!(VirtualMem) + ) + ); +} +#[doc = ""] +#[doc = " @brief Container for all callbacks"] +pub type ze_callbacks_t = _ze_callbacks_t; +impl _ze_module_program_exp_version_t { + #[doc = "< version 1.0"] + pub const ZE_MODULE_PROGRAM_EXP_VERSION_1_0: _ze_module_program_exp_version_t = + _ze_module_program_exp_version_t(65536); +} +impl _ze_module_program_exp_version_t { + #[doc = "< latest known version"] + pub const ZE_MODULE_PROGRAM_EXP_VERSION_CURRENT: _ze_module_program_exp_version_t = + _ze_module_program_exp_version_t(65536); +} +impl _ze_module_program_exp_version_t { + pub const ZE_MODULE_PROGRAM_EXP_VERSION_FORCE_UINT32: _ze_module_program_exp_version_t = + _ze_module_program_exp_version_t(2147483647); +} +#[repr(transparent)] +#[doc = ""] +#[doc = " @brief Module Program Extension Version(s)"] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_module_program_exp_version_t(pub ::std::os::raw::c_uint); +#[doc = ""] +#[doc = " @brief Module Program Extension Version(s)"] +pub use self::_ze_module_program_exp_version_t as ze_module_program_exp_version_t; +#[doc = ""] +#[doc = " @brief Module extended descriptor to support multiple input modules."] +#[doc = ""] +#[doc = " @details"] +#[doc = " - Implementation must support ::ZE_experimental_module_program extension"] +#[doc = " - pInputModules, pBuildFlags, and pConstants from ::ze_module_desc_t is"] +#[doc = " ignored."] +#[doc = " - Format in ::ze_module_desc_t needs to be set to"] +#[doc = " ::ZE_MODULE_FORMAT_IL_SPIRV."] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ze_module_program_exp_desc_t { + #[doc = "< [in] type of this structure"] + pub stype: ze_structure_type_t, + #[doc = "< [in][optional] pointer to extension-specific structure"] + pub pNext: *const ::std::os::raw::c_void, + #[doc = "< [in] Count of input modules"] + pub count: u32, + #[doc = "< [in][range(0, count)] sizes of each input IL module in pInputModules."] + pub inputSizes: *const usize, + #[doc = "< [in][range(0, count)] pointer to an array of IL (e.g. SPIR-V modules)."] + #[doc = "< Valid only for SPIR-V input."] + pub pInputModules: *mut *const u8, + #[doc = "< [in][optional][range(0, count)] array of strings containing build"] + #[doc = "< flags. See pBuildFlags in ::ze_module_desc_t."] + pub pBuildFlags: *mut *const ::std::os::raw::c_char, + #[doc = "< [in][optional][range(0, count)] pointer to array of specialization"] + #[doc = "< constant strings. Valid only for SPIR-V input. This must be set to"] + #[doc = "< nullptr if no specialization constants are provided."] + pub pConstants: *mut *const ze_module_constants_t, +} +#[test] +fn bindgen_test_layout__ze_module_program_exp_desc_t() { + assert_eq!( + ::std::mem::size_of::<_ze_module_program_exp_desc_t>(), + 56usize, + concat!("Size of: ", stringify!(_ze_module_program_exp_desc_t)) + ); + assert_eq!( + ::std::mem::align_of::<_ze_module_program_exp_desc_t>(), + 8usize, + concat!("Alignment of ", stringify!(_ze_module_program_exp_desc_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_program_exp_desc_t>())).stype as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_program_exp_desc_t), + "::", + stringify!(stype) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_program_exp_desc_t>())).pNext as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_program_exp_desc_t), + "::", + stringify!(pNext) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_program_exp_desc_t>())).count as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_program_exp_desc_t), + "::", + stringify!(count) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_program_exp_desc_t>())).inputSizes as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_program_exp_desc_t), + "::", + stringify!(inputSizes) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_program_exp_desc_t>())).pInputModules as *const _ + as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_program_exp_desc_t), + "::", + stringify!(pInputModules) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_program_exp_desc_t>())).pBuildFlags as *const _ + as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_program_exp_desc_t), + "::", + stringify!(pBuildFlags) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_ze_module_program_exp_desc_t>())).pConstants as *const _ + as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_ze_module_program_exp_desc_t), + "::", + stringify!(pConstants) + ) + ); +} +#[doc = ""] +#[doc = " @brief Module extended descriptor to support multiple input modules."] +#[doc = ""] +#[doc = " @details"] +#[doc = " - Implementation must support ::ZE_experimental_module_program extension"] +#[doc = " - pInputModules, pBuildFlags, and pConstants from ::ze_module_desc_t is"] +#[doc = " ignored."] +#[doc = " - Format in ::ze_module_desc_t needs to be set to"] +#[doc = " ::ZE_MODULE_FORMAT_IL_SPIRV."] +pub type ze_module_program_exp_desc_t = _ze_module_program_exp_desc_t; +impl _ze_global_offset_exp_version_t { + #[doc = "< version 1.0"] + pub const ZE_GLOBAL_OFFSET_EXP_VERSION_1_0: _ze_global_offset_exp_version_t = + _ze_global_offset_exp_version_t(65536); +} +impl _ze_global_offset_exp_version_t { + #[doc = "< latest known version"] + pub const ZE_GLOBAL_OFFSET_EXP_VERSION_CURRENT: _ze_global_offset_exp_version_t = + _ze_global_offset_exp_version_t(65536); +} +impl _ze_global_offset_exp_version_t { + pub const ZE_GLOBAL_OFFSET_EXP_VERSION_FORCE_UINT32: _ze_global_offset_exp_version_t = + _ze_global_offset_exp_version_t(2147483647); +} +#[repr(transparent)] +#[doc = ""] +#[doc = " @brief Global work offset Extension Version(s)"] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _ze_global_offset_exp_version_t(pub ::std::os::raw::c_uint); +#[doc = ""] +#[doc = " @brief Global work offset Extension Version(s)"] +pub use self::_ze_global_offset_exp_version_t as ze_global_offset_exp_version_t; |