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
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVec3 {
pub x: f32,
pub y: f32,
pub z: f32,
}
#[test] fn check_size_PxVec3() { assert_eq!(std::mem::size_of::<PxVec3>(), 12); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxQuat {
pub x: f32,
pub y: f32,
pub z: f32,
pub w: f32,
}
#[test] fn check_size_PxQuat() { assert_eq!(std::mem::size_of::<PxQuat>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxMat33 {
pub column0: PxVec3,
pub column1: PxVec3,
pub column2: PxVec3,
}
#[test] fn check_size_PxMat33() { assert_eq!(std::mem::size_of::<PxMat33>(), 36); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxPlane {
pub n: PxVec3,
pub d: f32,
}
#[test] fn check_size_PxPlane() { assert_eq!(std::mem::size_of::<PxPlane>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxTransform {
pub q: PxQuat,
pub p: PxVec3,
}
#[test] fn check_size_PxTransform() { assert_eq!(std::mem::size_of::<PxTransform>(), 28); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVec4 {
pub x: f32,
pub y: f32,
pub z: f32,
pub w: f32,
}
#[test] fn check_size_PxVec4() { assert_eq!(std::mem::size_of::<PxVec4>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxMat44 {
pub column0: PxVec4,
pub column1: PxVec4,
pub column2: PxVec4,
pub column3: PxVec4,
}
#[test] fn check_size_PxMat44() { assert_eq!(std::mem::size_of::<PxMat44>(), 64); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxBounds3 {
pub minimum: PxVec3,
pub maximum: PxVec3,
}
#[test] fn check_size_PxBounds3() { assert_eq!(std::mem::size_of::<PxBounds3>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVec2 {
pub x: f32,
pub y: f32,
}
#[test] fn check_size_PxVec2() { assert_eq!(std::mem::size_of::<PxVec2>(), 8); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxStridedData {
pub stride: u32,
pub structgen_pad0: [u8; 4],
pub data: *const std::ffi::c_void,
}
#[test] fn check_size_PxStridedData() { assert_eq!(std::mem::size_of::<PxStridedData>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxBoundedData {
pub stride: u32,
pub structgen_pad0: [u8; 4],
pub data: *const std::ffi::c_void,
pub count: u32,
pub structgen_pad1: [u8; 4],
}
#[test] fn check_size_PxBoundedData() { assert_eq!(std::mem::size_of::<PxBoundedData>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxDebugPoint {
pub pos: PxVec3,
pub color: u32,
}
#[test] fn check_size_PxDebugPoint() { assert_eq!(std::mem::size_of::<PxDebugPoint>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxDebugLine {
pub pos0: PxVec3,
pub color0: u32,
pub pos1: PxVec3,
pub color1: u32,
}
#[test] fn check_size_PxDebugLine() { assert_eq!(std::mem::size_of::<PxDebugLine>(), 32); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxDebugTriangle {
pub pos0: PxVec3,
pub color0: u32,
pub pos1: PxVec3,
pub color1: u32,
pub pos2: PxVec3,
pub color2: u32,
}
#[test] fn check_size_PxDebugTriangle() { assert_eq!(std::mem::size_of::<PxDebugTriangle>(), 48); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxDebugText {
pub position: PxVec3,
pub size: f32,
pub color: u32,
pub structgen_pad0: [u8; 4],
pub string: *const i8,
}
#[test] fn check_size_PxDebugText() { assert_eq!(std::mem::size_of::<PxDebugText>(), 32); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxBase {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
}
#[test] fn check_size_PxBase() { assert_eq!(std::mem::size_of::<PxBase>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxDeserializationContext {
pub structgen_pad0: [u8; 8],
pub mExtraDataAddress: *mut u8,
}
#[test] fn check_size_PxDeserializationContext() { assert_eq!(std::mem::size_of::<PxDeserializationContext>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxTolerancesScale {
pub length: f32,
pub speed: f32,
}
#[test] fn check_size_PxTolerancesScale() { assert_eq!(std::mem::size_of::<PxTolerancesScale>(), 8); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxTask {
pub structgen_pad0: [u8; 8],
pub mContextID: usize,
pub mTm: *mut PxTaskManager,
pub mTaskID: u32,
pub structgen_pad1: [u8; 4],
}
#[test] fn check_size_PxTask() { assert_eq!(std::mem::size_of::<PxTask>(), 32); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxBaseTask {
pub structgen_pad0: [u8; 8],
pub mContextID: usize,
pub mTm: *mut PxTaskManager,
}
#[test] fn check_size_PxBaseTask() { assert_eq!(std::mem::size_of::<PxBaseTask>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxLightCpuTask {
pub structgen_pad0: [u8; 8],
pub mContextID: usize,
pub mTm: *mut PxTaskManager,
pub mCont: *mut PxBaseTask,
pub mRefCount: i32,
pub structgen_pad1: [u8; 4],
}
#[test] fn check_size_PxLightCpuTask() { assert_eq!(std::mem::size_of::<PxLightCpuTask>(), 40); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxGeometry {
pub mType: i32,
}
#[test] fn check_size_PxGeometry() { assert_eq!(std::mem::size_of::<PxGeometry>(), 4); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxBoxGeometry {
pub mType: i32,
pub halfExtents: PxVec3,
}
#[test] fn check_size_PxBoxGeometry() { assert_eq!(std::mem::size_of::<PxBoxGeometry>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxBVHStructure {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
}
#[test] fn check_size_PxBVHStructure() { assert_eq!(std::mem::size_of::<PxBVHStructure>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxCapsuleGeometry {
pub mType: i32,
pub radius: f32,
pub halfHeight: f32,
}
#[test] fn check_size_PxCapsuleGeometry() { assert_eq!(std::mem::size_of::<PxCapsuleGeometry>(), 12); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxConvexMesh {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
}
#[test] fn check_size_PxConvexMesh() { assert_eq!(std::mem::size_of::<PxConvexMesh>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxHullPolygon {
pub mPlane: [f32; 4],
pub mNbVerts: u16,
pub mIndexBase: u16,
}
#[test] fn check_size_PxHullPolygon() { assert_eq!(std::mem::size_of::<PxHullPolygon>(), 20); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxMeshScale {
pub scale: PxVec3,
pub rotation: PxQuat,
}
#[test] fn check_size_PxMeshScale() { assert_eq!(std::mem::size_of::<PxMeshScale>(), 28); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxConvexMeshGeometry {
pub mType: i32,
pub scale: PxMeshScale,
pub convexMesh: *mut PxConvexMesh,
pub meshFlags: PxConvexMeshGeometryFlags,
pub paddingFromFlags: PxPadding_3_,
pub structgen_pad0: [u8; 4],
}
#[test] fn check_size_PxConvexMeshGeometry() { assert_eq!(std::mem::size_of::<PxConvexMeshGeometry>(), 48); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxSphereGeometry {
pub mType: i32,
pub radius: f32,
}
#[test] fn check_size_PxSphereGeometry() { assert_eq!(std::mem::size_of::<PxSphereGeometry>(), 8); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxPlaneGeometry {
pub mType: i32,
}
#[test] fn check_size_PxPlaneGeometry() { assert_eq!(std::mem::size_of::<PxPlaneGeometry>(), 4); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxTriangleMesh {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
}
#[test] fn check_size_PxTriangleMesh() { assert_eq!(std::mem::size_of::<PxTriangleMesh>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxTriangleMeshGeometry {
pub mType: i32,
pub scale: PxMeshScale,
pub meshFlags: PxMeshGeometryFlags,
pub paddingFromFlags: PxPadding_3_,
pub structgen_pad0: [u8; 4],
pub triangleMesh: *mut PxTriangleMesh,
}
#[test] fn check_size_PxTriangleMeshGeometry() { assert_eq!(std::mem::size_of::<PxTriangleMeshGeometry>(), 48); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxHeightField {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
}
#[test] fn check_size_PxHeightField() { assert_eq!(std::mem::size_of::<PxHeightField>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxHeightFieldGeometry {
pub mType: i32,
pub structgen_pad0: [u8; 4],
pub heightField: *mut PxHeightField,
pub heightScale: f32,
pub rowScale: f32,
pub columnScale: f32,
pub heightFieldFlags: PxMeshGeometryFlags,
pub paddingFromFlags: PxPadding_3_,
}
#[test] fn check_size_PxHeightFieldGeometry() { assert_eq!(std::mem::size_of::<PxHeightFieldGeometry>(), 32); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxGeometryHolder {
pub structgen_pad0: [u8; 48],
}
#[test] fn check_size_PxGeometryHolder() { assert_eq!(std::mem::size_of::<PxGeometryHolder>(), 48); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxRigidActor {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
pub userData: *mut std::ffi::c_void,
}
#[test] fn check_size_PxRigidActor() { assert_eq!(std::mem::size_of::<PxRigidActor>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxShape {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
pub userData: *mut std::ffi::c_void,
}
#[test] fn check_size_PxShape() { assert_eq!(std::mem::size_of::<PxShape>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxActorShape {
pub actor: *mut PxRigidActor,
pub shape: *mut PxShape,
}
#[test] fn check_size_PxActorShape() { assert_eq!(std::mem::size_of::<PxActorShape>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxQueryHit {
pub actor: *mut PxRigidActor,
pub shape: *mut PxShape,
pub faceIndex: u32,
pub structgen_pad0: [u8; 4],
}
#[test] fn check_size_PxQueryHit() { assert_eq!(std::mem::size_of::<PxQueryHit>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxLocationHit {
pub actor: *mut PxRigidActor,
pub shape: *mut PxShape,
pub faceIndex: u32,
pub flags: PxHitFlags,
pub structgen_pad0: [u8; 2],
pub position: PxVec3,
pub normal: PxVec3,
pub distance: f32,
pub structgen_pad1: [u8; 4],
}
#[test] fn check_size_PxLocationHit() { assert_eq!(std::mem::size_of::<PxLocationHit>(), 56); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxRaycastHit {
pub actor: *mut PxRigidActor,
pub shape: *mut PxShape,
pub faceIndex: u32,
pub flags: PxHitFlags,
pub structgen_pad0: [u8; 2],
pub position: PxVec3,
pub normal: PxVec3,
pub distance: f32,
pub u: f32,
pub v: f32,
pub structgen_pad1: [u8; 4],
}
#[test] fn check_size_PxRaycastHit() { assert_eq!(std::mem::size_of::<PxRaycastHit>(), 64); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxSweepHit {
pub actor: *mut PxRigidActor,
pub shape: *mut PxShape,
pub faceIndex: u32,
pub flags: PxHitFlags,
pub structgen_pad0: [u8; 2],
pub position: PxVec3,
pub normal: PxVec3,
pub distance: f32,
pub padTo16Bytes: u32,
}
#[test] fn check_size_PxSweepHit() { assert_eq!(std::mem::size_of::<PxSweepHit>(), 56); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxHeightFieldSample {
pub height: i16,
pub materialIndex0: PxBitAndByte,
pub materialIndex1: PxBitAndByte,
}
#[test] fn check_size_PxHeightFieldSample() { assert_eq!(std::mem::size_of::<PxHeightFieldSample>(), 4); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxHeightFieldDesc {
pub nbRows: u32,
pub nbColumns: u32,
pub format: u32,
pub structgen_pad0: [u8; 4],
pub samples: PxStridedData,
pub convexEdgeThreshold: f32,
pub flags: PxHeightFieldFlags,
pub structgen_pad1: [u8; 2],
}
#[test] fn check_size_PxHeightFieldDesc() { assert_eq!(std::mem::size_of::<PxHeightFieldDesc>(), 40); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxTriangle {
pub verts: [PxVec3; 3],
}
#[test] fn check_size_PxTriangle() { assert_eq!(std::mem::size_of::<PxTriangle>(), 36); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxSimpleTriangleMesh {
pub points: PxBoundedData,
pub triangles: PxBoundedData,
pub flags: PxMeshFlags,
pub structgen_pad0: [u8; 6],
}
#[test] fn check_size_PxSimpleTriangleMesh() { assert_eq!(std::mem::size_of::<PxSimpleTriangleMesh>(), 56); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxActor {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
pub userData: *mut std::ffi::c_void,
}
#[test] fn check_size_PxActor() { assert_eq!(std::mem::size_of::<PxActor>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxScene {
pub structgen_pad0: [u8; 8],
pub userData: *mut std::ffi::c_void,
}
#[test] fn check_size_PxScene() { assert_eq!(std::mem::size_of::<PxScene>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxAggregate {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
}
#[test] fn check_size_PxAggregate() { assert_eq!(std::mem::size_of::<PxAggregate>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxArticulationBase {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
pub userData: *mut std::ffi::c_void,
}
#[test] fn check_size_PxArticulationBase() { assert_eq!(std::mem::size_of::<PxArticulationBase>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxArticulationLink {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
pub userData: *mut std::ffi::c_void,
}
#[test] fn check_size_PxArticulationLink() { assert_eq!(std::mem::size_of::<PxArticulationLink>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxArticulationJointBase {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
}
#[test] fn check_size_PxArticulationJointBase() { assert_eq!(std::mem::size_of::<PxArticulationJointBase>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxArticulation {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
pub userData: *mut std::ffi::c_void,
}
#[test] fn check_size_PxArticulation() { assert_eq!(std::mem::size_of::<PxArticulation>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxArticulationDriveCache {
pub structgen_pad0: [u8; 1],
}
#[test] fn check_size_PxArticulationDriveCache() { assert_eq!(std::mem::size_of::<PxArticulationDriveCache>(), 1); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxConstraintInvMassScale {
pub linear0: f32,
pub angular0: f32,
pub linear1: f32,
pub angular1: f32,
}
#[test] fn check_size_PxConstraintInvMassScale() { assert_eq!(std::mem::size_of::<PxConstraintInvMassScale>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxConstraint {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
}
#[test] fn check_size_PxConstraint() { assert_eq!(std::mem::size_of::<PxConstraint>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxSolverBody {
pub linearVelocity: PxVec3,
pub maxSolverNormalProgress: u16,
pub maxSolverFrictionProgress: u16,
pub angularState: PxVec3,
pub solverProgress: u32,
}
#[test] fn check_size_PxSolverBody() { assert_eq!(std::mem::size_of::<PxSolverBody>(), 32); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxSolverBodyData {
pub linearVelocity: PxVec3,
pub invMass: f32,
pub angularVelocity: PxVec3,
pub reportThreshold: f32,
pub sqrtInvInertia: PxMat33,
pub penBiasClamp: f32,
pub nodeIndex: u32,
pub maxContactImpulse: f32,
pub body2World: PxTransform,
pub lockFlags: u16,
pub pad: u16,
}
#[test] fn check_size_PxSolverBodyData() { assert_eq!(std::mem::size_of::<PxSolverBodyData>(), 112); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxTGSSolverBodyVel {
pub linearVelocity: PxVec3,
pub nbStaticInteractions: u16,
pub maxDynamicPartition: u16,
pub angularVelocity: PxVec3,
pub partitionMask: u32,
pub deltaAngDt: PxVec3,
pub maxAngVel: f32,
pub deltaLinDt: PxVec3,
pub lockFlags: u16,
pub isKinematic: bool,
pub pad: u8,
}
#[test] fn check_size_PxTGSSolverBodyVel() { assert_eq!(std::mem::size_of::<PxTGSSolverBodyVel>(), 64); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxTGSSolverBodyData {
pub originalLinearVelocity: PxVec3,
pub maxContactImpulse: f32,
pub originalAngularVelocity: PxVec3,
pub penBiasClamp: f32,
pub invMass: f32,
pub nodeIndex: u32,
pub reportThreshold: f32,
pub pad: u32,
}
#[test] fn check_size_PxTGSSolverBodyData() { assert_eq!(std::mem::size_of::<PxTGSSolverBodyData>(), 48); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxSpatialForce {
pub force: PxVec3,
pub pad0: f32,
pub torque: PxVec3,
pub pad1: f32,
}
#[test] fn check_size_PxSpatialForce() { assert_eq!(std::mem::size_of::<PxSpatialForce>(), 32); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxArticulationRootLinkData {
pub transform: PxTransform,
pub worldLinVel: PxVec3,
pub worldAngVel: PxVec3,
pub worldLinAccel: PxVec3,
pub worldAngAccel: PxVec3,
}
#[test] fn check_size_PxArticulationRootLinkData() { assert_eq!(std::mem::size_of::<PxArticulationRootLinkData>(), 76); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxArticulationCache {
pub externalForces: *mut PxSpatialForce,
pub denseJacobian: *mut f32,
pub massMatrix: *mut f32,
pub jointVelocity: *mut f32,
pub jointAcceleration: *mut f32,
pub jointPosition: *mut f32,
pub jointForce: *mut f32,
pub structgen_pad0: [u8; 16],
pub rootLinkData: *mut PxArticulationRootLinkData,
pub coefficientMatrix: *mut f32,
pub lambda: *mut f32,
pub scratchMemory: *mut std::ffi::c_void,
pub scratchAllocator: *mut std::ffi::c_void,
pub version: u32,
pub structgen_pad1: [u8; 4],
}
#[test] fn check_size_PxArticulationCache() { assert_eq!(std::mem::size_of::<PxArticulationCache>(), 120); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxArticulationReducedCoordinate {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
pub userData: *mut std::ffi::c_void,
}
#[test] fn check_size_PxArticulationReducedCoordinate() { assert_eq!(std::mem::size_of::<PxArticulationReducedCoordinate>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxJoint {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
pub userData: *mut std::ffi::c_void,
}
#[test] fn check_size_PxJoint() { assert_eq!(std::mem::size_of::<PxJoint>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxArticulationJoint {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
}
#[test] fn check_size_PxArticulationJoint() { assert_eq!(std::mem::size_of::<PxArticulationJoint>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxArticulationJointReducedCoordinate {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
}
#[test] fn check_size_PxArticulationJointReducedCoordinate() { assert_eq!(std::mem::size_of::<PxArticulationJointReducedCoordinate>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxFilterData {
pub word0: u32,
pub word1: u32,
pub word2: u32,
pub word3: u32,
}
#[test] fn check_size_PxFilterData() { assert_eq!(std::mem::size_of::<PxFilterData>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxMaterial {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
pub userData: *mut std::ffi::c_void,
}
#[test] fn check_size_PxMaterial() { assert_eq!(std::mem::size_of::<PxMaterial>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxRigidBody {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
pub userData: *mut std::ffi::c_void,
}
#[test] fn check_size_PxRigidBody() { assert_eq!(std::mem::size_of::<PxRigidBody>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxQueryFilterData {
pub data: PxFilterData,
pub flags: PxQueryFlags,
pub structgen_pad0: [u8; 2],
}
#[test] fn check_size_PxQueryFilterData() { assert_eq!(std::mem::size_of::<PxQueryFilterData>(), 20); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxOverlapHit {
pub actor: *mut PxRigidActor,
pub shape: *mut PxShape,
pub faceIndex: u32,
pub padTo16Bytes: u32,
}
#[test] fn check_size_PxOverlapHit() { assert_eq!(std::mem::size_of::<PxOverlapHit>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxBatchQueryMemory {
pub userRaycastResultBuffer: *mut PxRaycastQueryResult,
pub userRaycastTouchBuffer: *mut PxRaycastHit,
pub userSweepResultBuffer: *mut PxSweepQueryResult,
pub userSweepTouchBuffer: *mut PxSweepHit,
pub userOverlapResultBuffer: *mut PxOverlapQueryResult,
pub userOverlapTouchBuffer: *mut PxOverlapHit,
pub raycastTouchBufferSize: u32,
pub sweepTouchBufferSize: u32,
pub overlapTouchBufferSize: u32,
pub raycastResultBufferSize: u32,
pub sweepResultBufferSize: u32,
pub overlapResultBufferSize: u32,
}
#[test] fn check_size_PxBatchQueryMemory() { assert_eq!(std::mem::size_of::<PxBatchQueryMemory>(), 72); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxBatchQueryDesc {
pub filterShaderData: *mut std::ffi::c_void,
pub filterShaderDataSize: u32,
pub structgen_pad0: [u8; 4],
pub preFilterShader: *mut std::ffi::c_void,
pub postFilterShader: *mut std::ffi::c_void,
pub queryMemory: PxBatchQueryMemory,
}
#[test] fn check_size_PxBatchQueryDesc() { assert_eq!(std::mem::size_of::<PxBatchQueryDesc>(), 104); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxQueryCache {
pub shape: *mut PxShape,
pub actor: *mut PxRigidActor,
pub faceIndex: u32,
pub structgen_pad0: [u8; 4],
}
#[test] fn check_size_PxQueryCache() { assert_eq!(std::mem::size_of::<PxQueryCache>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxConstraintShaderTable {
pub solverPrep: *mut std::ffi::c_void,
pub project: *mut std::ffi::c_void,
pub visualize: *mut std::ffi::c_void,
pub flag: u32,
pub structgen_pad0: [u8; 4],
}
#[test] fn check_size_PxConstraintShaderTable() { assert_eq!(std::mem::size_of::<PxConstraintShaderTable>(), 32); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxMassModificationProps {
pub mInvMassScale0: f32,
pub mInvInertiaScale0: f32,
pub mInvMassScale1: f32,
pub mInvInertiaScale1: f32,
}
#[test] fn check_size_PxMassModificationProps() { assert_eq!(std::mem::size_of::<PxMassModificationProps>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxContactPatch {
pub mMassModification: PxMassModificationProps,
pub normal: PxVec3,
pub restitution: f32,
pub dynamicFriction: f32,
pub staticFriction: f32,
pub startContactIndex: u8,
pub nbContacts: u8,
pub materialFlags: u8,
pub internalFlags: u8,
pub materialIndex0: u16,
pub materialIndex1: u16,
}
#[test] fn check_size_PxContactPatch() { assert_eq!(std::mem::size_of::<PxContactPatch>(), 48); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxContact {
pub contact: PxVec3,
pub separation: f32,
}
#[test] fn check_size_PxContact() { assert_eq!(std::mem::size_of::<PxContact>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxContactStreamIterator {
pub zero: PxVec3,
pub structgen_pad0: [u8; 4],
pub patch: *const PxContactPatch,
pub contact: *const PxContact,
pub faceIndice: *const u32,
pub totalPatches: u32,
pub totalContacts: u32,
pub nextContactIndex: u32,
pub nextPatchIndex: u32,
pub contactPatchHeaderSize: u32,
pub contactPointSize: u32,
pub mStreamFormat: u32,
pub forceNoResponse: u32,
pub pointStepped: bool,
pub structgen_pad1: [u8; 3],
pub hasFaceIndices: u32,
}
#[test] fn check_size_PxContactStreamIterator() { assert_eq!(std::mem::size_of::<PxContactStreamIterator>(), 80); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxModifiableContact {
pub contact: PxVec3,
pub separation: f32,
pub targetVelocity: PxVec3,
pub maxImpulse: f32,
pub normal: PxVec3,
pub restitution: f32,
pub materialFlags: u32,
pub materialIndex0: u16,
pub materialIndex1: u16,
pub staticFriction: f32,
pub dynamicFriction: f32,
}
#[test] fn check_size_PxModifiableContact() { assert_eq!(std::mem::size_of::<PxModifiableContact>(), 64); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxContactSet {
pub mCount: u32,
pub structgen_pad0: [u8; 4],
pub mContacts: *mut PxModifiableContact,
}
#[test] fn check_size_PxContactSet() { assert_eq!(std::mem::size_of::<PxContactSet>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxContactModifyPair {
pub actor: [*const PxRigidActor; 2],
pub shape: [*const PxShape; 2],
pub transform: [PxTransform; 2],
pub contacts: PxContactSet,
}
#[test] fn check_size_PxContactModifyPair() { assert_eq!(std::mem::size_of::<PxContactModifyPair>(), 104); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxSceneLimits {
pub maxNbActors: u32,
pub maxNbBodies: u32,
pub maxNbStaticShapes: u32,
pub maxNbDynamicShapes: u32,
pub maxNbAggregates: u32,
pub maxNbConstraints: u32,
pub maxNbRegions: u32,
pub maxNbBroadPhaseOverlaps: u32,
}
#[test] fn check_size_PxSceneLimits() { assert_eq!(std::mem::size_of::<PxSceneLimits>(), 32); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxgDynamicsMemoryConfig {
pub constraintBufferCapacity: u32,
pub contactBufferCapacity: u32,
pub tempBufferCapacity: u32,
pub contactStreamSize: u32,
pub patchStreamSize: u32,
pub forceStreamCapacity: u32,
pub heapCapacity: u32,
pub foundLostPairsCapacity: u32,
}
#[test] fn check_size_PxgDynamicsMemoryConfig() { assert_eq!(std::mem::size_of::<PxgDynamicsMemoryConfig>(), 32); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxSceneDesc {
pub gravity: PxVec3,
pub structgen_pad0: [u8; 4],
pub simulationEventCallback: *mut PxSimulationEventCallback,
pub contactModifyCallback: *mut PxContactModifyCallback,
pub ccdContactModifyCallback: *mut PxCCDContactModifyCallback,
pub filterShaderData: *const std::ffi::c_void,
pub filterShaderDataSize: u32,
pub structgen_pad1: [u8; 4],
pub filterShader: *mut std::ffi::c_void,
pub filterCallback: *mut PxSimulationFilterCallback,
pub kineKineFilteringMode: u32,
pub staticKineFilteringMode: u32,
pub broadPhaseType: u32,
pub structgen_pad2: [u8; 4],
pub broadPhaseCallback: *mut PxBroadPhaseCallback,
pub limits: PxSceneLimits,
pub frictionType: u32,
pub solverType: u32,
pub bounceThresholdVelocity: f32,
pub frictionOffsetThreshold: f32,
pub ccdMaxSeparation: f32,
pub solverOffsetSlop: f32,
pub flags: PxSceneFlags,
pub structgen_pad3: [u8; 4],
pub cpuDispatcher: *mut PxCpuDispatcher,
pub cudaContextManager: *mut PxCudaContextManager,
pub staticStructure: u32,
pub dynamicStructure: u32,
pub dynamicTreeRebuildRateHint: u32,
pub sceneQueryUpdateMode: u32,
pub userData: *mut std::ffi::c_void,
pub solverBatchSize: u32,
pub solverArticulationBatchSize: u32,
pub nbContactDataBlocks: u32,
pub maxNbContactDataBlocks: u32,
pub maxBiasCoefficient: f32,
pub contactReportStreamBufferSize: u32,
pub ccdMaxPasses: u32,
pub ccdThreshold: f32,
pub wakeCounterResetValue: f32,
pub sanityBounds: PxBounds3,
pub gpuDynamicsConfig: PxgDynamicsMemoryConfig,
pub gpuMaxNumPartitions: u32,
pub gpuComputeVersion: u32,
pub structgen_pad4: [u8; 12],
}
#[test] fn check_size_PxSceneDesc() { assert_eq!(std::mem::size_of::<PxSceneDesc>(), 312); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxRigidStatic {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
pub userData: *mut std::ffi::c_void,
}
#[test] fn check_size_PxRigidStatic() { assert_eq!(std::mem::size_of::<PxRigidStatic>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxRigidDynamic {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
pub userData: *mut std::ffi::c_void,
}
#[test] fn check_size_PxRigidDynamic() { assert_eq!(std::mem::size_of::<PxRigidDynamic>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxPruningStructure {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
}
#[test] fn check_size_PxPruningStructure() { assert_eq!(std::mem::size_of::<PxPruningStructure>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxSimulationStatistics {
pub nbActiveConstraints: u32,
pub nbActiveDynamicBodies: u32,
pub nbActiveKinematicBodies: u32,
pub nbStaticBodies: u32,
pub nbDynamicBodies: u32,
pub nbKinematicBodies: u32,
pub nbShapes: [u32; 7],
pub nbAggregates: u32,
pub nbArticulations: u32,
pub nbAxisSolverConstraints: u32,
pub compressedContactSize: u32,
pub requiredContactConstraintMemory: u32,
pub peakConstraintMemory: u32,
pub nbDiscreteContactPairsTotal: u32,
pub nbDiscreteContactPairsWithCacheHits: u32,
pub nbDiscreteContactPairsWithContacts: u32,
pub nbNewPairs: u32,
pub nbLostPairs: u32,
pub nbNewTouches: u32,
pub nbLostTouches: u32,
pub nbPartitions: u32,
pub nbBroadPhaseAdds: u32,
pub nbBroadPhaseRemoves: u32,
pub nbDiscreteContactPairs: [[u32; 7]; 7],
pub nbCCDPairs: [[u32; 7]; 7],
pub nbModifiedContactPairs: [[u32; 7]; 7],
pub nbTriggerPairs: [[u32; 7]; 7],
}
#[test] fn check_size_PxSimulationStatistics() { assert_eq!(std::mem::size_of::<PxSimulationStatistics>(), 900); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxDominanceGroupPair {
pub dominance0: u8,
pub dominance1: u8,
}
#[test] fn check_size_PxDominanceGroupPair() { assert_eq!(std::mem::size_of::<PxDominanceGroupPair>(), 2); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxContactPair {
pub shapes: [*mut PxShape; 2],
pub contactPatches: *const u8,
pub contactPoints: *const u8,
pub contactImpulses: *const f32,
pub requiredBufferSize: u32,
pub contactCount: u8,
pub patchCount: u8,
pub contactStreamSize: u16,
pub flags: PxContactPairFlags,
pub events: PxPairFlags,
pub internalData: [u32; 2],
pub structgen_pad0: [u8; 4],
}
#[test] fn check_size_PxContactPair() { assert_eq!(std::mem::size_of::<PxContactPair>(), 64); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxContactPairHeader {
pub actors: [*mut PxRigidActor; 2],
pub extraDataStream: *const u8,
pub extraDataStreamSize: u16,
pub flags: PxContactPairHeaderFlags,
pub structgen_pad0: [u8; 4],
pub pairs: *const PxContactPair,
pub nbPairs: u32,
pub structgen_pad1: [u8; 4],
}
#[test] fn check_size_PxContactPairHeader() { assert_eq!(std::mem::size_of::<PxContactPairHeader>(), 48); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxBroadPhaseCaps {
pub maxNbRegions: u32,
pub maxNbObjects: u32,
pub needsPredefinedBounds: bool,
pub structgen_pad0: [u8; 3],
}
#[test] fn check_size_PxBroadPhaseCaps() { assert_eq!(std::mem::size_of::<PxBroadPhaseCaps>(), 12); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxBroadPhaseRegion {
pub bounds: PxBounds3,
pub userData: *mut std::ffi::c_void,
}
#[test] fn check_size_PxBroadPhaseRegion() { assert_eq!(std::mem::size_of::<PxBroadPhaseRegion>(), 32); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxBroadPhaseRegionInfo {
pub region: PxBroadPhaseRegion,
pub nbStaticObjects: u32,
pub nbDynamicObjects: u32,
pub active: bool,
pub overlap: bool,
pub structgen_pad0: [u8; 6],
}
#[test] fn check_size_PxBroadPhaseRegionInfo() { assert_eq!(std::mem::size_of::<PxBroadPhaseRegionInfo>(), 48); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxSceneReadLock {
pub structgen_pad0: [u8; 8],
}
#[test] fn check_size_PxSceneReadLock() { assert_eq!(std::mem::size_of::<PxSceneReadLock>(), 8); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxSceneWriteLock {
pub structgen_pad0: [u8; 8],
}
#[test] fn check_size_PxSceneWriteLock() { assert_eq!(std::mem::size_of::<PxSceneWriteLock>(), 8); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxContactPairExtraDataItem {
pub _type: u8,
}
#[test] fn check_size_PxContactPairExtraDataItem() { assert_eq!(std::mem::size_of::<PxContactPairExtraDataItem>(), 1); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxContactPairVelocity {
pub _type: u8,
pub structgen_pad0: [u8; 3],
pub linearVelocity: [PxVec3; 2],
pub angularVelocity: [PxVec3; 2],
}
#[test] fn check_size_PxContactPairVelocity() { assert_eq!(std::mem::size_of::<PxContactPairVelocity>(), 52); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxContactPairPose {
pub _type: u8,
pub structgen_pad0: [u8; 3],
pub globalPose: [PxTransform; 2],
}
#[test] fn check_size_PxContactPairPose() { assert_eq!(std::mem::size_of::<PxContactPairPose>(), 60); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxContactPairIndex {
pub _type: u8,
pub structgen_pad0: [u8; 1],
pub index: u16,
}
#[test] fn check_size_PxContactPairIndex() { assert_eq!(std::mem::size_of::<PxContactPairIndex>(), 4); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxContactPairExtraDataIterator {
pub currPtr: *const u8,
pub endPtr: *const u8,
pub preSolverVelocity: *const PxContactPairVelocity,
pub postSolverVelocity: *const PxContactPairVelocity,
pub eventPose: *const PxContactPairPose,
pub contactPairIndex: u32,
pub structgen_pad0: [u8; 4],
}
#[test] fn check_size_PxContactPairExtraDataIterator() { assert_eq!(std::mem::size_of::<PxContactPairExtraDataIterator>(), 48); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxContactPairPoint {
pub position: PxVec3,
pub separation: f32,
pub normal: PxVec3,
pub internalFaceIndex0: u32,
pub impulse: PxVec3,
pub internalFaceIndex1: u32,
}
#[test] fn check_size_PxContactPairPoint() { assert_eq!(std::mem::size_of::<PxContactPairPoint>(), 48); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxTriggerPair {
pub triggerShape: *mut PxShape,
pub triggerActor: *mut PxRigidActor,
pub otherShape: *mut PxShape,
pub otherActor: *mut PxRigidActor,
pub status: u32,
pub flags: PxTriggerPairFlags,
pub structgen_pad0: [u8; 3],
}
#[test] fn check_size_PxTriggerPair() { assert_eq!(std::mem::size_of::<PxTriggerPair>(), 40); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxConstraintInfo {
pub constraint: *mut PxConstraint,
pub externalReference: *mut std::ffi::c_void,
pub _type: u32,
pub structgen_pad0: [u8; 4],
}
#[test] fn check_size_PxConstraintInfo() { assert_eq!(std::mem::size_of::<PxConstraintInfo>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxExtendedVec3 {
pub x: f64,
pub y: f64,
pub z: f64,
}
#[test] fn check_size_PxExtendedVec3() { assert_eq!(std::mem::size_of::<PxExtendedVec3>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxObstacle {
pub mType: i32,
pub structgen_pad0: [u8; 4],
pub mUserData: *mut std::ffi::c_void,
pub mPos: PxExtendedVec3,
pub mRot: PxQuat,
}
#[test] fn check_size_PxObstacle() { assert_eq!(std::mem::size_of::<PxObstacle>(), 56); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxBoxObstacle {
pub mType: i32,
pub structgen_pad0: [u8; 4],
pub mUserData: *mut std::ffi::c_void,
pub mPos: PxExtendedVec3,
pub mRot: PxQuat,
pub mHalfExtents: PxVec3,
pub structgen_pad1: [u8; 4],
}
#[test] fn check_size_PxBoxObstacle() { assert_eq!(std::mem::size_of::<PxBoxObstacle>(), 72); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxCapsuleObstacle {
pub mType: i32,
pub structgen_pad0: [u8; 4],
pub mUserData: *mut std::ffi::c_void,
pub mPos: PxExtendedVec3,
pub mRot: PxQuat,
pub mHalfHeight: f32,
pub mRadius: f32,
}
#[test] fn check_size_PxCapsuleObstacle() { assert_eq!(std::mem::size_of::<PxCapsuleObstacle>(), 64); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxControllerShapeHit {
pub controller: *mut PxController,
pub worldPos: PxExtendedVec3,
pub worldNormal: PxVec3,
pub dir: PxVec3,
pub length: f32,
pub structgen_pad0: [u8; 4],
pub shape: *mut PxShape,
pub actor: *mut PxRigidActor,
pub triangleIndex: u32,
pub structgen_pad1: [u8; 4],
}
#[test] fn check_size_PxControllerShapeHit() { assert_eq!(std::mem::size_of::<PxControllerShapeHit>(), 88); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxControllersHit {
pub controller: *mut PxController,
pub worldPos: PxExtendedVec3,
pub worldNormal: PxVec3,
pub dir: PxVec3,
pub length: f32,
pub structgen_pad0: [u8; 4],
pub other: *mut PxController,
}
#[test] fn check_size_PxControllersHit() { assert_eq!(std::mem::size_of::<PxControllersHit>(), 72); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxControllerObstacleHit {
pub controller: *mut PxController,
pub worldPos: PxExtendedVec3,
pub worldNormal: PxVec3,
pub dir: PxVec3,
pub length: f32,
pub structgen_pad0: [u8; 4],
pub userData: *const std::ffi::c_void,
}
#[test] fn check_size_PxControllerObstacleHit() { assert_eq!(std::mem::size_of::<PxControllerObstacleHit>(), 72); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxControllerFilters {
pub mFilterData: *const PxFilterData,
pub mFilterCallback: *mut PxQueryFilterCallback,
pub mFilterFlags: PxQueryFlags,
pub structgen_pad0: [u8; 6],
pub mCCTFilterCallback: *mut PxControllerFilterCallback,
}
#[test] fn check_size_PxControllerFilters() { assert_eq!(std::mem::size_of::<PxControllerFilters>(), 32); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxControllerDesc {
pub structgen_pad0: [u8; 8],
pub position: PxExtendedVec3,
pub upDirection: PxVec3,
pub slopeLimit: f32,
pub invisibleWallHeight: f32,
pub maxJumpHeight: f32,
pub contactOffset: f32,
pub stepOffset: f32,
pub density: f32,
pub scaleCoeff: f32,
pub volumeGrowth: f32,
pub structgen_pad1: [u8; 4],
pub reportCallback: *mut PxUserControllerHitReport,
pub behaviorCallback: *mut PxControllerBehaviorCallback,
pub nonWalkableMode: u32,
pub structgen_pad2: [u8; 4],
pub material: *mut PxMaterial,
pub registerDeletionListener: bool,
pub structgen_pad3: [u8; 7],
pub userData: *mut std::ffi::c_void,
pub mType: u32,
pub structgen_pad4: [u8; 4],
}
#[test] fn check_size_PxControllerDesc() { assert_eq!(std::mem::size_of::<PxControllerDesc>(), 136); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxControllerState {
pub deltaXP: PxVec3,
pub structgen_pad0: [u8; 4],
pub touchedShape: *mut PxShape,
pub touchedActor: *mut PxRigidActor,
pub touchedObstacleHandle: u32,
pub collisionFlags: u32,
pub standOnAnotherCCT: bool,
pub standOnObstacle: bool,
pub isMovingUp: bool,
pub structgen_pad1: [u8; 5],
}
#[test] fn check_size_PxControllerState() { assert_eq!(std::mem::size_of::<PxControllerState>(), 48); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxControllerStats {
pub nbIterations: u16,
pub nbFullUpdates: u16,
pub nbPartialUpdates: u16,
pub nbTessellation: u16,
}
#[test] fn check_size_PxControllerStats() { assert_eq!(std::mem::size_of::<PxControllerStats>(), 8); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxBoxControllerDesc {
pub structgen_pad0: [u8; 8],
pub position: PxExtendedVec3,
pub upDirection: PxVec3,
pub slopeLimit: f32,
pub invisibleWallHeight: f32,
pub maxJumpHeight: f32,
pub contactOffset: f32,
pub stepOffset: f32,
pub density: f32,
pub scaleCoeff: f32,
pub volumeGrowth: f32,
pub structgen_pad1: [u8; 4],
pub reportCallback: *mut PxUserControllerHitReport,
pub behaviorCallback: *mut PxControllerBehaviorCallback,
pub nonWalkableMode: u32,
pub structgen_pad2: [u8; 4],
pub material: *mut PxMaterial,
pub registerDeletionListener: bool,
pub structgen_pad3: [u8; 7],
pub userData: *mut std::ffi::c_void,
pub mType: u32,
pub halfHeight: f32,
pub halfSideExtent: f32,
pub halfForwardExtent: f32,
}
#[test] fn check_size_PxBoxControllerDesc() { assert_eq!(std::mem::size_of::<PxBoxControllerDesc>(), 144); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxCapsuleControllerDesc {
pub structgen_pad0: [u8; 8],
pub position: PxExtendedVec3,
pub upDirection: PxVec3,
pub slopeLimit: f32,
pub invisibleWallHeight: f32,
pub maxJumpHeight: f32,
pub contactOffset: f32,
pub stepOffset: f32,
pub density: f32,
pub scaleCoeff: f32,
pub volumeGrowth: f32,
pub structgen_pad1: [u8; 4],
pub reportCallback: *mut PxUserControllerHitReport,
pub behaviorCallback: *mut PxControllerBehaviorCallback,
pub nonWalkableMode: u32,
pub structgen_pad2: [u8; 4],
pub material: *mut PxMaterial,
pub registerDeletionListener: bool,
pub structgen_pad3: [u8; 7],
pub userData: *mut std::ffi::c_void,
pub mType: u32,
pub radius: f32,
pub height: f32,
pub climbingMode: u32,
}
#[test] fn check_size_PxCapsuleControllerDesc() { assert_eq!(std::mem::size_of::<PxCapsuleControllerDesc>(), 144); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxConvexMeshDesc {
pub points: PxBoundedData,
pub polygons: PxBoundedData,
pub indices: PxBoundedData,
pub flags: PxConvexFlags,
pub vertexLimit: u16,
pub quantizedCount: u16,
pub structgen_pad0: [u8; 2],
}
#[test] fn check_size_PxConvexMeshDesc() { assert_eq!(std::mem::size_of::<PxConvexMeshDesc>(), 80); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxTriangleMeshDesc {
pub points: PxBoundedData,
pub triangles: PxBoundedData,
pub flags: PxMeshFlags,
pub structgen_pad0: [u8; 6],
pub materialIndices: PxTypedStridedData_physx_PxMaterialTableIndex_,
}
#[test] fn check_size_PxTriangleMeshDesc() { assert_eq!(std::mem::size_of::<PxTriangleMeshDesc>(), 72); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxBVH33MidphaseDesc {
pub meshSizePerformanceTradeOff: f32,
pub meshCookingHint: u32,
}
#[test] fn check_size_PxBVH33MidphaseDesc() { assert_eq!(std::mem::size_of::<PxBVH33MidphaseDesc>(), 8); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxBVH34MidphaseDesc {
pub numPrimsPerLeaf: u32,
}
#[test] fn check_size_PxBVH34MidphaseDesc() { assert_eq!(std::mem::size_of::<PxBVH34MidphaseDesc>(), 4); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxMidphaseDesc {
pub structgen_pad0: [u8; 8],
pub mType: u32,
}
#[test] fn check_size_PxMidphaseDesc() { assert_eq!(std::mem::size_of::<PxMidphaseDesc>(), 12); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxBVHStructureDesc {
pub bounds: PxBoundedData,
}
#[test] fn check_size_PxBVHStructureDesc() { assert_eq!(std::mem::size_of::<PxBVHStructureDesc>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxCookingParams {
pub areaTestEpsilon: f32,
pub planeTolerance: f32,
pub convexMeshCookingType: u32,
pub suppressTriangleMeshRemapTable: bool,
pub buildTriangleAdjacencies: bool,
pub buildGPUData: bool,
pub structgen_pad0: [u8; 1],
pub scale: PxTolerancesScale,
pub meshPreprocessParams: PxMeshPreprocessingFlags,
pub meshWeldTolerance: f32,
pub midphaseDesc: PxMidphaseDesc,
pub gaussMapLimit: u32,
}
#[test] fn check_size_PxCookingParams() { assert_eq!(std::mem::size_of::<PxCookingParams>(), 48); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxDefaultMemoryOutputStream {
pub structgen_pad0: [u8; 32],
}
#[test] fn check_size_PxDefaultMemoryOutputStream() { assert_eq!(std::mem::size_of::<PxDefaultMemoryOutputStream>(), 32); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxDefaultMemoryInputData {
pub structgen_pad0: [u8; 32],
}
#[test] fn check_size_PxDefaultMemoryInputData() { assert_eq!(std::mem::size_of::<PxDefaultMemoryInputData>(), 32); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxDefaultFileOutputStream {
pub structgen_pad0: [u8; 16],
}
#[test] fn check_size_PxDefaultFileOutputStream() { assert_eq!(std::mem::size_of::<PxDefaultFileOutputStream>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxDefaultFileInputData {
pub structgen_pad0: [u8; 24],
}
#[test] fn check_size_PxDefaultFileInputData() { assert_eq!(std::mem::size_of::<PxDefaultFileInputData>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxSpring {
pub stiffness: f32,
pub damping: f32,
}
#[test] fn check_size_PxSpring() { assert_eq!(std::mem::size_of::<PxSpring>(), 8); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxDistanceJoint {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
pub userData: *mut std::ffi::c_void,
}
#[test] fn check_size_PxDistanceJoint() { assert_eq!(std::mem::size_of::<PxDistanceJoint>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxContactJoint {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
pub userData: *mut std::ffi::c_void,
}
#[test] fn check_size_PxContactJoint() { assert_eq!(std::mem::size_of::<PxContactJoint>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxJacobianRow {
pub linear0: PxVec3,
pub linear1: PxVec3,
pub angular0: PxVec3,
pub angular1: PxVec3,
}
#[test] fn check_size_PxJacobianRow() { assert_eq!(std::mem::size_of::<PxJacobianRow>(), 48); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxFixedJoint {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
pub userData: *mut std::ffi::c_void,
}
#[test] fn check_size_PxFixedJoint() { assert_eq!(std::mem::size_of::<PxFixedJoint>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxJointLimitParameters {
pub restitution: f32,
pub bounceThreshold: f32,
pub stiffness: f32,
pub damping: f32,
pub contactDistance: f32,
}
#[test] fn check_size_PxJointLimitParameters() { assert_eq!(std::mem::size_of::<PxJointLimitParameters>(), 20); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxJointLinearLimit {
pub restitution: f32,
pub bounceThreshold: f32,
pub stiffness: f32,
pub damping: f32,
pub contactDistance: f32,
pub value: f32,
}
#[test] fn check_size_PxJointLinearLimit() { assert_eq!(std::mem::size_of::<PxJointLinearLimit>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxJointLinearLimitPair {
pub restitution: f32,
pub bounceThreshold: f32,
pub stiffness: f32,
pub damping: f32,
pub contactDistance: f32,
pub upper: f32,
pub lower: f32,
}
#[test] fn check_size_PxJointLinearLimitPair() { assert_eq!(std::mem::size_of::<PxJointLinearLimitPair>(), 28); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxJointAngularLimitPair {
pub restitution: f32,
pub bounceThreshold: f32,
pub stiffness: f32,
pub damping: f32,
pub contactDistance: f32,
pub upper: f32,
pub lower: f32,
}
#[test] fn check_size_PxJointAngularLimitPair() { assert_eq!(std::mem::size_of::<PxJointAngularLimitPair>(), 28); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxJointLimitCone {
pub restitution: f32,
pub bounceThreshold: f32,
pub stiffness: f32,
pub damping: f32,
pub contactDistance: f32,
pub yAngle: f32,
pub zAngle: f32,
}
#[test] fn check_size_PxJointLimitCone() { assert_eq!(std::mem::size_of::<PxJointLimitCone>(), 28); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxJointLimitPyramid {
pub restitution: f32,
pub bounceThreshold: f32,
pub stiffness: f32,
pub damping: f32,
pub contactDistance: f32,
pub yAngleMin: f32,
pub yAngleMax: f32,
pub zAngleMin: f32,
pub zAngleMax: f32,
}
#[test] fn check_size_PxJointLimitPyramid() { assert_eq!(std::mem::size_of::<PxJointLimitPyramid>(), 36); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxPrismaticJoint {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
pub userData: *mut std::ffi::c_void,
}
#[test] fn check_size_PxPrismaticJoint() { assert_eq!(std::mem::size_of::<PxPrismaticJoint>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxRevoluteJoint {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
pub userData: *mut std::ffi::c_void,
}
#[test] fn check_size_PxRevoluteJoint() { assert_eq!(std::mem::size_of::<PxRevoluteJoint>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxSphericalJoint {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
pub userData: *mut std::ffi::c_void,
}
#[test] fn check_size_PxSphericalJoint() { assert_eq!(std::mem::size_of::<PxSphericalJoint>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxD6Joint {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
pub userData: *mut std::ffi::c_void,
}
#[test] fn check_size_PxD6Joint() { assert_eq!(std::mem::size_of::<PxD6Joint>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxD6JointDrive {
pub stiffness: f32,
pub damping: f32,
pub forceLimit: f32,
pub flags: PxD6JointDriveFlags,
}
#[test] fn check_size_PxD6JointDrive() { assert_eq!(std::mem::size_of::<PxD6JointDrive>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxGroupsMask {
pub bits0: u16,
pub bits1: u16,
pub bits2: u16,
pub bits3: u16,
}
#[test] fn check_size_PxGroupsMask() { assert_eq!(std::mem::size_of::<PxGroupsMask>(), 8); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxMassProperties {
pub inertiaTensor: PxMat33,
pub centerOfMass: PxVec3,
pub mass: f32,
}
#[test] fn check_size_PxMassProperties() { assert_eq!(std::mem::size_of::<PxMassProperties>(), 52); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxMeshOverlapUtil {
pub structgen_pad0: [u8; 1040],
}
#[test] fn check_size_PxMeshOverlapUtil() { assert_eq!(std::mem::size_of::<PxMeshOverlapUtil>(), 1040); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxSerialization_PxXmlMiscParameter {
pub upVector: PxVec3,
pub scale: PxTolerancesScale,
}
#[test] fn check_size_PxSerialization_PxXmlMiscParameter() { assert_eq!(std::mem::size_of::<PxSerialization_PxXmlMiscParameter>(), 20); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxSceneQueryHit {
pub actor: *mut PxRigidActor,
pub shape: *mut PxShape,
pub faceIndex: u32,
pub structgen_pad0: [u8; 4],
}
#[test] fn check_size_PxSceneQueryHit() { assert_eq!(std::mem::size_of::<PxSceneQueryHit>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxSceneQueryFilterData {
pub data: PxFilterData,
pub flags: PxQueryFlags,
pub structgen_pad0: [u8; 2],
}
#[test] fn check_size_PxSceneQueryFilterData() { assert_eq!(std::mem::size_of::<PxSceneQueryFilterData>(), 20); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxSceneQueryCache {
pub shape: *mut PxShape,
pub actor: *mut PxRigidActor,
pub faceIndex: u32,
pub structgen_pad0: [u8; 4],
}
#[test] fn check_size_PxSceneQueryCache() { assert_eq!(std::mem::size_of::<PxSceneQueryCache>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxRepXObject {
pub typeName: *const i8,
pub serializable: *const std::ffi::c_void,
pub id: usize,
}
#[test] fn check_size_PxRepXObject() { assert_eq!(std::mem::size_of::<PxRepXObject>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxRepXInstantiationArgs {
pub structgen_pad0: [u8; 8],
pub cooker: *mut PxCooking,
pub stringTable: *mut PxStringTable,
}
#[test] fn check_size_PxRepXInstantiationArgs() { assert_eq!(std::mem::size_of::<PxRepXInstantiationArgs>(), 24); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleChassisData {
pub mMOI: PxVec3,
pub mMass: f32,
pub mCMOffset: PxVec3,
pub structgen_pad0: [u8; 4],
}
#[test] fn check_size_PxVehicleChassisData() { assert_eq!(std::mem::size_of::<PxVehicleChassisData>(), 32); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleEngineData {
pub mTorqueCurve: PxFixedSizeLookupTable_eMAX_NB_ENGINE_TORQUE_CURVE_ENTRIES_,
pub mMOI: f32,
pub mPeakTorque: f32,
pub mMaxOmega: f32,
pub mDampingRateFullThrottle: f32,
pub mDampingRateZeroThrottleClutchEngaged: f32,
pub mDampingRateZeroThrottleClutchDisengaged: f32,
pub structgen_pad0: [u8; 8],
}
#[test] fn check_size_PxVehicleEngineData() { assert_eq!(std::mem::size_of::<PxVehicleEngineData>(), 112); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleGearsData {
pub mRatios: [f32; 32],
pub mFinalRatio: f32,
pub mNbRatios: u32,
pub mSwitchTime: f32,
pub structgen_pad0: [u8; 4],
}
#[test] fn check_size_PxVehicleGearsData() { assert_eq!(std::mem::size_of::<PxVehicleGearsData>(), 144); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleAutoBoxData {
pub mUpRatios: [f32; 32],
pub mDownRatios: [f32; 32],
}
#[test] fn check_size_PxVehicleAutoBoxData() { assert_eq!(std::mem::size_of::<PxVehicleAutoBoxData>(), 256); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleDifferential4WData {
pub mFrontRearSplit: f32,
pub mFrontLeftRightSplit: f32,
pub mRearLeftRightSplit: f32,
pub mCentreBias: f32,
pub mFrontBias: f32,
pub mRearBias: f32,
pub mType: u32,
pub structgen_pad0: [u8; 4],
}
#[test] fn check_size_PxVehicleDifferential4WData() { assert_eq!(std::mem::size_of::<PxVehicleDifferential4WData>(), 32); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleDifferentialNWData {
pub structgen_pad0: [u8; 16],
}
#[test] fn check_size_PxVehicleDifferentialNWData() { assert_eq!(std::mem::size_of::<PxVehicleDifferentialNWData>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleAckermannGeometryData {
pub mAccuracy: f32,
pub mFrontWidth: f32,
pub mRearWidth: f32,
pub mAxleSeparation: f32,
}
#[test] fn check_size_PxVehicleAckermannGeometryData() { assert_eq!(std::mem::size_of::<PxVehicleAckermannGeometryData>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleClutchData {
pub mStrength: f32,
pub mAccuracyMode: u32,
pub mEstimateIterations: u32,
pub structgen_pad0: [u8; 4],
}
#[test] fn check_size_PxVehicleClutchData() { assert_eq!(std::mem::size_of::<PxVehicleClutchData>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleTireLoadFilterData {
pub mMinNormalisedLoad: f32,
pub mMinFilteredNormalisedLoad: f32,
pub mMaxNormalisedLoad: f32,
pub mMaxFilteredNormalisedLoad: f32,
pub structgen_pad0: [u8; 16],
}
#[test] fn check_size_PxVehicleTireLoadFilterData() { assert_eq!(std::mem::size_of::<PxVehicleTireLoadFilterData>(), 32); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleWheelData {
pub mRadius: f32,
pub mWidth: f32,
pub mMass: f32,
pub mMOI: f32,
pub mDampingRate: f32,
pub mMaxBrakeTorque: f32,
pub mMaxHandBrakeTorque: f32,
pub mMaxSteer: f32,
pub mToeAngle: f32,
pub structgen_pad0: [u8; 12],
}
#[test] fn check_size_PxVehicleWheelData() { assert_eq!(std::mem::size_of::<PxVehicleWheelData>(), 48); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleSuspensionData {
pub mSpringStrength: f32,
pub mSpringDamperRate: f32,
pub mMaxCompression: f32,
pub mMaxDroop: f32,
pub mSprungMass: f32,
pub mCamberAtRest: f32,
pub mCamberAtMaxCompression: f32,
pub mCamberAtMaxDroop: f32,
pub structgen_pad0: [u8; 16],
}
#[test] fn check_size_PxVehicleSuspensionData() { assert_eq!(std::mem::size_of::<PxVehicleSuspensionData>(), 48); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleAntiRollBarData {
pub mWheel0: u32,
pub mWheel1: u32,
pub mStiffness: f32,
pub structgen_pad0: [u8; 4],
}
#[test] fn check_size_PxVehicleAntiRollBarData() { assert_eq!(std::mem::size_of::<PxVehicleAntiRollBarData>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleTireData {
pub mLatStiffX: f32,
pub mLatStiffY: f32,
pub mLongitudinalStiffnessPerUnitGravity: f32,
pub mCamberStiffnessPerUnitGravity: f32,
pub mFrictionVsSlipGraph: [[f32; 2]; 3],
pub mType: u32,
pub structgen_pad0: [u8; 20],
}
#[test] fn check_size_PxVehicleTireData() { assert_eq!(std::mem::size_of::<PxVehicleTireData>(), 64); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleWheelsSimData {
pub structgen_pad0: [u8; 96],
}
#[test] fn check_size_PxVehicleWheelsSimData() { assert_eq!(std::mem::size_of::<PxVehicleWheelsSimData>(), 96); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleWheelsDynData {
pub structgen_pad0: [u8; 48],
}
#[test] fn check_size_PxVehicleWheelsDynData() { assert_eq!(std::mem::size_of::<PxVehicleWheelsDynData>(), 48); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleWheels {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
pub mWheelsSimData: PxVehicleWheelsSimData,
pub mWheelsDynData: PxVehicleWheelsDynData,
pub mActor: *mut PxRigidDynamic,
pub structgen_pad2: [u8; 5],
pub mType: u8,
pub mPad0: [u8; 14],
pub structgen_pad3: [u8; 4],
}
#[test] fn check_size_PxVehicleWheels() { assert_eq!(std::mem::size_of::<PxVehicleWheels>(), 192); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleDriveSimData {
pub mEngine: PxVehicleEngineData,
pub mGears: PxVehicleGearsData,
pub mClutch: PxVehicleClutchData,
pub mAutoBox: PxVehicleAutoBoxData,
}
#[test] fn check_size_PxVehicleDriveSimData() { assert_eq!(std::mem::size_of::<PxVehicleDriveSimData>(), 528); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleDriveDynData {
pub mControlAnalogVals: [f32; 16],
pub mUseAutoGears: bool,
pub mGearUpPressed: bool,
pub mGearDownPressed: bool,
pub structgen_pad0: [u8; 1],
pub mCurrentGear: u32,
pub mTargetGear: u32,
pub mEnginespeed: f32,
pub mGearSwitchTime: f32,
pub mAutoBoxSwitchTime: f32,
pub structgen_pad1: [u8; 8],
}
#[test] fn check_size_PxVehicleDriveDynData() { assert_eq!(std::mem::size_of::<PxVehicleDriveDynData>(), 96); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleDrive {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
pub mWheelsSimData: PxVehicleWheelsSimData,
pub mWheelsDynData: PxVehicleWheelsDynData,
pub mActor: *mut PxRigidDynamic,
pub structgen_pad2: [u8; 5],
pub mType: u8,
pub mPad0: [u8; 14],
pub mDriveDynData: PxVehicleDriveDynData,
pub structgen_pad3: [u8; 4],
}
#[test] fn check_size_PxVehicleDrive() { assert_eq!(std::mem::size_of::<PxVehicleDrive>(), 288); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleDriveSimData4W {
pub mEngine: PxVehicleEngineData,
pub mGears: PxVehicleGearsData,
pub mClutch: PxVehicleClutchData,
pub mAutoBox: PxVehicleAutoBoxData,
pub structgen_pad0: [u8; 48],
}
#[test] fn check_size_PxVehicleDriveSimData4W() { assert_eq!(std::mem::size_of::<PxVehicleDriveSimData4W>(), 576); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleDrive4W {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
pub mWheelsSimData: PxVehicleWheelsSimData,
pub mWheelsDynData: PxVehicleWheelsDynData,
pub mActor: *mut PxRigidDynamic,
pub structgen_pad2: [u8; 5],
pub mType: u8,
pub mPad0: [u8; 14],
pub mDriveDynData: PxVehicleDriveDynData,
pub mDriveSimData: PxVehicleDriveSimData4W,
pub structgen_pad3: [u8; 4],
}
#[test] fn check_size_PxVehicleDrive4W() { assert_eq!(std::mem::size_of::<PxVehicleDrive4W>(), 864); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleDriveTank {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
pub mWheelsSimData: PxVehicleWheelsSimData,
pub mWheelsDynData: PxVehicleWheelsDynData,
pub mActor: *mut PxRigidDynamic,
pub structgen_pad2: [u8; 5],
pub mType: u8,
pub mPad0: [u8; 14],
pub mDriveDynData: PxVehicleDriveDynData,
pub mDriveSimData: PxVehicleDriveSimData,
pub structgen_pad3: [u8; 20],
}
#[test] fn check_size_PxVehicleDriveTank() { assert_eq!(std::mem::size_of::<PxVehicleDriveTank>(), 832); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleDrivableSurfaceType {
pub mType: u32,
}
#[test] fn check_size_PxVehicleDrivableSurfaceType() { assert_eq!(std::mem::size_of::<PxVehicleDrivableSurfaceType>(), 4); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleDrivableSurfaceToTireFrictionPairs {
pub structgen_pad0: [u8; 48],
}
#[test] fn check_size_PxVehicleDrivableSurfaceToTireFrictionPairs() { assert_eq!(std::mem::size_of::<PxVehicleDrivableSurfaceToTireFrictionPairs>(), 48); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxWheelQueryResult {
pub suspLineStart: PxVec3,
pub suspLineDir: PxVec3,
pub suspLineLength: f32,
pub isInAir: bool,
pub structgen_pad0: [u8; 3],
pub tireContactActor: *mut PxActor,
pub tireContactShape: *mut PxShape,
pub tireSurfaceMaterial: *const PxMaterial,
pub tireSurfaceType: u32,
pub tireContactPoint: PxVec3,
pub tireContactNormal: PxVec3,
pub tireFriction: f32,
pub suspJounce: f32,
pub suspSpringForce: f32,
pub tireLongitudinalDir: PxVec3,
pub tireLateralDir: PxVec3,
pub longitudinalSlip: f32,
pub lateralSlip: f32,
pub steerAngle: f32,
pub localPose: PxTransform,
}
#[test] fn check_size_PxWheelQueryResult() { assert_eq!(std::mem::size_of::<PxWheelQueryResult>(), 160); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleWheelConcurrentUpdateData {
pub structgen_pad0: [u8; 64],
}
#[test] fn check_size_PxVehicleWheelConcurrentUpdateData() { assert_eq!(std::mem::size_of::<PxVehicleWheelConcurrentUpdateData>(), 64); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleConcurrentUpdateData {
pub concurrentWheelUpdates: *mut PxVehicleWheelConcurrentUpdateData,
pub nbConcurrentWheelUpdates: u32,
pub structgen_pad0: [u8; 28],
}
#[test] fn check_size_PxVehicleConcurrentUpdateData() { assert_eq!(std::mem::size_of::<PxVehicleConcurrentUpdateData>(), 40); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleWheelQueryResult {
pub wheelQueryResults: *mut PxWheelQueryResult,
pub nbWheelQueryResults: u32,
pub structgen_pad0: [u8; 4],
}
#[test] fn check_size_PxVehicleWheelQueryResult() { assert_eq!(std::mem::size_of::<PxVehicleWheelQueryResult>(), 16); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleGraph {
pub structgen_pad0: [u8; 15840],
}
#[test] fn check_size_PxVehicleGraph() { assert_eq!(std::mem::size_of::<PxVehicleGraph>(), 15840); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleTelemetryData {
pub structgen_pad0: [u8; 48],
}
#[test] fn check_size_PxVehicleTelemetryData() { assert_eq!(std::mem::size_of::<PxVehicleTelemetryData>(), 48); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleDriveSimDataNW {
pub mEngine: PxVehicleEngineData,
pub mGears: PxVehicleGearsData,
pub mClutch: PxVehicleClutchData,
pub mAutoBox: PxVehicleAutoBoxData,
pub structgen_pad0: [u8; 16],
}
#[test] fn check_size_PxVehicleDriveSimDataNW() { assert_eq!(std::mem::size_of::<PxVehicleDriveSimDataNW>(), 544); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleDriveNW {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
pub mWheelsSimData: PxVehicleWheelsSimData,
pub mWheelsDynData: PxVehicleWheelsDynData,
pub mActor: *mut PxRigidDynamic,
pub structgen_pad2: [u8; 5],
pub mType: u8,
pub mPad0: [u8; 14],
pub mDriveDynData: PxVehicleDriveDynData,
pub mDriveSimData: PxVehicleDriveSimDataNW,
pub structgen_pad3: [u8; 4],
}
#[test] fn check_size_PxVehicleDriveNW() { assert_eq!(std::mem::size_of::<PxVehicleDriveNW>(), 832); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleDrive4WRawInputData {
pub structgen_pad0: [u8; 40],
}
#[test] fn check_size_PxVehicleDrive4WRawInputData() { assert_eq!(std::mem::size_of::<PxVehicleDrive4WRawInputData>(), 40); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleKeySmoothingData {
pub mRiseRates: [f32; 16],
pub mFallRates: [f32; 16],
}
#[test] fn check_size_PxVehicleKeySmoothingData() { assert_eq!(std::mem::size_of::<PxVehicleKeySmoothingData>(), 128); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehiclePadSmoothingData {
pub mRiseRates: [f32; 16],
pub mFallRates: [f32; 16],
}
#[test] fn check_size_PxVehiclePadSmoothingData() { assert_eq!(std::mem::size_of::<PxVehiclePadSmoothingData>(), 128); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleDriveNWRawInputData {
pub structgen_pad0: [u8; 40],
}
#[test] fn check_size_PxVehicleDriveNWRawInputData() { assert_eq!(std::mem::size_of::<PxVehicleDriveNWRawInputData>(), 40); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleDriveTankRawInputData {
pub structgen_pad0: [u8; 32],
}
#[test] fn check_size_PxVehicleDriveTankRawInputData() { assert_eq!(std::mem::size_of::<PxVehicleDriveTankRawInputData>(), 32); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleCopyDynamicsMap {
pub sourceWheelIds: [u8; 20],
pub targetWheelIds: [u8; 20],
}
#[test] fn check_size_PxVehicleCopyDynamicsMap() { assert_eq!(std::mem::size_of::<PxVehicleCopyDynamicsMap>(), 40); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleGraphChannelDesc {
pub mMinY: f32,
pub mMaxY: f32,
pub mMidY: f32,
pub mColorLow: PxVec3,
pub mColorHigh: PxVec3,
pub structgen_pad0: [u8; 4],
pub mTitle: *mut i8,
}
#[test] fn check_size_PxVehicleGraphChannelDesc() { assert_eq!(std::mem::size_of::<PxVehicleGraphChannelDesc>(), 48); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleGraphDesc {
pub structgen_pad0: [u8; 32],
}
#[test] fn check_size_PxVehicleGraphDesc() { assert_eq!(std::mem::size_of::<PxVehicleGraphDesc>(), 32); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxVehicleNoDrive {
pub structgen_pad0: [u8; 8],
pub mConcreteType: u16,
pub mBaseFlags: PxBaseFlags,
pub structgen_pad1: [u8; 4],
pub mWheelsSimData: PxVehicleWheelsSimData,
pub mWheelsDynData: PxVehicleWheelsDynData,
pub mActor: *mut PxRigidDynamic,
pub structgen_pad2: [u8; 5],
pub mType: u8,
pub mPad0: [u8; 14],
pub structgen_pad3: [u8; 36],
}
#[test] fn check_size_PxVehicleNoDrive() { assert_eq!(std::mem::size_of::<PxVehicleNoDrive>(), 224); }
#[derive(Clone, Copy)]
#[repr(C)]
pub struct PxProfileScoped {
pub mCallback: *mut PxProfilerCallback,
pub mEventName: *const i8,
pub mProfilerData: *mut std::ffi::c_void,
pub mContextId: usize,
pub mDetached: bool,
pub structgen_pad0: [u8; 7],
}
#[test] fn check_size_PxProfileScoped() { assert_eq!(std::mem::size_of::<PxProfileScoped>(), 40); }