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
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
#[doc = "<s>Vulkan Manual Page</s> · Constant"]
#[doc(alias = "VK_NV_DEVICE_GENERATED_COMMANDS_SPEC_VERSION")]
pub const NV_DEVICE_GENERATED_COMMANDS_SPEC_VERSION: u32 = 3;
#[doc = "<s>Vulkan Manual Page</s> · Constant"]
#[doc(alias = "VK_NV_DEVICE_GENERATED_COMMANDS_EXTENSION_NAME")]
pub const NV_DEVICE_GENERATED_COMMANDS_EXTENSION_NAME: *const std::os::raw::c_char = crate::cstr!("VK_NV_device_generated_commands");
#[doc = "<s>Vulkan Manual Page</s> · Constant"]
pub const FN_CMD_EXECUTE_GENERATED_COMMANDS_NV: *const std::os::raw::c_char = crate::cstr!("vkCmdExecuteGeneratedCommandsNV");
#[doc = "<s>Vulkan Manual Page</s> · Constant"]
pub const FN_CMD_PREPROCESS_GENERATED_COMMANDS_NV: *const std::os::raw::c_char = crate::cstr!("vkCmdPreprocessGeneratedCommandsNV");
#[doc = "<s>Vulkan Manual Page</s> · Constant"]
pub const FN_CMD_BIND_PIPELINE_SHADER_GROUP_NV: *const std::os::raw::c_char = crate::cstr!("vkCmdBindPipelineShaderGroupNV");
#[doc = "<s>Vulkan Manual Page</s> · Constant"]
pub const FN_GET_GENERATED_COMMANDS_MEMORY_REQUIREMENTS_NV: *const std::os::raw::c_char = crate::cstr!("vkGetGeneratedCommandsMemoryRequirementsNV");
#[doc = "<s>Vulkan Manual Page</s> · Constant"]
pub const FN_CREATE_INDIRECT_COMMANDS_LAYOUT_NV: *const std::os::raw::c_char = crate::cstr!("vkCreateIndirectCommandsLayoutNV");
#[doc = "<s>Vulkan Manual Page</s> · Constant"]
pub const FN_DESTROY_INDIRECT_COMMANDS_LAYOUT_NV: *const std::os::raw::c_char = crate::cstr!("vkDestroyIndirectCommandsLayoutNV");
crate::non_dispatchable_handle!(IndirectCommandsLayoutNV, INDIRECT_COMMANDS_LAYOUT_NV, "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkIndirectCommandsLayoutNV.html) · Non-dispatchable Handle", "VkIndirectCommandsLayoutNV");
#[doc = "Provided by [`crate::extensions::nv_device_generated_commands`]"]
impl crate::vk1_0::AccessFlagBits {
pub const COMMAND_PREPROCESS_READ_NV: Self = Self(131072);
pub const COMMAND_PREPROCESS_WRITE_NV: Self = Self(262144);
}
#[doc = "Provided by [`crate::extensions::nv_device_generated_commands`]"]
impl crate::vk1_0::PipelineCreateFlagBits {
pub const INDIRECT_BINDABLE_NV: Self = Self(262144);
}
#[doc = "Provided by [`crate::extensions::nv_device_generated_commands`]"]
impl crate::vk1_0::StructureType {
pub const PHYSICAL_DEVICE_DEVICE_GENERATED_COMMANDS_PROPERTIES_NV: Self = Self(1000277000);
pub const GRAPHICS_SHADER_GROUP_CREATE_INFO_NV: Self = Self(1000277001);
pub const GRAPHICS_PIPELINE_SHADER_GROUPS_CREATE_INFO_NV: Self = Self(1000277002);
pub const INDIRECT_COMMANDS_LAYOUT_TOKEN_NV: Self = Self(1000277003);
pub const INDIRECT_COMMANDS_LAYOUT_CREATE_INFO_NV: Self = Self(1000277004);
pub const GENERATED_COMMANDS_INFO_NV: Self = Self(1000277005);
pub const GENERATED_COMMANDS_MEMORY_REQUIREMENTS_INFO_NV: Self = Self(1000277006);
pub const PHYSICAL_DEVICE_DEVICE_GENERATED_COMMANDS_FEATURES_NV: Self = Self(1000277007);
}
#[doc = "Provided by [`crate::extensions::nv_device_generated_commands`]"]
impl crate::vk1_0::PipelineStageFlagBits {
pub const COMMAND_PREPROCESS_NV: Self = Self(131072);
}
#[doc = "Provided by [`crate::extensions::nv_device_generated_commands`]"]
impl crate::vk1_0::ObjectType {
pub const INDIRECT_COMMANDS_LAYOUT_NV: Self = Self(1000277000);
}
bitflags::bitflags! { # [doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkIndirectCommandsLayoutUsageFlagsNV.html) · Bitmask of [`IndirectCommandsLayoutUsageFlagBitsNV`]"] # [doc (alias = "VkIndirectCommandsLayoutUsageFlagsNV")] # [derive (Default)] # [repr (transparent)] pub struct IndirectCommandsLayoutUsageFlagsNV : u32 { const EXPLICIT_PREPROCESS_NV = IndirectCommandsLayoutUsageFlagBitsNV :: EXPLICIT_PREPROCESS_NV . 0 ; const INDEXED_SEQUENCES_NV = IndirectCommandsLayoutUsageFlagBitsNV :: INDEXED_SEQUENCES_NV . 0 ; const UNORDERED_SEQUENCES_NV = IndirectCommandsLayoutUsageFlagBitsNV :: UNORDERED_SEQUENCES_NV . 0 ; } }
#[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkIndirectCommandsLayoutUsageFlagBitsNV.html) · Bits enum of [`IndirectCommandsLayoutUsageFlagsNV`]"]
#[doc(alias = "VkIndirectCommandsLayoutUsageFlagBitsNV")]
#[derive(Copy, Clone, PartialEq, Eq, Hash, Default, Ord, PartialOrd)]
#[repr(transparent)]
pub struct IndirectCommandsLayoutUsageFlagBitsNV(pub u32);
impl IndirectCommandsLayoutUsageFlagBitsNV {
#[inline]
#[doc = "Converts this enum variant to the corresponding bitmask"]
pub const fn bitmask(&self) -> IndirectCommandsLayoutUsageFlagsNV {
IndirectCommandsLayoutUsageFlagsNV::from_bits_truncate(self.0)
}
}
impl std::fmt::Debug for IndirectCommandsLayoutUsageFlagBitsNV {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
f.write_str(match self {
&Self::EXPLICIT_PREPROCESS_NV => "EXPLICIT_PREPROCESS_NV",
&Self::INDEXED_SEQUENCES_NV => "INDEXED_SEQUENCES_NV",
&Self::UNORDERED_SEQUENCES_NV => "UNORDERED_SEQUENCES_NV",
_ => "(unknown variant)",
})
}
}
#[doc = "Provided by [`crate::extensions::nv_device_generated_commands`]"]
impl crate::extensions::nv_device_generated_commands::IndirectCommandsLayoutUsageFlagBitsNV {
pub const EXPLICIT_PREPROCESS_NV: Self = Self(1);
pub const INDEXED_SEQUENCES_NV: Self = Self(2);
pub const UNORDERED_SEQUENCES_NV: Self = Self(4);
}
#[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkIndirectCommandsTokenTypeNV.html) · Enum"]
#[doc(alias = "VkIndirectCommandsTokenTypeNV")]
#[derive(Copy, Clone, PartialEq, Eq, Hash, Default, Ord, PartialOrd)]
#[repr(transparent)]
pub struct IndirectCommandsTokenTypeNV(pub i32);
impl std::fmt::Debug for IndirectCommandsTokenTypeNV {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
f.write_str(match self {
&Self::SHADER_GROUP_NV => "SHADER_GROUP_NV",
&Self::STATE_FLAGS_NV => "STATE_FLAGS_NV",
&Self::INDEX_BUFFER_NV => "INDEX_BUFFER_NV",
&Self::VERTEX_BUFFER_NV => "VERTEX_BUFFER_NV",
&Self::PUSH_CONSTANT_NV => "PUSH_CONSTANT_NV",
&Self::DRAW_INDEXED_NV => "DRAW_INDEXED_NV",
&Self::DRAW_NV => "DRAW_NV",
&Self::DRAW_TASKS_NV => "DRAW_TASKS_NV",
_ => "(unknown variant)",
})
}
}
#[doc = "Provided by [`crate::extensions::nv_device_generated_commands`]"]
impl crate::extensions::nv_device_generated_commands::IndirectCommandsTokenTypeNV {
pub const SHADER_GROUP_NV: Self = Self(0);
pub const STATE_FLAGS_NV: Self = Self(1);
pub const INDEX_BUFFER_NV: Self = Self(2);
pub const VERTEX_BUFFER_NV: Self = Self(3);
pub const PUSH_CONSTANT_NV: Self = Self(4);
pub const DRAW_INDEXED_NV: Self = Self(5);
pub const DRAW_NV: Self = Self(6);
pub const DRAW_TASKS_NV: Self = Self(7);
}
bitflags::bitflags! { # [doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkIndirectStateFlagsNV.html) · Bitmask of [`IndirectStateFlagBitsNV`]"] # [doc (alias = "VkIndirectStateFlagsNV")] # [derive (Default)] # [repr (transparent)] pub struct IndirectStateFlagsNV : u32 { const FLAG_FRONTFACE_NV = IndirectStateFlagBitsNV :: FLAG_FRONTFACE_NV . 0 ; } }
#[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkIndirectStateFlagBitsNV.html) · Bits enum of [`IndirectStateFlagsNV`]"]
#[doc(alias = "VkIndirectStateFlagBitsNV")]
#[derive(Copy, Clone, PartialEq, Eq, Hash, Default, Ord, PartialOrd)]
#[repr(transparent)]
pub struct IndirectStateFlagBitsNV(pub u32);
impl IndirectStateFlagBitsNV {
#[inline]
#[doc = "Converts this enum variant to the corresponding bitmask"]
pub const fn bitmask(&self) -> IndirectStateFlagsNV {
IndirectStateFlagsNV::from_bits_truncate(self.0)
}
}
impl std::fmt::Debug for IndirectStateFlagBitsNV {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
f.write_str(match self {
&Self::FLAG_FRONTFACE_NV => "FLAG_FRONTFACE_NV",
_ => "(unknown variant)",
})
}
}
#[doc = "Provided by [`crate::extensions::nv_device_generated_commands`]"]
impl crate::extensions::nv_device_generated_commands::IndirectStateFlagBitsNV {
pub const FLAG_FRONTFACE_NV: Self = Self(1);
}
#[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkCmdExecuteGeneratedCommandsNV.html) · Function"]
#[allow(non_camel_case_types)]
pub type PFN_vkCmdExecuteGeneratedCommandsNV = unsafe extern "system" fn(command_buffer: crate::vk1_0::CommandBuffer, is_preprocessed: crate::vk1_0::Bool32, p_generated_commands_info: *const crate::extensions::nv_device_generated_commands::GeneratedCommandsInfoNV) -> ();
#[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkCmdPreprocessGeneratedCommandsNV.html) · Function"]
#[allow(non_camel_case_types)]
pub type PFN_vkCmdPreprocessGeneratedCommandsNV = unsafe extern "system" fn(command_buffer: crate::vk1_0::CommandBuffer, p_generated_commands_info: *const crate::extensions::nv_device_generated_commands::GeneratedCommandsInfoNV) -> ();
#[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkCmdBindPipelineShaderGroupNV.html) · Function"]
#[allow(non_camel_case_types)]
pub type PFN_vkCmdBindPipelineShaderGroupNV = unsafe extern "system" fn(command_buffer: crate::vk1_0::CommandBuffer, pipeline_bind_point: crate::vk1_0::PipelineBindPoint, pipeline: crate::vk1_0::Pipeline, group_index: u32) -> ();
#[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkGetGeneratedCommandsMemoryRequirementsNV.html) · Function"]
#[allow(non_camel_case_types)]
pub type PFN_vkGetGeneratedCommandsMemoryRequirementsNV = unsafe extern "system" fn(device: crate::vk1_0::Device, p_info: *const crate::extensions::nv_device_generated_commands::GeneratedCommandsMemoryRequirementsInfoNV, p_memory_requirements: *mut crate::vk1_1::MemoryRequirements2) -> ();
#[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkCreateIndirectCommandsLayoutNV.html) · Function"]
#[allow(non_camel_case_types)]
pub type PFN_vkCreateIndirectCommandsLayoutNV = unsafe extern "system" fn(device: crate::vk1_0::Device, p_create_info: *const crate::extensions::nv_device_generated_commands::IndirectCommandsLayoutCreateInfoNV, p_allocator: *const crate::vk1_0::AllocationCallbacks, p_indirect_commands_layout: *mut crate::extensions::nv_device_generated_commands::IndirectCommandsLayoutNV) -> crate::vk1_0::Result;
#[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkDestroyIndirectCommandsLayoutNV.html) · Function"]
#[allow(non_camel_case_types)]
pub type PFN_vkDestroyIndirectCommandsLayoutNV = unsafe extern "system" fn(device: crate::vk1_0::Device, indirect_commands_layout: crate::extensions::nv_device_generated_commands::IndirectCommandsLayoutNV, p_allocator: *const crate::vk1_0::AllocationCallbacks) -> ();
impl<'a> crate::ExtendableFromConst<'a, PhysicalDeviceDeviceGeneratedCommandsFeaturesNV> for crate::vk1_0::DeviceCreateInfoBuilder<'a> {}
impl<'a> crate::ExtendableFromConst<'a, PhysicalDeviceDeviceGeneratedCommandsFeaturesNVBuilder<'_>> for crate::vk1_0::DeviceCreateInfoBuilder<'a> {}
impl<'a> crate::ExtendableFromConst<'a, GraphicsPipelineShaderGroupsCreateInfoNV> for crate::vk1_0::GraphicsPipelineCreateInfoBuilder<'a> {}
impl<'a> crate::ExtendableFromConst<'a, GraphicsPipelineShaderGroupsCreateInfoNVBuilder<'_>> for crate::vk1_0::GraphicsPipelineCreateInfoBuilder<'a> {}
#[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.html) · Structure"]
#[doc(alias = "VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV")]
#[derive(Copy, Clone)]
#[repr(C)]
pub struct PhysicalDeviceDeviceGeneratedCommandsFeaturesNV {
pub s_type: crate::vk1_0::StructureType,
pub p_next: *mut std::ffi::c_void,
pub device_generated_commands: crate::vk1_0::Bool32,
}
impl PhysicalDeviceDeviceGeneratedCommandsFeaturesNV {
pub const STRUCTURE_TYPE: crate::vk1_0::StructureType = crate::vk1_0::StructureType::PHYSICAL_DEVICE_DEVICE_GENERATED_COMMANDS_FEATURES_NV;
}
impl Default for PhysicalDeviceDeviceGeneratedCommandsFeaturesNV {
fn default() -> Self {
Self { s_type: Self::STRUCTURE_TYPE, p_next: std::ptr::null_mut(), device_generated_commands: Default::default() }
}
}
impl std::fmt::Debug for PhysicalDeviceDeviceGeneratedCommandsFeaturesNV {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
f.debug_struct("PhysicalDeviceDeviceGeneratedCommandsFeaturesNV").field("s_type", &self.s_type).field("p_next", &self.p_next).field("device_generated_commands", &(self.device_generated_commands != 0)).finish()
}
}
impl PhysicalDeviceDeviceGeneratedCommandsFeaturesNV {
#[inline]
pub fn into_builder<'a>(self) -> PhysicalDeviceDeviceGeneratedCommandsFeaturesNVBuilder<'a> {
PhysicalDeviceDeviceGeneratedCommandsFeaturesNVBuilder(self, std::marker::PhantomData)
}
}
#[derive(Copy, Clone)]
#[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.html) · Builder of [`PhysicalDeviceDeviceGeneratedCommandsFeaturesNV`]"]
#[repr(transparent)]
pub struct PhysicalDeviceDeviceGeneratedCommandsFeaturesNVBuilder<'a>(PhysicalDeviceDeviceGeneratedCommandsFeaturesNV, std::marker::PhantomData<&'a ()>);
impl<'a> PhysicalDeviceDeviceGeneratedCommandsFeaturesNVBuilder<'a> {
#[inline]
pub fn new() -> PhysicalDeviceDeviceGeneratedCommandsFeaturesNVBuilder<'a> {
PhysicalDeviceDeviceGeneratedCommandsFeaturesNVBuilder(Default::default(), std::marker::PhantomData)
}
#[inline]
pub fn device_generated_commands(mut self, device_generated_commands: bool) -> Self {
self.0.device_generated_commands = device_generated_commands as _;
self
}
#[inline]
#[doc = r" Discards all lifetime information."]
#[doc = r" Use the `Deref` and `DerefMut` implementations if possible."]
pub fn build(self) -> PhysicalDeviceDeviceGeneratedCommandsFeaturesNV {
self.0
}
}
impl<'a> std::default::Default for PhysicalDeviceDeviceGeneratedCommandsFeaturesNVBuilder<'a> {
fn default() -> PhysicalDeviceDeviceGeneratedCommandsFeaturesNVBuilder<'a> {
Self::new()
}
}
impl<'a> std::fmt::Debug for PhysicalDeviceDeviceGeneratedCommandsFeaturesNVBuilder<'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 PhysicalDeviceDeviceGeneratedCommandsFeaturesNVBuilder<'a> {
type Target = PhysicalDeviceDeviceGeneratedCommandsFeaturesNV;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl<'a> std::ops::DerefMut for PhysicalDeviceDeviceGeneratedCommandsFeaturesNVBuilder<'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/VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV.html) · Structure"]
#[doc(alias = "VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV")]
#[derive(Copy, Clone)]
#[repr(C)]
pub struct PhysicalDeviceDeviceGeneratedCommandsPropertiesNV {
pub s_type: crate::vk1_0::StructureType,
pub p_next: *mut std::ffi::c_void,
pub max_graphics_shader_group_count: u32,
pub max_indirect_sequence_count: u32,
pub max_indirect_commands_token_count: u32,
pub max_indirect_commands_stream_count: u32,
pub max_indirect_commands_token_offset: u32,
pub max_indirect_commands_stream_stride: u32,
pub min_sequences_count_buffer_offset_alignment: u32,
pub min_sequences_index_buffer_offset_alignment: u32,
pub min_indirect_commands_buffer_offset_alignment: u32,
}
impl PhysicalDeviceDeviceGeneratedCommandsPropertiesNV {
pub const STRUCTURE_TYPE: crate::vk1_0::StructureType = crate::vk1_0::StructureType::PHYSICAL_DEVICE_DEVICE_GENERATED_COMMANDS_PROPERTIES_NV;
}
impl Default for PhysicalDeviceDeviceGeneratedCommandsPropertiesNV {
fn default() -> Self {
Self { s_type: Self::STRUCTURE_TYPE, p_next: std::ptr::null_mut(), max_graphics_shader_group_count: Default::default(), max_indirect_sequence_count: Default::default(), max_indirect_commands_token_count: Default::default(), max_indirect_commands_stream_count: Default::default(), max_indirect_commands_token_offset: Default::default(), max_indirect_commands_stream_stride: Default::default(), min_sequences_count_buffer_offset_alignment: Default::default(), min_sequences_index_buffer_offset_alignment: Default::default(), min_indirect_commands_buffer_offset_alignment: Default::default() }
}
}
impl std::fmt::Debug for PhysicalDeviceDeviceGeneratedCommandsPropertiesNV {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
f.debug_struct("PhysicalDeviceDeviceGeneratedCommandsPropertiesNV").field("s_type", &self.s_type).field("p_next", &self.p_next).field("max_graphics_shader_group_count", &self.max_graphics_shader_group_count).field("max_indirect_sequence_count", &self.max_indirect_sequence_count).field("max_indirect_commands_token_count", &self.max_indirect_commands_token_count).field("max_indirect_commands_stream_count", &self.max_indirect_commands_stream_count).field("max_indirect_commands_token_offset", &self.max_indirect_commands_token_offset).field("max_indirect_commands_stream_stride", &self.max_indirect_commands_stream_stride).field("min_sequences_count_buffer_offset_alignment", &self.min_sequences_count_buffer_offset_alignment).field("min_sequences_index_buffer_offset_alignment", &self.min_sequences_index_buffer_offset_alignment).field("min_indirect_commands_buffer_offset_alignment", &self.min_indirect_commands_buffer_offset_alignment).finish()
}
}
impl PhysicalDeviceDeviceGeneratedCommandsPropertiesNV {
#[inline]
pub fn into_builder<'a>(self) -> PhysicalDeviceDeviceGeneratedCommandsPropertiesNVBuilder<'a> {
PhysicalDeviceDeviceGeneratedCommandsPropertiesNVBuilder(self, std::marker::PhantomData)
}
}
#[derive(Copy, Clone)]
#[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV.html) · Builder of [`PhysicalDeviceDeviceGeneratedCommandsPropertiesNV`]"]
#[repr(transparent)]
pub struct PhysicalDeviceDeviceGeneratedCommandsPropertiesNVBuilder<'a>(PhysicalDeviceDeviceGeneratedCommandsPropertiesNV, std::marker::PhantomData<&'a ()>);
impl<'a> PhysicalDeviceDeviceGeneratedCommandsPropertiesNVBuilder<'a> {
#[inline]
pub fn new() -> PhysicalDeviceDeviceGeneratedCommandsPropertiesNVBuilder<'a> {
PhysicalDeviceDeviceGeneratedCommandsPropertiesNVBuilder(Default::default(), std::marker::PhantomData)
}
#[inline]
pub fn max_graphics_shader_group_count(mut self, max_graphics_shader_group_count: u32) -> Self {
self.0.max_graphics_shader_group_count = max_graphics_shader_group_count as _;
self
}
#[inline]
pub fn max_indirect_sequence_count(mut self, max_indirect_sequence_count: u32) -> Self {
self.0.max_indirect_sequence_count = max_indirect_sequence_count as _;
self
}
#[inline]
pub fn max_indirect_commands_token_count(mut self, max_indirect_commands_token_count: u32) -> Self {
self.0.max_indirect_commands_token_count = max_indirect_commands_token_count as _;
self
}
#[inline]
pub fn max_indirect_commands_stream_count(mut self, max_indirect_commands_stream_count: u32) -> Self {
self.0.max_indirect_commands_stream_count = max_indirect_commands_stream_count as _;
self
}
#[inline]
pub fn max_indirect_commands_token_offset(mut self, max_indirect_commands_token_offset: u32) -> Self {
self.0.max_indirect_commands_token_offset = max_indirect_commands_token_offset as _;
self
}
#[inline]
pub fn max_indirect_commands_stream_stride(mut self, max_indirect_commands_stream_stride: u32) -> Self {
self.0.max_indirect_commands_stream_stride = max_indirect_commands_stream_stride as _;
self
}
#[inline]
pub fn min_sequences_count_buffer_offset_alignment(mut self, min_sequences_count_buffer_offset_alignment: u32) -> Self {
self.0.min_sequences_count_buffer_offset_alignment = min_sequences_count_buffer_offset_alignment as _;
self
}
#[inline]
pub fn min_sequences_index_buffer_offset_alignment(mut self, min_sequences_index_buffer_offset_alignment: u32) -> Self {
self.0.min_sequences_index_buffer_offset_alignment = min_sequences_index_buffer_offset_alignment as _;
self
}
#[inline]
pub fn min_indirect_commands_buffer_offset_alignment(mut self, min_indirect_commands_buffer_offset_alignment: u32) -> Self {
self.0.min_indirect_commands_buffer_offset_alignment = min_indirect_commands_buffer_offset_alignment as _;
self
}
#[inline]
#[doc = r" Discards all lifetime information."]
#[doc = r" Use the `Deref` and `DerefMut` implementations if possible."]
pub fn build(self) -> PhysicalDeviceDeviceGeneratedCommandsPropertiesNV {
self.0
}
}
impl<'a> std::default::Default for PhysicalDeviceDeviceGeneratedCommandsPropertiesNVBuilder<'a> {
fn default() -> PhysicalDeviceDeviceGeneratedCommandsPropertiesNVBuilder<'a> {
Self::new()
}
}
impl<'a> std::fmt::Debug for PhysicalDeviceDeviceGeneratedCommandsPropertiesNVBuilder<'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 PhysicalDeviceDeviceGeneratedCommandsPropertiesNVBuilder<'a> {
type Target = PhysicalDeviceDeviceGeneratedCommandsPropertiesNV;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl<'a> std::ops::DerefMut for PhysicalDeviceDeviceGeneratedCommandsPropertiesNVBuilder<'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/VkGraphicsShaderGroupCreateInfoNV.html) · Structure"]
#[doc(alias = "VkGraphicsShaderGroupCreateInfoNV")]
#[derive(Copy, Clone)]
#[repr(C)]
pub struct GraphicsShaderGroupCreateInfoNV {
pub s_type: crate::vk1_0::StructureType,
pub p_next: *const std::ffi::c_void,
pub stage_count: u32,
pub p_stages: *const crate::vk1_0::PipelineShaderStageCreateInfo,
pub p_vertex_input_state: *const crate::vk1_0::PipelineVertexInputStateCreateInfo,
pub p_tessellation_state: *const crate::vk1_0::PipelineTessellationStateCreateInfo,
}
impl GraphicsShaderGroupCreateInfoNV {
pub const STRUCTURE_TYPE: crate::vk1_0::StructureType = crate::vk1_0::StructureType::GRAPHICS_SHADER_GROUP_CREATE_INFO_NV;
}
impl Default for GraphicsShaderGroupCreateInfoNV {
fn default() -> Self {
Self { s_type: Self::STRUCTURE_TYPE, p_next: std::ptr::null(), stage_count: Default::default(), p_stages: std::ptr::null(), p_vertex_input_state: std::ptr::null(), p_tessellation_state: std::ptr::null() }
}
}
impl std::fmt::Debug for GraphicsShaderGroupCreateInfoNV {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
f.debug_struct("GraphicsShaderGroupCreateInfoNV").field("s_type", &self.s_type).field("p_next", &self.p_next).field("stage_count", &self.stage_count).field("p_stages", &self.p_stages).field("p_vertex_input_state", &self.p_vertex_input_state).field("p_tessellation_state", &self.p_tessellation_state).finish()
}
}
impl GraphicsShaderGroupCreateInfoNV {
#[inline]
pub fn into_builder<'a>(self) -> GraphicsShaderGroupCreateInfoNVBuilder<'a> {
GraphicsShaderGroupCreateInfoNVBuilder(self, std::marker::PhantomData)
}
}
#[derive(Copy, Clone)]
#[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkGraphicsShaderGroupCreateInfoNV.html) · Builder of [`GraphicsShaderGroupCreateInfoNV`]"]
#[repr(transparent)]
pub struct GraphicsShaderGroupCreateInfoNVBuilder<'a>(GraphicsShaderGroupCreateInfoNV, std::marker::PhantomData<&'a ()>);
impl<'a> GraphicsShaderGroupCreateInfoNVBuilder<'a> {
#[inline]
pub fn new() -> GraphicsShaderGroupCreateInfoNVBuilder<'a> {
GraphicsShaderGroupCreateInfoNVBuilder(Default::default(), std::marker::PhantomData)
}
#[inline]
pub fn stages(mut self, stages: &'a [crate::vk1_0::PipelineShaderStageCreateInfoBuilder]) -> Self {
self.0.p_stages = stages.as_ptr() as _;
self.0.stage_count = stages.len() as _;
self
}
#[inline]
pub fn vertex_input_state(mut self, vertex_input_state: &'a crate::vk1_0::PipelineVertexInputStateCreateInfo) -> Self {
self.0.p_vertex_input_state = vertex_input_state as _;
self
}
#[inline]
pub fn tessellation_state(mut self, tessellation_state: &'a crate::vk1_0::PipelineTessellationStateCreateInfo) -> Self {
self.0.p_tessellation_state = tessellation_state as _;
self
}
#[inline]
#[doc = r" Discards all lifetime information."]
#[doc = r" Use the `Deref` and `DerefMut` implementations if possible."]
pub fn build(self) -> GraphicsShaderGroupCreateInfoNV {
self.0
}
}
impl<'a> std::default::Default for GraphicsShaderGroupCreateInfoNVBuilder<'a> {
fn default() -> GraphicsShaderGroupCreateInfoNVBuilder<'a> {
Self::new()
}
}
impl<'a> std::fmt::Debug for GraphicsShaderGroupCreateInfoNVBuilder<'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 GraphicsShaderGroupCreateInfoNVBuilder<'a> {
type Target = GraphicsShaderGroupCreateInfoNV;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl<'a> std::ops::DerefMut for GraphicsShaderGroupCreateInfoNVBuilder<'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/VkGraphicsPipelineShaderGroupsCreateInfoNV.html) · Structure"]
#[doc(alias = "VkGraphicsPipelineShaderGroupsCreateInfoNV")]
#[derive(Copy, Clone)]
#[repr(C)]
pub struct GraphicsPipelineShaderGroupsCreateInfoNV {
pub s_type: crate::vk1_0::StructureType,
pub p_next: *const std::ffi::c_void,
pub group_count: u32,
pub p_groups: *const crate::extensions::nv_device_generated_commands::GraphicsShaderGroupCreateInfoNV,
pub pipeline_count: u32,
pub p_pipelines: *const crate::vk1_0::Pipeline,
}
impl GraphicsPipelineShaderGroupsCreateInfoNV {
pub const STRUCTURE_TYPE: crate::vk1_0::StructureType = crate::vk1_0::StructureType::GRAPHICS_PIPELINE_SHADER_GROUPS_CREATE_INFO_NV;
}
impl Default for GraphicsPipelineShaderGroupsCreateInfoNV {
fn default() -> Self {
Self { s_type: Self::STRUCTURE_TYPE, p_next: std::ptr::null(), group_count: Default::default(), p_groups: std::ptr::null(), pipeline_count: Default::default(), p_pipelines: std::ptr::null() }
}
}
impl std::fmt::Debug for GraphicsPipelineShaderGroupsCreateInfoNV {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
f.debug_struct("GraphicsPipelineShaderGroupsCreateInfoNV").field("s_type", &self.s_type).field("p_next", &self.p_next).field("group_count", &self.group_count).field("p_groups", &self.p_groups).field("pipeline_count", &self.pipeline_count).field("p_pipelines", &self.p_pipelines).finish()
}
}
impl GraphicsPipelineShaderGroupsCreateInfoNV {
#[inline]
pub fn into_builder<'a>(self) -> GraphicsPipelineShaderGroupsCreateInfoNVBuilder<'a> {
GraphicsPipelineShaderGroupsCreateInfoNVBuilder(self, std::marker::PhantomData)
}
}
#[derive(Copy, Clone)]
#[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkGraphicsPipelineShaderGroupsCreateInfoNV.html) · Builder of [`GraphicsPipelineShaderGroupsCreateInfoNV`]"]
#[repr(transparent)]
pub struct GraphicsPipelineShaderGroupsCreateInfoNVBuilder<'a>(GraphicsPipelineShaderGroupsCreateInfoNV, std::marker::PhantomData<&'a ()>);
impl<'a> GraphicsPipelineShaderGroupsCreateInfoNVBuilder<'a> {
#[inline]
pub fn new() -> GraphicsPipelineShaderGroupsCreateInfoNVBuilder<'a> {
GraphicsPipelineShaderGroupsCreateInfoNVBuilder(Default::default(), std::marker::PhantomData)
}
#[inline]
pub fn groups(mut self, groups: &'a [crate::extensions::nv_device_generated_commands::GraphicsShaderGroupCreateInfoNVBuilder]) -> Self {
self.0.p_groups = groups.as_ptr() as _;
self.0.group_count = groups.len() as _;
self
}
#[inline]
pub fn pipelines(mut self, pipelines: &'a [crate::vk1_0::Pipeline]) -> Self {
self.0.p_pipelines = pipelines.as_ptr() as _;
self.0.pipeline_count = pipelines.len() as _;
self
}
#[inline]
#[doc = r" Discards all lifetime information."]
#[doc = r" Use the `Deref` and `DerefMut` implementations if possible."]
pub fn build(self) -> GraphicsPipelineShaderGroupsCreateInfoNV {
self.0
}
}
impl<'a> std::default::Default for GraphicsPipelineShaderGroupsCreateInfoNVBuilder<'a> {
fn default() -> GraphicsPipelineShaderGroupsCreateInfoNVBuilder<'a> {
Self::new()
}
}
impl<'a> std::fmt::Debug for GraphicsPipelineShaderGroupsCreateInfoNVBuilder<'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 GraphicsPipelineShaderGroupsCreateInfoNVBuilder<'a> {
type Target = GraphicsPipelineShaderGroupsCreateInfoNV;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl<'a> std::ops::DerefMut for GraphicsPipelineShaderGroupsCreateInfoNVBuilder<'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/VkBindShaderGroupIndirectCommandNV.html) · Structure"]
#[doc(alias = "VkBindShaderGroupIndirectCommandNV")]
#[derive(Copy, Clone, Hash, PartialEq, Eq)]
#[repr(C)]
pub struct BindShaderGroupIndirectCommandNV {
pub group_index: u32,
}
impl Default for BindShaderGroupIndirectCommandNV {
fn default() -> Self {
Self { group_index: Default::default() }
}
}
impl std::fmt::Debug for BindShaderGroupIndirectCommandNV {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
f.debug_struct("BindShaderGroupIndirectCommandNV").field("group_index", &self.group_index).finish()
}
}
impl BindShaderGroupIndirectCommandNV {
#[inline]
pub fn into_builder<'a>(self) -> BindShaderGroupIndirectCommandNVBuilder<'a> {
BindShaderGroupIndirectCommandNVBuilder(self, std::marker::PhantomData)
}
}
#[derive(Copy, Clone)]
#[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkBindShaderGroupIndirectCommandNV.html) · Builder of [`BindShaderGroupIndirectCommandNV`]"]
#[repr(transparent)]
pub struct BindShaderGroupIndirectCommandNVBuilder<'a>(BindShaderGroupIndirectCommandNV, std::marker::PhantomData<&'a ()>);
impl<'a> BindShaderGroupIndirectCommandNVBuilder<'a> {
#[inline]
pub fn new() -> BindShaderGroupIndirectCommandNVBuilder<'a> {
BindShaderGroupIndirectCommandNVBuilder(Default::default(), std::marker::PhantomData)
}
#[inline]
pub fn group_index(mut self, group_index: u32) -> Self {
self.0.group_index = group_index as _;
self
}
#[inline]
#[doc = r" Discards all lifetime information."]
#[doc = r" Use the `Deref` and `DerefMut` implementations if possible."]
pub fn build(self) -> BindShaderGroupIndirectCommandNV {
self.0
}
}
impl<'a> std::default::Default for BindShaderGroupIndirectCommandNVBuilder<'a> {
fn default() -> BindShaderGroupIndirectCommandNVBuilder<'a> {
Self::new()
}
}
impl<'a> std::fmt::Debug for BindShaderGroupIndirectCommandNVBuilder<'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 BindShaderGroupIndirectCommandNVBuilder<'a> {
type Target = BindShaderGroupIndirectCommandNV;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl<'a> std::ops::DerefMut for BindShaderGroupIndirectCommandNVBuilder<'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/VkBindIndexBufferIndirectCommandNV.html) · Structure"]
#[doc(alias = "VkBindIndexBufferIndirectCommandNV")]
#[derive(Copy, Clone, Hash, PartialEq, Eq)]
#[repr(C)]
pub struct BindIndexBufferIndirectCommandNV {
pub buffer_address: crate::vk1_0::DeviceAddress,
pub size: u32,
pub index_type: crate::vk1_0::IndexType,
}
impl Default for BindIndexBufferIndirectCommandNV {
fn default() -> Self {
Self { buffer_address: Default::default(), size: Default::default(), index_type: Default::default() }
}
}
impl std::fmt::Debug for BindIndexBufferIndirectCommandNV {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
f.debug_struct("BindIndexBufferIndirectCommandNV").field("buffer_address", &self.buffer_address).field("size", &self.size).field("index_type", &self.index_type).finish()
}
}
impl BindIndexBufferIndirectCommandNV {
#[inline]
pub fn into_builder<'a>(self) -> BindIndexBufferIndirectCommandNVBuilder<'a> {
BindIndexBufferIndirectCommandNVBuilder(self, std::marker::PhantomData)
}
}
#[derive(Copy, Clone)]
#[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkBindIndexBufferIndirectCommandNV.html) · Builder of [`BindIndexBufferIndirectCommandNV`]"]
#[repr(transparent)]
pub struct BindIndexBufferIndirectCommandNVBuilder<'a>(BindIndexBufferIndirectCommandNV, std::marker::PhantomData<&'a ()>);
impl<'a> BindIndexBufferIndirectCommandNVBuilder<'a> {
#[inline]
pub fn new() -> BindIndexBufferIndirectCommandNVBuilder<'a> {
BindIndexBufferIndirectCommandNVBuilder(Default::default(), std::marker::PhantomData)
}
#[inline]
pub fn buffer_address(mut self, buffer_address: crate::vk1_0::DeviceAddress) -> Self {
self.0.buffer_address = buffer_address as _;
self
}
#[inline]
pub fn size(mut self, size: u32) -> Self {
self.0.size = size as _;
self
}
#[inline]
pub fn index_type(mut self, index_type: crate::vk1_0::IndexType) -> Self {
self.0.index_type = index_type as _;
self
}
#[inline]
#[doc = r" Discards all lifetime information."]
#[doc = r" Use the `Deref` and `DerefMut` implementations if possible."]
pub fn build(self) -> BindIndexBufferIndirectCommandNV {
self.0
}
}
impl<'a> std::default::Default for BindIndexBufferIndirectCommandNVBuilder<'a> {
fn default() -> BindIndexBufferIndirectCommandNVBuilder<'a> {
Self::new()
}
}
impl<'a> std::fmt::Debug for BindIndexBufferIndirectCommandNVBuilder<'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 BindIndexBufferIndirectCommandNVBuilder<'a> {
type Target = BindIndexBufferIndirectCommandNV;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl<'a> std::ops::DerefMut for BindIndexBufferIndirectCommandNVBuilder<'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/VkBindVertexBufferIndirectCommandNV.html) · Structure"]
#[doc(alias = "VkBindVertexBufferIndirectCommandNV")]
#[derive(Copy, Clone, Hash, PartialEq, Eq)]
#[repr(C)]
pub struct BindVertexBufferIndirectCommandNV {
pub buffer_address: crate::vk1_0::DeviceAddress,
pub size: u32,
pub stride: u32,
}
impl Default for BindVertexBufferIndirectCommandNV {
fn default() -> Self {
Self { buffer_address: Default::default(), size: Default::default(), stride: Default::default() }
}
}
impl std::fmt::Debug for BindVertexBufferIndirectCommandNV {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
f.debug_struct("BindVertexBufferIndirectCommandNV").field("buffer_address", &self.buffer_address).field("size", &self.size).field("stride", &self.stride).finish()
}
}
impl BindVertexBufferIndirectCommandNV {
#[inline]
pub fn into_builder<'a>(self) -> BindVertexBufferIndirectCommandNVBuilder<'a> {
BindVertexBufferIndirectCommandNVBuilder(self, std::marker::PhantomData)
}
}
#[derive(Copy, Clone)]
#[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkBindVertexBufferIndirectCommandNV.html) · Builder of [`BindVertexBufferIndirectCommandNV`]"]
#[repr(transparent)]
pub struct BindVertexBufferIndirectCommandNVBuilder<'a>(BindVertexBufferIndirectCommandNV, std::marker::PhantomData<&'a ()>);
impl<'a> BindVertexBufferIndirectCommandNVBuilder<'a> {
#[inline]
pub fn new() -> BindVertexBufferIndirectCommandNVBuilder<'a> {
BindVertexBufferIndirectCommandNVBuilder(Default::default(), std::marker::PhantomData)
}
#[inline]
pub fn buffer_address(mut self, buffer_address: crate::vk1_0::DeviceAddress) -> Self {
self.0.buffer_address = buffer_address as _;
self
}
#[inline]
pub fn size(mut self, size: u32) -> Self {
self.0.size = size as _;
self
}
#[inline]
pub fn stride(mut self, stride: u32) -> Self {
self.0.stride = stride as _;
self
}
#[inline]
#[doc = r" Discards all lifetime information."]
#[doc = r" Use the `Deref` and `DerefMut` implementations if possible."]
pub fn build(self) -> BindVertexBufferIndirectCommandNV {
self.0
}
}
impl<'a> std::default::Default for BindVertexBufferIndirectCommandNVBuilder<'a> {
fn default() -> BindVertexBufferIndirectCommandNVBuilder<'a> {
Self::new()
}
}
impl<'a> std::fmt::Debug for BindVertexBufferIndirectCommandNVBuilder<'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 BindVertexBufferIndirectCommandNVBuilder<'a> {
type Target = BindVertexBufferIndirectCommandNV;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl<'a> std::ops::DerefMut for BindVertexBufferIndirectCommandNVBuilder<'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/VkSetStateFlagsIndirectCommandNV.html) · Structure"]
#[doc(alias = "VkSetStateFlagsIndirectCommandNV")]
#[derive(Copy, Clone, Hash, PartialEq, Eq)]
#[repr(C)]
pub struct SetStateFlagsIndirectCommandNV {
pub data: u32,
}
impl Default for SetStateFlagsIndirectCommandNV {
fn default() -> Self {
Self { data: Default::default() }
}
}
impl std::fmt::Debug for SetStateFlagsIndirectCommandNV {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
f.debug_struct("SetStateFlagsIndirectCommandNV").field("data", &self.data).finish()
}
}
impl SetStateFlagsIndirectCommandNV {
#[inline]
pub fn into_builder<'a>(self) -> SetStateFlagsIndirectCommandNVBuilder<'a> {
SetStateFlagsIndirectCommandNVBuilder(self, std::marker::PhantomData)
}
}
#[derive(Copy, Clone)]
#[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkSetStateFlagsIndirectCommandNV.html) · Builder of [`SetStateFlagsIndirectCommandNV`]"]
#[repr(transparent)]
pub struct SetStateFlagsIndirectCommandNVBuilder<'a>(SetStateFlagsIndirectCommandNV, std::marker::PhantomData<&'a ()>);
impl<'a> SetStateFlagsIndirectCommandNVBuilder<'a> {
#[inline]
pub fn new() -> SetStateFlagsIndirectCommandNVBuilder<'a> {
SetStateFlagsIndirectCommandNVBuilder(Default::default(), std::marker::PhantomData)
}
#[inline]
pub fn data(mut self, data: u32) -> Self {
self.0.data = data as _;
self
}
#[inline]
#[doc = r" Discards all lifetime information."]
#[doc = r" Use the `Deref` and `DerefMut` implementations if possible."]
pub fn build(self) -> SetStateFlagsIndirectCommandNV {
self.0
}
}
impl<'a> std::default::Default for SetStateFlagsIndirectCommandNVBuilder<'a> {
fn default() -> SetStateFlagsIndirectCommandNVBuilder<'a> {
Self::new()
}
}
impl<'a> std::fmt::Debug for SetStateFlagsIndirectCommandNVBuilder<'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 SetStateFlagsIndirectCommandNVBuilder<'a> {
type Target = SetStateFlagsIndirectCommandNV;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl<'a> std::ops::DerefMut for SetStateFlagsIndirectCommandNVBuilder<'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/VkIndirectCommandsStreamNV.html) · Structure"]
#[doc(alias = "VkIndirectCommandsStreamNV")]
#[derive(Copy, Clone, Hash, PartialEq, Eq)]
#[repr(C)]
pub struct IndirectCommandsStreamNV {
pub buffer: crate::vk1_0::Buffer,
pub offset: crate::vk1_0::DeviceSize,
}
impl Default for IndirectCommandsStreamNV {
fn default() -> Self {
Self { buffer: Default::default(), offset: Default::default() }
}
}
impl std::fmt::Debug for IndirectCommandsStreamNV {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
f.debug_struct("IndirectCommandsStreamNV").field("buffer", &self.buffer).field("offset", &self.offset).finish()
}
}
impl IndirectCommandsStreamNV {
#[inline]
pub fn into_builder<'a>(self) -> IndirectCommandsStreamNVBuilder<'a> {
IndirectCommandsStreamNVBuilder(self, std::marker::PhantomData)
}
}
#[derive(Copy, Clone)]
#[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkIndirectCommandsStreamNV.html) · Builder of [`IndirectCommandsStreamNV`]"]
#[repr(transparent)]
pub struct IndirectCommandsStreamNVBuilder<'a>(IndirectCommandsStreamNV, std::marker::PhantomData<&'a ()>);
impl<'a> IndirectCommandsStreamNVBuilder<'a> {
#[inline]
pub fn new() -> IndirectCommandsStreamNVBuilder<'a> {
IndirectCommandsStreamNVBuilder(Default::default(), std::marker::PhantomData)
}
#[inline]
pub fn buffer(mut self, buffer: crate::vk1_0::Buffer) -> Self {
self.0.buffer = buffer as _;
self
}
#[inline]
pub fn offset(mut self, offset: crate::vk1_0::DeviceSize) -> Self {
self.0.offset = offset as _;
self
}
#[inline]
#[doc = r" Discards all lifetime information."]
#[doc = r" Use the `Deref` and `DerefMut` implementations if possible."]
pub fn build(self) -> IndirectCommandsStreamNV {
self.0
}
}
impl<'a> std::default::Default for IndirectCommandsStreamNVBuilder<'a> {
fn default() -> IndirectCommandsStreamNVBuilder<'a> {
Self::new()
}
}
impl<'a> std::fmt::Debug for IndirectCommandsStreamNVBuilder<'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 IndirectCommandsStreamNVBuilder<'a> {
type Target = IndirectCommandsStreamNV;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl<'a> std::ops::DerefMut for IndirectCommandsStreamNVBuilder<'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/VkIndirectCommandsLayoutTokenNV.html) · Structure"]
#[doc(alias = "VkIndirectCommandsLayoutTokenNV")]
#[derive(Copy, Clone)]
#[repr(C)]
pub struct IndirectCommandsLayoutTokenNV {
pub s_type: crate::vk1_0::StructureType,
pub p_next: *const std::ffi::c_void,
pub token_type: crate::extensions::nv_device_generated_commands::IndirectCommandsTokenTypeNV,
pub stream: u32,
pub offset: u32,
pub vertex_binding_unit: u32,
pub vertex_dynamic_stride: crate::vk1_0::Bool32,
pub pushconstant_pipeline_layout: crate::vk1_0::PipelineLayout,
pub pushconstant_shader_stage_flags: crate::vk1_0::ShaderStageFlags,
pub pushconstant_offset: u32,
pub pushconstant_size: u32,
pub indirect_state_flags: crate::extensions::nv_device_generated_commands::IndirectStateFlagsNV,
pub index_type_count: u32,
pub p_index_types: *const crate::vk1_0::IndexType,
pub p_index_type_values: *const u32,
}
impl IndirectCommandsLayoutTokenNV {
pub const STRUCTURE_TYPE: crate::vk1_0::StructureType = crate::vk1_0::StructureType::INDIRECT_COMMANDS_LAYOUT_TOKEN_NV;
}
impl Default for IndirectCommandsLayoutTokenNV {
fn default() -> Self {
Self { s_type: Self::STRUCTURE_TYPE, p_next: std::ptr::null(), token_type: Default::default(), stream: Default::default(), offset: Default::default(), vertex_binding_unit: Default::default(), vertex_dynamic_stride: Default::default(), pushconstant_pipeline_layout: Default::default(), pushconstant_shader_stage_flags: Default::default(), pushconstant_offset: Default::default(), pushconstant_size: Default::default(), indirect_state_flags: Default::default(), index_type_count: Default::default(), p_index_types: std::ptr::null(), p_index_type_values: std::ptr::null() }
}
}
impl std::fmt::Debug for IndirectCommandsLayoutTokenNV {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
f.debug_struct("IndirectCommandsLayoutTokenNV").field("s_type", &self.s_type).field("p_next", &self.p_next).field("token_type", &self.token_type).field("stream", &self.stream).field("offset", &self.offset).field("vertex_binding_unit", &self.vertex_binding_unit).field("vertex_dynamic_stride", &(self.vertex_dynamic_stride != 0)).field("pushconstant_pipeline_layout", &self.pushconstant_pipeline_layout).field("pushconstant_shader_stage_flags", &self.pushconstant_shader_stage_flags).field("pushconstant_offset", &self.pushconstant_offset).field("pushconstant_size", &self.pushconstant_size).field("indirect_state_flags", &self.indirect_state_flags).field("index_type_count", &self.index_type_count).field("p_index_types", &self.p_index_types).field("p_index_type_values", &self.p_index_type_values).finish()
}
}
impl IndirectCommandsLayoutTokenNV {
#[inline]
pub fn into_builder<'a>(self) -> IndirectCommandsLayoutTokenNVBuilder<'a> {
IndirectCommandsLayoutTokenNVBuilder(self, std::marker::PhantomData)
}
}
#[derive(Copy, Clone)]
#[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkIndirectCommandsLayoutTokenNV.html) · Builder of [`IndirectCommandsLayoutTokenNV`]"]
#[repr(transparent)]
pub struct IndirectCommandsLayoutTokenNVBuilder<'a>(IndirectCommandsLayoutTokenNV, std::marker::PhantomData<&'a ()>);
impl<'a> IndirectCommandsLayoutTokenNVBuilder<'a> {
#[inline]
pub fn new() -> IndirectCommandsLayoutTokenNVBuilder<'a> {
IndirectCommandsLayoutTokenNVBuilder(Default::default(), std::marker::PhantomData)
}
#[inline]
pub fn token_type(mut self, token_type: crate::extensions::nv_device_generated_commands::IndirectCommandsTokenTypeNV) -> Self {
self.0.token_type = token_type as _;
self
}
#[inline]
pub fn stream(mut self, stream: u32) -> Self {
self.0.stream = stream as _;
self
}
#[inline]
pub fn offset(mut self, offset: u32) -> Self {
self.0.offset = offset as _;
self
}
#[inline]
pub fn vertex_binding_unit(mut self, vertex_binding_unit: u32) -> Self {
self.0.vertex_binding_unit = vertex_binding_unit as _;
self
}
#[inline]
pub fn vertex_dynamic_stride(mut self, vertex_dynamic_stride: bool) -> Self {
self.0.vertex_dynamic_stride = vertex_dynamic_stride as _;
self
}
#[inline]
pub fn pushconstant_pipeline_layout(mut self, pushconstant_pipeline_layout: crate::vk1_0::PipelineLayout) -> Self {
self.0.pushconstant_pipeline_layout = pushconstant_pipeline_layout as _;
self
}
#[inline]
pub fn pushconstant_shader_stage_flags(mut self, pushconstant_shader_stage_flags: crate::vk1_0::ShaderStageFlags) -> Self {
self.0.pushconstant_shader_stage_flags = pushconstant_shader_stage_flags as _;
self
}
#[inline]
pub fn pushconstant_offset(mut self, pushconstant_offset: u32) -> Self {
self.0.pushconstant_offset = pushconstant_offset as _;
self
}
#[inline]
pub fn pushconstant_size(mut self, pushconstant_size: u32) -> Self {
self.0.pushconstant_size = pushconstant_size as _;
self
}
#[inline]
pub fn indirect_state_flags(mut self, indirect_state_flags: crate::extensions::nv_device_generated_commands::IndirectStateFlagsNV) -> Self {
self.0.indirect_state_flags = indirect_state_flags as _;
self
}
#[inline]
pub fn index_types(mut self, index_types: &'a [crate::vk1_0::IndexType]) -> Self {
self.0.p_index_types = index_types.as_ptr() as _;
self.0.index_type_count = index_types.len() as _;
self
}
#[inline]
pub fn index_type_values(mut self, index_type_values: &'a [u32]) -> Self {
self.0.p_index_type_values = index_type_values.as_ptr() as _;
self.0.index_type_count = index_type_values.len() as _;
self
}
#[inline]
#[doc = r" Discards all lifetime information."]
#[doc = r" Use the `Deref` and `DerefMut` implementations if possible."]
pub fn build(self) -> IndirectCommandsLayoutTokenNV {
self.0
}
}
impl<'a> std::default::Default for IndirectCommandsLayoutTokenNVBuilder<'a> {
fn default() -> IndirectCommandsLayoutTokenNVBuilder<'a> {
Self::new()
}
}
impl<'a> std::fmt::Debug for IndirectCommandsLayoutTokenNVBuilder<'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 IndirectCommandsLayoutTokenNVBuilder<'a> {
type Target = IndirectCommandsLayoutTokenNV;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl<'a> std::ops::DerefMut for IndirectCommandsLayoutTokenNVBuilder<'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/VkIndirectCommandsLayoutCreateInfoNV.html) · Structure"]
#[doc(alias = "VkIndirectCommandsLayoutCreateInfoNV")]
#[derive(Copy, Clone)]
#[repr(C)]
pub struct IndirectCommandsLayoutCreateInfoNV {
pub s_type: crate::vk1_0::StructureType,
pub p_next: *const std::ffi::c_void,
pub flags: crate::extensions::nv_device_generated_commands::IndirectCommandsLayoutUsageFlagsNV,
pub pipeline_bind_point: crate::vk1_0::PipelineBindPoint,
pub token_count: u32,
pub p_tokens: *const crate::extensions::nv_device_generated_commands::IndirectCommandsLayoutTokenNV,
pub stream_count: u32,
pub p_stream_strides: *const u32,
}
impl IndirectCommandsLayoutCreateInfoNV {
pub const STRUCTURE_TYPE: crate::vk1_0::StructureType = crate::vk1_0::StructureType::INDIRECT_COMMANDS_LAYOUT_CREATE_INFO_NV;
}
impl Default for IndirectCommandsLayoutCreateInfoNV {
fn default() -> Self {
Self { s_type: Self::STRUCTURE_TYPE, p_next: std::ptr::null(), flags: Default::default(), pipeline_bind_point: Default::default(), token_count: Default::default(), p_tokens: std::ptr::null(), stream_count: Default::default(), p_stream_strides: std::ptr::null() }
}
}
impl std::fmt::Debug for IndirectCommandsLayoutCreateInfoNV {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
f.debug_struct("IndirectCommandsLayoutCreateInfoNV").field("s_type", &self.s_type).field("p_next", &self.p_next).field("flags", &self.flags).field("pipeline_bind_point", &self.pipeline_bind_point).field("token_count", &self.token_count).field("p_tokens", &self.p_tokens).field("stream_count", &self.stream_count).field("p_stream_strides", &self.p_stream_strides).finish()
}
}
impl IndirectCommandsLayoutCreateInfoNV {
#[inline]
pub fn into_builder<'a>(self) -> IndirectCommandsLayoutCreateInfoNVBuilder<'a> {
IndirectCommandsLayoutCreateInfoNVBuilder(self, std::marker::PhantomData)
}
}
#[derive(Copy, Clone)]
#[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkIndirectCommandsLayoutCreateInfoNV.html) · Builder of [`IndirectCommandsLayoutCreateInfoNV`]"]
#[repr(transparent)]
pub struct IndirectCommandsLayoutCreateInfoNVBuilder<'a>(IndirectCommandsLayoutCreateInfoNV, std::marker::PhantomData<&'a ()>);
impl<'a> IndirectCommandsLayoutCreateInfoNVBuilder<'a> {
#[inline]
pub fn new() -> IndirectCommandsLayoutCreateInfoNVBuilder<'a> {
IndirectCommandsLayoutCreateInfoNVBuilder(Default::default(), std::marker::PhantomData)
}
#[inline]
pub fn flags(mut self, flags: crate::extensions::nv_device_generated_commands::IndirectCommandsLayoutUsageFlagsNV) -> Self {
self.0.flags = flags as _;
self
}
#[inline]
pub fn pipeline_bind_point(mut self, pipeline_bind_point: crate::vk1_0::PipelineBindPoint) -> Self {
self.0.pipeline_bind_point = pipeline_bind_point as _;
self
}
#[inline]
pub fn tokens(mut self, tokens: &'a [crate::extensions::nv_device_generated_commands::IndirectCommandsLayoutTokenNVBuilder]) -> Self {
self.0.p_tokens = tokens.as_ptr() as _;
self.0.token_count = tokens.len() as _;
self
}
#[inline]
pub fn stream_strides(mut self, stream_strides: &'a [u32]) -> Self {
self.0.p_stream_strides = stream_strides.as_ptr() as _;
self.0.stream_count = stream_strides.len() as _;
self
}
#[inline]
#[doc = r" Discards all lifetime information."]
#[doc = r" Use the `Deref` and `DerefMut` implementations if possible."]
pub fn build(self) -> IndirectCommandsLayoutCreateInfoNV {
self.0
}
}
impl<'a> std::default::Default for IndirectCommandsLayoutCreateInfoNVBuilder<'a> {
fn default() -> IndirectCommandsLayoutCreateInfoNVBuilder<'a> {
Self::new()
}
}
impl<'a> std::fmt::Debug for IndirectCommandsLayoutCreateInfoNVBuilder<'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 IndirectCommandsLayoutCreateInfoNVBuilder<'a> {
type Target = IndirectCommandsLayoutCreateInfoNV;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl<'a> std::ops::DerefMut for IndirectCommandsLayoutCreateInfoNVBuilder<'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/VkGeneratedCommandsInfoNV.html) · Structure"]
#[doc(alias = "VkGeneratedCommandsInfoNV")]
#[derive(Copy, Clone)]
#[repr(C)]
pub struct GeneratedCommandsInfoNV {
pub s_type: crate::vk1_0::StructureType,
pub p_next: *const std::ffi::c_void,
pub pipeline_bind_point: crate::vk1_0::PipelineBindPoint,
pub pipeline: crate::vk1_0::Pipeline,
pub indirect_commands_layout: crate::extensions::nv_device_generated_commands::IndirectCommandsLayoutNV,
pub stream_count: u32,
pub p_streams: *const crate::extensions::nv_device_generated_commands::IndirectCommandsStreamNV,
pub sequences_count: u32,
pub preprocess_buffer: crate::vk1_0::Buffer,
pub preprocess_offset: crate::vk1_0::DeviceSize,
pub preprocess_size: crate::vk1_0::DeviceSize,
pub sequences_count_buffer: crate::vk1_0::Buffer,
pub sequences_count_offset: crate::vk1_0::DeviceSize,
pub sequences_index_buffer: crate::vk1_0::Buffer,
pub sequences_index_offset: crate::vk1_0::DeviceSize,
}
impl GeneratedCommandsInfoNV {
pub const STRUCTURE_TYPE: crate::vk1_0::StructureType = crate::vk1_0::StructureType::GENERATED_COMMANDS_INFO_NV;
}
impl Default for GeneratedCommandsInfoNV {
fn default() -> Self {
Self { s_type: Self::STRUCTURE_TYPE, p_next: std::ptr::null(), pipeline_bind_point: Default::default(), pipeline: Default::default(), indirect_commands_layout: Default::default(), stream_count: Default::default(), p_streams: std::ptr::null(), sequences_count: Default::default(), preprocess_buffer: Default::default(), preprocess_offset: Default::default(), preprocess_size: Default::default(), sequences_count_buffer: Default::default(), sequences_count_offset: Default::default(), sequences_index_buffer: Default::default(), sequences_index_offset: Default::default() }
}
}
impl std::fmt::Debug for GeneratedCommandsInfoNV {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
f.debug_struct("GeneratedCommandsInfoNV").field("s_type", &self.s_type).field("p_next", &self.p_next).field("pipeline_bind_point", &self.pipeline_bind_point).field("pipeline", &self.pipeline).field("indirect_commands_layout", &self.indirect_commands_layout).field("stream_count", &self.stream_count).field("p_streams", &self.p_streams).field("sequences_count", &self.sequences_count).field("preprocess_buffer", &self.preprocess_buffer).field("preprocess_offset", &self.preprocess_offset).field("preprocess_size", &self.preprocess_size).field("sequences_count_buffer", &self.sequences_count_buffer).field("sequences_count_offset", &self.sequences_count_offset).field("sequences_index_buffer", &self.sequences_index_buffer).field("sequences_index_offset", &self.sequences_index_offset).finish()
}
}
impl GeneratedCommandsInfoNV {
#[inline]
pub fn into_builder<'a>(self) -> GeneratedCommandsInfoNVBuilder<'a> {
GeneratedCommandsInfoNVBuilder(self, std::marker::PhantomData)
}
}
#[derive(Copy, Clone)]
#[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkGeneratedCommandsInfoNV.html) · Builder of [`GeneratedCommandsInfoNV`]"]
#[repr(transparent)]
pub struct GeneratedCommandsInfoNVBuilder<'a>(GeneratedCommandsInfoNV, std::marker::PhantomData<&'a ()>);
impl<'a> GeneratedCommandsInfoNVBuilder<'a> {
#[inline]
pub fn new() -> GeneratedCommandsInfoNVBuilder<'a> {
GeneratedCommandsInfoNVBuilder(Default::default(), std::marker::PhantomData)
}
#[inline]
pub fn pipeline_bind_point(mut self, pipeline_bind_point: crate::vk1_0::PipelineBindPoint) -> Self {
self.0.pipeline_bind_point = pipeline_bind_point as _;
self
}
#[inline]
pub fn pipeline(mut self, pipeline: crate::vk1_0::Pipeline) -> Self {
self.0.pipeline = pipeline as _;
self
}
#[inline]
pub fn indirect_commands_layout(mut self, indirect_commands_layout: crate::extensions::nv_device_generated_commands::IndirectCommandsLayoutNV) -> Self {
self.0.indirect_commands_layout = indirect_commands_layout as _;
self
}
#[inline]
pub fn streams(mut self, streams: &'a [crate::extensions::nv_device_generated_commands::IndirectCommandsStreamNVBuilder]) -> Self {
self.0.p_streams = streams.as_ptr() as _;
self.0.stream_count = streams.len() as _;
self
}
#[inline]
pub fn sequences_count(mut self, sequences_count: u32) -> Self {
self.0.sequences_count = sequences_count as _;
self
}
#[inline]
pub fn preprocess_buffer(mut self, preprocess_buffer: crate::vk1_0::Buffer) -> Self {
self.0.preprocess_buffer = preprocess_buffer as _;
self
}
#[inline]
pub fn preprocess_offset(mut self, preprocess_offset: crate::vk1_0::DeviceSize) -> Self {
self.0.preprocess_offset = preprocess_offset as _;
self
}
#[inline]
pub fn preprocess_size(mut self, preprocess_size: crate::vk1_0::DeviceSize) -> Self {
self.0.preprocess_size = preprocess_size as _;
self
}
#[inline]
pub fn sequences_count_buffer(mut self, sequences_count_buffer: crate::vk1_0::Buffer) -> Self {
self.0.sequences_count_buffer = sequences_count_buffer as _;
self
}
#[inline]
pub fn sequences_count_offset(mut self, sequences_count_offset: crate::vk1_0::DeviceSize) -> Self {
self.0.sequences_count_offset = sequences_count_offset as _;
self
}
#[inline]
pub fn sequences_index_buffer(mut self, sequences_index_buffer: crate::vk1_0::Buffer) -> Self {
self.0.sequences_index_buffer = sequences_index_buffer as _;
self
}
#[inline]
pub fn sequences_index_offset(mut self, sequences_index_offset: crate::vk1_0::DeviceSize) -> Self {
self.0.sequences_index_offset = sequences_index_offset as _;
self
}
#[inline]
#[doc = r" Discards all lifetime information."]
#[doc = r" Use the `Deref` and `DerefMut` implementations if possible."]
pub fn build(self) -> GeneratedCommandsInfoNV {
self.0
}
}
impl<'a> std::default::Default for GeneratedCommandsInfoNVBuilder<'a> {
fn default() -> GeneratedCommandsInfoNVBuilder<'a> {
Self::new()
}
}
impl<'a> std::fmt::Debug for GeneratedCommandsInfoNVBuilder<'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 GeneratedCommandsInfoNVBuilder<'a> {
type Target = GeneratedCommandsInfoNV;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl<'a> std::ops::DerefMut for GeneratedCommandsInfoNVBuilder<'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/VkGeneratedCommandsMemoryRequirementsInfoNV.html) · Structure"]
#[doc(alias = "VkGeneratedCommandsMemoryRequirementsInfoNV")]
#[derive(Copy, Clone)]
#[repr(C)]
pub struct GeneratedCommandsMemoryRequirementsInfoNV {
pub s_type: crate::vk1_0::StructureType,
pub p_next: *const std::ffi::c_void,
pub pipeline_bind_point: crate::vk1_0::PipelineBindPoint,
pub pipeline: crate::vk1_0::Pipeline,
pub indirect_commands_layout: crate::extensions::nv_device_generated_commands::IndirectCommandsLayoutNV,
pub max_sequences_count: u32,
}
impl GeneratedCommandsMemoryRequirementsInfoNV {
pub const STRUCTURE_TYPE: crate::vk1_0::StructureType = crate::vk1_0::StructureType::GENERATED_COMMANDS_MEMORY_REQUIREMENTS_INFO_NV;
}
impl Default for GeneratedCommandsMemoryRequirementsInfoNV {
fn default() -> Self {
Self { s_type: Self::STRUCTURE_TYPE, p_next: std::ptr::null(), pipeline_bind_point: Default::default(), pipeline: Default::default(), indirect_commands_layout: Default::default(), max_sequences_count: Default::default() }
}
}
impl std::fmt::Debug for GeneratedCommandsMemoryRequirementsInfoNV {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
f.debug_struct("GeneratedCommandsMemoryRequirementsInfoNV").field("s_type", &self.s_type).field("p_next", &self.p_next).field("pipeline_bind_point", &self.pipeline_bind_point).field("pipeline", &self.pipeline).field("indirect_commands_layout", &self.indirect_commands_layout).field("max_sequences_count", &self.max_sequences_count).finish()
}
}
impl GeneratedCommandsMemoryRequirementsInfoNV {
#[inline]
pub fn into_builder<'a>(self) -> GeneratedCommandsMemoryRequirementsInfoNVBuilder<'a> {
GeneratedCommandsMemoryRequirementsInfoNVBuilder(self, std::marker::PhantomData)
}
}
#[derive(Copy, Clone)]
#[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkGeneratedCommandsMemoryRequirementsInfoNV.html) · Builder of [`GeneratedCommandsMemoryRequirementsInfoNV`]"]
#[repr(transparent)]
pub struct GeneratedCommandsMemoryRequirementsInfoNVBuilder<'a>(GeneratedCommandsMemoryRequirementsInfoNV, std::marker::PhantomData<&'a ()>);
impl<'a> GeneratedCommandsMemoryRequirementsInfoNVBuilder<'a> {
#[inline]
pub fn new() -> GeneratedCommandsMemoryRequirementsInfoNVBuilder<'a> {
GeneratedCommandsMemoryRequirementsInfoNVBuilder(Default::default(), std::marker::PhantomData)
}
#[inline]
pub fn pipeline_bind_point(mut self, pipeline_bind_point: crate::vk1_0::PipelineBindPoint) -> Self {
self.0.pipeline_bind_point = pipeline_bind_point as _;
self
}
#[inline]
pub fn pipeline(mut self, pipeline: crate::vk1_0::Pipeline) -> Self {
self.0.pipeline = pipeline as _;
self
}
#[inline]
pub fn indirect_commands_layout(mut self, indirect_commands_layout: crate::extensions::nv_device_generated_commands::IndirectCommandsLayoutNV) -> Self {
self.0.indirect_commands_layout = indirect_commands_layout as _;
self
}
#[inline]
pub fn max_sequences_count(mut self, max_sequences_count: u32) -> Self {
self.0.max_sequences_count = max_sequences_count as _;
self
}
#[inline]
#[doc = r" Discards all lifetime information."]
#[doc = r" Use the `Deref` and `DerefMut` implementations if possible."]
pub fn build(self) -> GeneratedCommandsMemoryRequirementsInfoNV {
self.0
}
}
impl<'a> std::default::Default for GeneratedCommandsMemoryRequirementsInfoNVBuilder<'a> {
fn default() -> GeneratedCommandsMemoryRequirementsInfoNVBuilder<'a> {
Self::new()
}
}
impl<'a> std::fmt::Debug for GeneratedCommandsMemoryRequirementsInfoNVBuilder<'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 GeneratedCommandsMemoryRequirementsInfoNVBuilder<'a> {
type Target = GeneratedCommandsMemoryRequirementsInfoNV;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl<'a> std::ops::DerefMut for GeneratedCommandsMemoryRequirementsInfoNVBuilder<'a> {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.0
}
}
impl<'a> crate::ExtendableFromMut<'a, PhysicalDeviceDeviceGeneratedCommandsFeaturesNV> for crate::vk1_1::PhysicalDeviceFeatures2Builder<'a> {}
impl<'a> crate::ExtendableFromMut<'a, PhysicalDeviceDeviceGeneratedCommandsFeaturesNVBuilder<'_>> for crate::vk1_1::PhysicalDeviceFeatures2Builder<'a> {}
impl<'a> crate::ExtendableFromMut<'a, PhysicalDeviceDeviceGeneratedCommandsPropertiesNV> for crate::vk1_1::PhysicalDeviceProperties2Builder<'a> {}
impl<'a> crate::ExtendableFromMut<'a, PhysicalDeviceDeviceGeneratedCommandsPropertiesNVBuilder<'_>> for crate::vk1_1::PhysicalDeviceProperties2Builder<'a> {}
#[doc = "Provided by [`crate::extensions::nv_device_generated_commands`]"]
impl crate::DeviceLoader {
#[inline]
#[track_caller]
#[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkCmdExecuteGeneratedCommandsNV.html) · Function"]
#[doc(alias = "vkCmdExecuteGeneratedCommandsNV")]
pub unsafe fn cmd_execute_generated_commands_nv(&self, command_buffer: crate::vk1_0::CommandBuffer, is_preprocessed: bool, generated_commands_info: &crate::extensions::nv_device_generated_commands::GeneratedCommandsInfoNV) -> () {
let _function = self.cmd_execute_generated_commands_nv.expect(crate::NOT_LOADED_MESSAGE);
let _return = _function(command_buffer as _, is_preprocessed as _, generated_commands_info as _);
()
}
#[inline]
#[track_caller]
#[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkCmdPreprocessGeneratedCommandsNV.html) · Function"]
#[doc(alias = "vkCmdPreprocessGeneratedCommandsNV")]
pub unsafe fn cmd_preprocess_generated_commands_nv(&self, command_buffer: crate::vk1_0::CommandBuffer, generated_commands_info: &crate::extensions::nv_device_generated_commands::GeneratedCommandsInfoNV) -> () {
let _function = self.cmd_preprocess_generated_commands_nv.expect(crate::NOT_LOADED_MESSAGE);
let _return = _function(command_buffer as _, generated_commands_info as _);
()
}
#[inline]
#[track_caller]
#[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkCmdBindPipelineShaderGroupNV.html) · Function"]
#[doc(alias = "vkCmdBindPipelineShaderGroupNV")]
pub unsafe fn cmd_bind_pipeline_shader_group_nv(&self, command_buffer: crate::vk1_0::CommandBuffer, pipeline_bind_point: crate::vk1_0::PipelineBindPoint, pipeline: crate::vk1_0::Pipeline, group_index: u32) -> () {
let _function = self.cmd_bind_pipeline_shader_group_nv.expect(crate::NOT_LOADED_MESSAGE);
let _return = _function(command_buffer as _, pipeline_bind_point as _, pipeline as _, group_index as _);
()
}
#[inline]
#[track_caller]
#[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkGetGeneratedCommandsMemoryRequirementsNV.html) · Function"]
#[doc(alias = "vkGetGeneratedCommandsMemoryRequirementsNV")]
pub unsafe fn get_generated_commands_memory_requirements_nv(&self, info: &crate::extensions::nv_device_generated_commands::GeneratedCommandsMemoryRequirementsInfoNV, memory_requirements: Option<crate::vk1_1::MemoryRequirements2>) -> crate::vk1_1::MemoryRequirements2 {
let _function = self.get_generated_commands_memory_requirements_nv.expect(crate::NOT_LOADED_MESSAGE);
let mut memory_requirements = match memory_requirements {
Some(v) => v,
None => Default::default(),
};
let _return = _function(self.handle, info as _, &mut memory_requirements);
memory_requirements
}
#[inline]
#[track_caller]
#[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkCreateIndirectCommandsLayoutNV.html) · Function"]
#[doc(alias = "vkCreateIndirectCommandsLayoutNV")]
pub unsafe fn create_indirect_commands_layout_nv(&self, create_info: &crate::extensions::nv_device_generated_commands::IndirectCommandsLayoutCreateInfoNV, allocator: Option<&crate::vk1_0::AllocationCallbacks>) -> crate::utils::VulkanResult<crate::extensions::nv_device_generated_commands::IndirectCommandsLayoutNV> {
let _function = self.create_indirect_commands_layout_nv.expect(crate::NOT_LOADED_MESSAGE);
let mut indirect_commands_layout = Default::default();
let _return = _function(
self.handle,
create_info as _,
match allocator {
Some(v) => v,
None => std::ptr::null(),
},
&mut indirect_commands_layout,
);
crate::utils::VulkanResult::new(_return, indirect_commands_layout)
}
#[inline]
#[track_caller]
#[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkDestroyIndirectCommandsLayoutNV.html) · Function"]
#[doc(alias = "vkDestroyIndirectCommandsLayoutNV")]
pub unsafe fn destroy_indirect_commands_layout_nv(&self, indirect_commands_layout: Option<crate::extensions::nv_device_generated_commands::IndirectCommandsLayoutNV>, allocator: Option<&crate::vk1_0::AllocationCallbacks>) -> () {
let _function = self.destroy_indirect_commands_layout_nv.expect(crate::NOT_LOADED_MESSAGE);
let _return = _function(
self.handle,
match indirect_commands_layout {
Some(v) => v,
None => Default::default(),
},
match allocator {
Some(v) => v,
None => std::ptr::null(),
},
);
()
}
}