1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607
#[doc = "<s>Vulkan Manual Page</s> · Constant"] #[doc(alias = "VK_KHR_PIPELINE_EXECUTABLE_PROPERTIES_SPEC_VERSION")] pub const KHR_PIPELINE_EXECUTABLE_PROPERTIES_SPEC_VERSION: u32 = 1; #[doc = "<s>Vulkan Manual Page</s> · Constant"] #[doc(alias = "VK_KHR_PIPELINE_EXECUTABLE_PROPERTIES_EXTENSION_NAME")] pub const KHR_PIPELINE_EXECUTABLE_PROPERTIES_EXTENSION_NAME: *const std::os::raw::c_char = crate::cstr!("VK_KHR_pipeline_executable_properties"); #[doc = "<s>Vulkan Manual Page</s> · Constant"] pub const FN_GET_PIPELINE_EXECUTABLE_PROPERTIES_KHR: *const std::os::raw::c_char = crate::cstr!("vkGetPipelineExecutablePropertiesKHR"); #[doc = "<s>Vulkan Manual Page</s> · Constant"] pub const FN_GET_PIPELINE_EXECUTABLE_STATISTICS_KHR: *const std::os::raw::c_char = crate::cstr!("vkGetPipelineExecutableStatisticsKHR"); #[doc = "<s>Vulkan Manual Page</s> · Constant"] pub const FN_GET_PIPELINE_EXECUTABLE_INTERNAL_REPRESENTATIONS_KHR: *const std::os::raw::c_char = crate::cstr!("vkGetPipelineExecutableInternalRepresentationsKHR"); #[doc = "Provided by [`crate::extensions::khr_pipeline_executable_properties`]"] impl crate::vk1_0::PipelineCreateFlagBits { pub const CAPTURE_STATISTICS_KHR: Self = Self(64); pub const CAPTURE_INTERNAL_REPRESENTATIONS_KHR: Self = Self(128); } #[doc = "Provided by [`crate::extensions::khr_pipeline_executable_properties`]"] impl crate::vk1_0::StructureType { pub const PHYSICAL_DEVICE_PIPELINE_EXECUTABLE_PROPERTIES_FEATURES_KHR: Self = Self(1000269000); pub const PIPELINE_INFO_KHR: Self = Self(1000269001); pub const PIPELINE_EXECUTABLE_PROPERTIES_KHR: Self = Self(1000269002); pub const PIPELINE_EXECUTABLE_INFO_KHR: Self = Self(1000269003); pub const PIPELINE_EXECUTABLE_STATISTIC_KHR: Self = Self(1000269004); pub const PIPELINE_EXECUTABLE_INTERNAL_REPRESENTATION_KHR: Self = Self(1000269005); } #[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPipelineExecutableStatisticFormatKHR.html) · Enum"] #[doc(alias = "VkPipelineExecutableStatisticFormatKHR")] #[derive(Copy, Clone, PartialEq, Eq, Hash, Default, Ord, PartialOrd)] #[repr(transparent)] pub struct PipelineExecutableStatisticFormatKHR(pub i32); impl std::fmt::Debug for PipelineExecutableStatisticFormatKHR { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.write_str(match self { &Self::BOOL32_KHR => "BOOL32_KHR", &Self::INT64_KHR => "INT64_KHR", &Self::UINT64_KHR => "UINT64_KHR", &Self::FLOAT64_KHR => "FLOAT64_KHR", _ => "(unknown variant)", }) } } #[doc = "Provided by [`crate::extensions::khr_pipeline_executable_properties`]"] impl crate::extensions::khr_pipeline_executable_properties::PipelineExecutableStatisticFormatKHR { pub const BOOL32_KHR: Self = Self(0); pub const INT64_KHR: Self = Self(1); pub const UINT64_KHR: Self = Self(2); pub const FLOAT64_KHR: Self = Self(3); } #[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkGetPipelineExecutablePropertiesKHR.html) · Function"] #[allow(non_camel_case_types)] pub type PFN_vkGetPipelineExecutablePropertiesKHR = unsafe extern "system" fn(device: crate::vk1_0::Device, p_pipeline_info: *const crate::extensions::khr_pipeline_executable_properties::PipelineInfoKHR, p_executable_count: *mut u32, p_properties: *mut crate::extensions::khr_pipeline_executable_properties::PipelineExecutablePropertiesKHR) -> crate::vk1_0::Result; #[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkGetPipelineExecutableStatisticsKHR.html) · Function"] #[allow(non_camel_case_types)] pub type PFN_vkGetPipelineExecutableStatisticsKHR = unsafe extern "system" fn(device: crate::vk1_0::Device, p_executable_info: *const crate::extensions::khr_pipeline_executable_properties::PipelineExecutableInfoKHR, p_statistic_count: *mut u32, p_statistics: *mut crate::extensions::khr_pipeline_executable_properties::PipelineExecutableStatisticKHR) -> crate::vk1_0::Result; #[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkGetPipelineExecutableInternalRepresentationsKHR.html) · Function"] #[allow(non_camel_case_types)] pub type PFN_vkGetPipelineExecutableInternalRepresentationsKHR = unsafe extern "system" fn(device: crate::vk1_0::Device, p_executable_info: *const crate::extensions::khr_pipeline_executable_properties::PipelineExecutableInfoKHR, p_internal_representation_count: *mut u32, p_internal_representations: *mut crate::extensions::khr_pipeline_executable_properties::PipelineExecutableInternalRepresentationKHR) -> crate::vk1_0::Result; impl<'a> crate::ExtendableFromConst<'a, PhysicalDevicePipelineExecutablePropertiesFeaturesKHR> for crate::vk1_0::DeviceCreateInfoBuilder<'a> {} impl<'a> crate::ExtendableFromConst<'a, PhysicalDevicePipelineExecutablePropertiesFeaturesKHRBuilder<'_>> for crate::vk1_0::DeviceCreateInfoBuilder<'a> {} impl<'a> crate::ExtendableFromMut<'a, PhysicalDevicePipelineExecutablePropertiesFeaturesKHR> for crate::vk1_1::PhysicalDeviceFeatures2Builder<'a> {} impl<'a> crate::ExtendableFromMut<'a, PhysicalDevicePipelineExecutablePropertiesFeaturesKHRBuilder<'_>> for crate::vk1_1::PhysicalDeviceFeatures2Builder<'a> {} #[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR.html) · Structure"] #[doc(alias = "VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR")] #[derive(Copy, Clone)] #[repr(C)] pub struct PhysicalDevicePipelineExecutablePropertiesFeaturesKHR { pub s_type: crate::vk1_0::StructureType, pub p_next: *mut std::ffi::c_void, pub pipeline_executable_info: crate::vk1_0::Bool32, } impl Default for PhysicalDevicePipelineExecutablePropertiesFeaturesKHR { fn default() -> Self { Self { s_type: crate::vk1_0::StructureType::PHYSICAL_DEVICE_PIPELINE_EXECUTABLE_PROPERTIES_FEATURES_KHR, p_next: std::ptr::null_mut(), pipeline_executable_info: Default::default() } } } impl std::fmt::Debug for PhysicalDevicePipelineExecutablePropertiesFeaturesKHR { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PhysicalDevicePipelineExecutablePropertiesFeaturesKHR").field("s_type", &self.s_type).field("p_next", &self.p_next).field("pipeline_executable_info", &(self.pipeline_executable_info != 0)).finish() } } impl PhysicalDevicePipelineExecutablePropertiesFeaturesKHR { #[inline] pub fn into_builder<'a>(self) -> PhysicalDevicePipelineExecutablePropertiesFeaturesKHRBuilder<'a> { PhysicalDevicePipelineExecutablePropertiesFeaturesKHRBuilder(self, std::marker::PhantomData) } } #[derive(Copy, Clone)] #[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR.html) · Builder of [`PhysicalDevicePipelineExecutablePropertiesFeaturesKHR`]"] #[repr(transparent)] pub struct PhysicalDevicePipelineExecutablePropertiesFeaturesKHRBuilder<'a>(PhysicalDevicePipelineExecutablePropertiesFeaturesKHR, std::marker::PhantomData<&'a ()>); impl<'a> PhysicalDevicePipelineExecutablePropertiesFeaturesKHRBuilder<'a> { #[inline] pub fn new() -> PhysicalDevicePipelineExecutablePropertiesFeaturesKHRBuilder<'a> { PhysicalDevicePipelineExecutablePropertiesFeaturesKHRBuilder(Default::default(), std::marker::PhantomData) } #[inline] pub fn pipeline_executable_info(mut self, pipeline_executable_info: bool) -> Self { self.0.pipeline_executable_info = pipeline_executable_info as _; self } #[inline] #[doc = r" Discards all lifetime information."] #[doc = r" Use the `Deref` and `DerefMut` implementations if possible."] pub fn build(self) -> PhysicalDevicePipelineExecutablePropertiesFeaturesKHR { self.0 } } impl<'a> std::default::Default for PhysicalDevicePipelineExecutablePropertiesFeaturesKHRBuilder<'a> { fn default() -> PhysicalDevicePipelineExecutablePropertiesFeaturesKHRBuilder<'a> { Self::new() } } impl<'a> std::fmt::Debug for PhysicalDevicePipelineExecutablePropertiesFeaturesKHRBuilder<'a> { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { std::fmt::Debug::fmt(&self.0, f) } } impl<'a> std::ops::Deref for PhysicalDevicePipelineExecutablePropertiesFeaturesKHRBuilder<'a> { type Target = PhysicalDevicePipelineExecutablePropertiesFeaturesKHR; fn deref(&self) -> &Self::Target { &self.0 } } impl<'a> std::ops::DerefMut for PhysicalDevicePipelineExecutablePropertiesFeaturesKHRBuilder<'a> { fn deref_mut(&mut self) -> &mut Self::Target { &mut self.0 } } #[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPipelineInfoKHR.html) · Structure"] #[doc(alias = "VkPipelineInfoKHR")] #[derive(Copy, Clone)] #[repr(C)] pub struct PipelineInfoKHR { pub s_type: crate::vk1_0::StructureType, pub p_next: *const std::ffi::c_void, pub pipeline: crate::vk1_0::Pipeline, } impl Default for PipelineInfoKHR { fn default() -> Self { Self { s_type: crate::vk1_0::StructureType::PIPELINE_INFO_KHR, p_next: std::ptr::null(), pipeline: Default::default() } } } impl std::fmt::Debug for PipelineInfoKHR { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PipelineInfoKHR").field("s_type", &self.s_type).field("p_next", &self.p_next).field("pipeline", &self.pipeline).finish() } } impl PipelineInfoKHR { #[inline] pub fn into_builder<'a>(self) -> PipelineInfoKHRBuilder<'a> { PipelineInfoKHRBuilder(self, std::marker::PhantomData) } } #[derive(Copy, Clone)] #[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPipelineInfoKHR.html) · Builder of [`PipelineInfoKHR`]"] #[repr(transparent)] pub struct PipelineInfoKHRBuilder<'a>(PipelineInfoKHR, std::marker::PhantomData<&'a ()>); impl<'a> PipelineInfoKHRBuilder<'a> { #[inline] pub fn new() -> PipelineInfoKHRBuilder<'a> { PipelineInfoKHRBuilder(Default::default(), std::marker::PhantomData) } #[inline] pub fn pipeline(mut self, pipeline: crate::vk1_0::Pipeline) -> Self { self.0.pipeline = pipeline as _; self } #[inline] #[doc = r" Discards all lifetime information."] #[doc = r" Use the `Deref` and `DerefMut` implementations if possible."] pub fn build(self) -> PipelineInfoKHR { self.0 } } impl<'a> std::default::Default for PipelineInfoKHRBuilder<'a> { fn default() -> PipelineInfoKHRBuilder<'a> { Self::new() } } impl<'a> std::fmt::Debug for PipelineInfoKHRBuilder<'a> { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { std::fmt::Debug::fmt(&self.0, f) } } impl<'a> std::ops::Deref for PipelineInfoKHRBuilder<'a> { type Target = PipelineInfoKHR; fn deref(&self) -> &Self::Target { &self.0 } } impl<'a> std::ops::DerefMut for PipelineInfoKHRBuilder<'a> { fn deref_mut(&mut self) -> &mut Self::Target { &mut self.0 } } #[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPipelineExecutablePropertiesKHR.html) · Structure"] #[doc(alias = "VkPipelineExecutablePropertiesKHR")] #[derive(Copy, Clone)] #[repr(C)] pub struct PipelineExecutablePropertiesKHR { pub s_type: crate::vk1_0::StructureType, pub p_next: *mut std::ffi::c_void, pub stages: crate::vk1_0::ShaderStageFlags, pub name: [std::os::raw::c_char; 256], pub description: [std::os::raw::c_char; 256], pub subgroup_size: u32, } impl Default for PipelineExecutablePropertiesKHR { fn default() -> Self { Self { s_type: crate::vk1_0::StructureType::PIPELINE_EXECUTABLE_PROPERTIES_KHR, p_next: std::ptr::null_mut(), stages: Default::default(), name: unsafe { std::mem::zeroed() }, description: unsafe { std::mem::zeroed() }, subgroup_size: Default::default() } } } impl std::fmt::Debug for PipelineExecutablePropertiesKHR { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PipelineExecutablePropertiesKHR").field("s_type", &self.s_type).field("p_next", &self.p_next).field("stages", &self.stages).field("name", unsafe { &std::ffi::CStr::from_ptr(self.name.as_ptr()) }).field("description", unsafe { &std::ffi::CStr::from_ptr(self.description.as_ptr()) }).field("subgroup_size", &self.subgroup_size).finish() } } impl PipelineExecutablePropertiesKHR { #[inline] pub fn into_builder<'a>(self) -> PipelineExecutablePropertiesKHRBuilder<'a> { PipelineExecutablePropertiesKHRBuilder(self, std::marker::PhantomData) } } #[derive(Copy, Clone)] #[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPipelineExecutablePropertiesKHR.html) · Builder of [`PipelineExecutablePropertiesKHR`]"] #[repr(transparent)] pub struct PipelineExecutablePropertiesKHRBuilder<'a>(PipelineExecutablePropertiesKHR, std::marker::PhantomData<&'a ()>); impl<'a> PipelineExecutablePropertiesKHRBuilder<'a> { #[inline] pub fn new() -> PipelineExecutablePropertiesKHRBuilder<'a> { PipelineExecutablePropertiesKHRBuilder(Default::default(), std::marker::PhantomData) } #[inline] pub fn stages(mut self, stages: crate::vk1_0::ShaderStageFlags) -> Self { self.0.stages = stages as _; self } #[inline] pub fn name(mut self, name: [std::os::raw::c_char; 256]) -> Self { self.0.name = name as _; self } #[inline] pub fn description(mut self, description: [std::os::raw::c_char; 256]) -> Self { self.0.description = description as _; self } #[inline] pub fn subgroup_size(mut self, subgroup_size: u32) -> Self { self.0.subgroup_size = subgroup_size as _; self } #[inline] #[doc = r" Discards all lifetime information."] #[doc = r" Use the `Deref` and `DerefMut` implementations if possible."] pub fn build(self) -> PipelineExecutablePropertiesKHR { self.0 } } impl<'a> std::default::Default for PipelineExecutablePropertiesKHRBuilder<'a> { fn default() -> PipelineExecutablePropertiesKHRBuilder<'a> { Self::new() } } impl<'a> std::fmt::Debug for PipelineExecutablePropertiesKHRBuilder<'a> { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { std::fmt::Debug::fmt(&self.0, f) } } impl<'a> std::ops::Deref for PipelineExecutablePropertiesKHRBuilder<'a> { type Target = PipelineExecutablePropertiesKHR; fn deref(&self) -> &Self::Target { &self.0 } } impl<'a> std::ops::DerefMut for PipelineExecutablePropertiesKHRBuilder<'a> { fn deref_mut(&mut self) -> &mut Self::Target { &mut self.0 } } #[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPipelineExecutableInfoKHR.html) · Structure"] #[doc(alias = "VkPipelineExecutableInfoKHR")] #[derive(Copy, Clone)] #[repr(C)] pub struct PipelineExecutableInfoKHR { pub s_type: crate::vk1_0::StructureType, pub p_next: *const std::ffi::c_void, pub pipeline: crate::vk1_0::Pipeline, pub executable_index: u32, } impl Default for PipelineExecutableInfoKHR { fn default() -> Self { Self { s_type: crate::vk1_0::StructureType::PIPELINE_EXECUTABLE_INFO_KHR, p_next: std::ptr::null(), pipeline: Default::default(), executable_index: Default::default() } } } impl std::fmt::Debug for PipelineExecutableInfoKHR { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PipelineExecutableInfoKHR").field("s_type", &self.s_type).field("p_next", &self.p_next).field("pipeline", &self.pipeline).field("executable_index", &self.executable_index).finish() } } impl PipelineExecutableInfoKHR { #[inline] pub fn into_builder<'a>(self) -> PipelineExecutableInfoKHRBuilder<'a> { PipelineExecutableInfoKHRBuilder(self, std::marker::PhantomData) } } #[derive(Copy, Clone)] #[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPipelineExecutableInfoKHR.html) · Builder of [`PipelineExecutableInfoKHR`]"] #[repr(transparent)] pub struct PipelineExecutableInfoKHRBuilder<'a>(PipelineExecutableInfoKHR, std::marker::PhantomData<&'a ()>); impl<'a> PipelineExecutableInfoKHRBuilder<'a> { #[inline] pub fn new() -> PipelineExecutableInfoKHRBuilder<'a> { PipelineExecutableInfoKHRBuilder(Default::default(), std::marker::PhantomData) } #[inline] pub fn pipeline(mut self, pipeline: crate::vk1_0::Pipeline) -> Self { self.0.pipeline = pipeline as _; self } #[inline] pub fn executable_index(mut self, executable_index: u32) -> Self { self.0.executable_index = executable_index as _; self } #[inline] #[doc = r" Discards all lifetime information."] #[doc = r" Use the `Deref` and `DerefMut` implementations if possible."] pub fn build(self) -> PipelineExecutableInfoKHR { self.0 } } impl<'a> std::default::Default for PipelineExecutableInfoKHRBuilder<'a> { fn default() -> PipelineExecutableInfoKHRBuilder<'a> { Self::new() } } impl<'a> std::fmt::Debug for PipelineExecutableInfoKHRBuilder<'a> { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { std::fmt::Debug::fmt(&self.0, f) } } impl<'a> std::ops::Deref for PipelineExecutableInfoKHRBuilder<'a> { type Target = PipelineExecutableInfoKHR; fn deref(&self) -> &Self::Target { &self.0 } } impl<'a> std::ops::DerefMut for PipelineExecutableInfoKHRBuilder<'a> { fn deref_mut(&mut self) -> &mut Self::Target { &mut self.0 } } #[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPipelineExecutableStatisticValueKHR.html) · Structure"] #[doc(alias = "VkPipelineExecutableStatisticValueKHR")] #[derive(Copy, Clone)] #[repr(C)] pub union PipelineExecutableStatisticValueKHR { pub b32: crate::vk1_0::Bool32, pub i64: i64, pub u64: u64, pub f64: std::os::raw::c_double, } impl Default for PipelineExecutableStatisticValueKHR { fn default() -> Self { unsafe { std::mem::zeroed() } } } impl std::fmt::Debug for PipelineExecutableStatisticValueKHR { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PipelineExecutableStatisticValueKHR").finish() } } #[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPipelineExecutableStatisticKHR.html) · Structure"] #[doc(alias = "VkPipelineExecutableStatisticKHR")] #[derive(Copy, Clone)] #[repr(C)] pub struct PipelineExecutableStatisticKHR { pub s_type: crate::vk1_0::StructureType, pub p_next: *mut std::ffi::c_void, pub name: [std::os::raw::c_char; 256], pub description: [std::os::raw::c_char; 256], pub format: crate::extensions::khr_pipeline_executable_properties::PipelineExecutableStatisticFormatKHR, pub value: crate::extensions::khr_pipeline_executable_properties::PipelineExecutableStatisticValueKHR, } impl Default for PipelineExecutableStatisticKHR { fn default() -> Self { Self { s_type: crate::vk1_0::StructureType::PIPELINE_EXECUTABLE_STATISTIC_KHR, p_next: std::ptr::null_mut(), name: unsafe { std::mem::zeroed() }, description: unsafe { std::mem::zeroed() }, format: Default::default(), value: Default::default() } } } impl std::fmt::Debug for PipelineExecutableStatisticKHR { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PipelineExecutableStatisticKHR").field("s_type", &self.s_type).field("p_next", &self.p_next).field("name", unsafe { &std::ffi::CStr::from_ptr(self.name.as_ptr()) }).field("description", unsafe { &std::ffi::CStr::from_ptr(self.description.as_ptr()) }).field("format", &self.format).field("value", &self.value).finish() } } impl PipelineExecutableStatisticKHR { #[inline] pub fn into_builder<'a>(self) -> PipelineExecutableStatisticKHRBuilder<'a> { PipelineExecutableStatisticKHRBuilder(self, std::marker::PhantomData) } } #[derive(Copy, Clone)] #[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPipelineExecutableStatisticKHR.html) · Builder of [`PipelineExecutableStatisticKHR`]"] #[repr(transparent)] pub struct PipelineExecutableStatisticKHRBuilder<'a>(PipelineExecutableStatisticKHR, std::marker::PhantomData<&'a ()>); impl<'a> PipelineExecutableStatisticKHRBuilder<'a> { #[inline] pub fn new() -> PipelineExecutableStatisticKHRBuilder<'a> { PipelineExecutableStatisticKHRBuilder(Default::default(), std::marker::PhantomData) } #[inline] pub fn name(mut self, name: [std::os::raw::c_char; 256]) -> Self { self.0.name = name as _; self } #[inline] pub fn description(mut self, description: [std::os::raw::c_char; 256]) -> Self { self.0.description = description as _; self } #[inline] pub fn format(mut self, format: crate::extensions::khr_pipeline_executable_properties::PipelineExecutableStatisticFormatKHR) -> Self { self.0.format = format as _; self } #[inline] pub fn value(mut self, value: crate::extensions::khr_pipeline_executable_properties::PipelineExecutableStatisticValueKHR) -> Self { self.0.value = value as _; self } #[inline] #[doc = r" Discards all lifetime information."] #[doc = r" Use the `Deref` and `DerefMut` implementations if possible."] pub fn build(self) -> PipelineExecutableStatisticKHR { self.0 } } impl<'a> std::default::Default for PipelineExecutableStatisticKHRBuilder<'a> { fn default() -> PipelineExecutableStatisticKHRBuilder<'a> { Self::new() } } impl<'a> std::fmt::Debug for PipelineExecutableStatisticKHRBuilder<'a> { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { std::fmt::Debug::fmt(&self.0, f) } } impl<'a> std::ops::Deref for PipelineExecutableStatisticKHRBuilder<'a> { type Target = PipelineExecutableStatisticKHR; fn deref(&self) -> &Self::Target { &self.0 } } impl<'a> std::ops::DerefMut for PipelineExecutableStatisticKHRBuilder<'a> { fn deref_mut(&mut self) -> &mut Self::Target { &mut self.0 } } #[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPipelineExecutableInternalRepresentationKHR.html) · Structure"] #[doc(alias = "VkPipelineExecutableInternalRepresentationKHR")] #[derive(Copy, Clone)] #[repr(C)] pub struct PipelineExecutableInternalRepresentationKHR { pub s_type: crate::vk1_0::StructureType, pub p_next: *mut std::ffi::c_void, pub name: [std::os::raw::c_char; 256], pub description: [std::os::raw::c_char; 256], pub is_text: crate::vk1_0::Bool32, pub data_size: usize, pub p_data: *mut std::ffi::c_void, } impl Default for PipelineExecutableInternalRepresentationKHR { fn default() -> Self { Self { s_type: crate::vk1_0::StructureType::PIPELINE_EXECUTABLE_INTERNAL_REPRESENTATION_KHR, p_next: std::ptr::null_mut(), name: unsafe { std::mem::zeroed() }, description: unsafe { std::mem::zeroed() }, is_text: Default::default(), data_size: Default::default(), p_data: std::ptr::null_mut() } } } impl std::fmt::Debug for PipelineExecutableInternalRepresentationKHR { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PipelineExecutableInternalRepresentationKHR").field("s_type", &self.s_type).field("p_next", &self.p_next).field("name", unsafe { &std::ffi::CStr::from_ptr(self.name.as_ptr()) }).field("description", unsafe { &std::ffi::CStr::from_ptr(self.description.as_ptr()) }).field("is_text", &(self.is_text != 0)).field("data_size", &self.data_size).field("p_data", &self.p_data).finish() } } impl PipelineExecutableInternalRepresentationKHR { #[inline] pub fn into_builder<'a>(self) -> PipelineExecutableInternalRepresentationKHRBuilder<'a> { PipelineExecutableInternalRepresentationKHRBuilder(self, std::marker::PhantomData) } } #[derive(Copy, Clone)] #[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPipelineExecutableInternalRepresentationKHR.html) · Builder of [`PipelineExecutableInternalRepresentationKHR`]"] #[repr(transparent)] pub struct PipelineExecutableInternalRepresentationKHRBuilder<'a>(PipelineExecutableInternalRepresentationKHR, std::marker::PhantomData<&'a ()>); impl<'a> PipelineExecutableInternalRepresentationKHRBuilder<'a> { #[inline] pub fn new() -> PipelineExecutableInternalRepresentationKHRBuilder<'a> { PipelineExecutableInternalRepresentationKHRBuilder(Default::default(), std::marker::PhantomData) } #[inline] pub fn name(mut self, name: [std::os::raw::c_char; 256]) -> Self { self.0.name = name as _; self } #[inline] pub fn description(mut self, description: [std::os::raw::c_char; 256]) -> Self { self.0.description = description as _; self } #[inline] pub fn is_text(mut self, is_text: bool) -> Self { self.0.is_text = is_text as _; self } #[inline] pub fn data_size(mut self, data_size: usize) -> Self { self.0.data_size = data_size; self } #[inline] pub fn data(mut self, data: *mut std::ffi::c_void) -> Self { self.0.p_data = data; self } #[inline] #[doc = r" Discards all lifetime information."] #[doc = r" Use the `Deref` and `DerefMut` implementations if possible."] pub fn build(self) -> PipelineExecutableInternalRepresentationKHR { self.0 } } impl<'a> std::default::Default for PipelineExecutableInternalRepresentationKHRBuilder<'a> { fn default() -> PipelineExecutableInternalRepresentationKHRBuilder<'a> { Self::new() } } impl<'a> std::fmt::Debug for PipelineExecutableInternalRepresentationKHRBuilder<'a> { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { std::fmt::Debug::fmt(&self.0, f) } } impl<'a> std::ops::Deref for PipelineExecutableInternalRepresentationKHRBuilder<'a> { type Target = PipelineExecutableInternalRepresentationKHR; fn deref(&self) -> &Self::Target { &self.0 } } impl<'a> std::ops::DerefMut for PipelineExecutableInternalRepresentationKHRBuilder<'a> { fn deref_mut(&mut self) -> &mut Self::Target { &mut self.0 } } #[doc = "Provided by [`crate::extensions::khr_pipeline_executable_properties`]"] impl crate::DeviceLoader { #[inline] #[track_caller] #[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkGetPipelineExecutablePropertiesKHR.html) · Function"] #[doc(alias = "vkGetPipelineExecutablePropertiesKHR")] pub unsafe fn get_pipeline_executable_properties_khr(&self, pipeline_info: &crate::extensions::khr_pipeline_executable_properties::PipelineInfoKHR, executable_count: Option<u32>) -> crate::utils::VulkanResult<Vec<crate::extensions::khr_pipeline_executable_properties::PipelineExecutablePropertiesKHR>> { let _function = self.get_pipeline_executable_properties_khr.expect(crate::NOT_LOADED_MESSAGE); let mut executable_count = match executable_count { Some(v) => v, None => { let mut v = Default::default(); _function(self.handle, pipeline_info as _, &mut v, std::ptr::null_mut()); v } }; let mut properties = vec![Default::default(); executable_count as _]; let _return = _function(self.handle, pipeline_info as _, &mut executable_count, properties.as_mut_ptr()); crate::utils::VulkanResult::new(_return, properties) } #[inline] #[track_caller] #[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkGetPipelineExecutableStatisticsKHR.html) · Function"] #[doc(alias = "vkGetPipelineExecutableStatisticsKHR")] pub unsafe fn get_pipeline_executable_statistics_khr(&self, executable_info: &crate::extensions::khr_pipeline_executable_properties::PipelineExecutableInfoKHR, statistic_count: Option<u32>) -> crate::utils::VulkanResult<Vec<crate::extensions::khr_pipeline_executable_properties::PipelineExecutableStatisticKHR>> { let _function = self.get_pipeline_executable_statistics_khr.expect(crate::NOT_LOADED_MESSAGE); let mut statistic_count = match statistic_count { Some(v) => v, None => { let mut v = Default::default(); _function(self.handle, executable_info as _, &mut v, std::ptr::null_mut()); v } }; let mut statistics = vec![Default::default(); statistic_count as _]; let _return = _function(self.handle, executable_info as _, &mut statistic_count, statistics.as_mut_ptr()); crate::utils::VulkanResult::new(_return, statistics) } #[inline] #[track_caller] #[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkGetPipelineExecutableInternalRepresentationsKHR.html) · Function"] #[doc(alias = "vkGetPipelineExecutableInternalRepresentationsKHR")] pub unsafe fn get_pipeline_executable_internal_representations_khr(&self, executable_info: &crate::extensions::khr_pipeline_executable_properties::PipelineExecutableInfoKHR, internal_representation_count: Option<u32>) -> crate::utils::VulkanResult<Vec<crate::extensions::khr_pipeline_executable_properties::PipelineExecutableInternalRepresentationKHR>> { let _function = self.get_pipeline_executable_internal_representations_khr.expect(crate::NOT_LOADED_MESSAGE); let mut internal_representation_count = match internal_representation_count { Some(v) => v, None => { let mut v = Default::default(); _function(self.handle, executable_info as _, &mut v, std::ptr::null_mut()); v } }; let mut internal_representations = vec![Default::default(); internal_representation_count as _]; let _return = _function(self.handle, executable_info as _, &mut internal_representation_count, internal_representations.as_mut_ptr()); crate::utils::VulkanResult::new(_return, internal_representations) } }