-
Notifications
You must be signed in to change notification settings - Fork 8
/
UsdDeviceQueries.cpp
15117 lines (15115 loc) · 555 KB
/
UsdDeviceQueries.cpp
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
// Copyright 2021 The Khronos Group
// SPDX-License-Identifier: Apache-2.0
// This file was generated by generate_queries.py
// Don't make changes to this directly
#include <stdint.h>
#include <math.h>
#include <anari/anari.h>
namespace anari {
namespace usd {
static int subtype_hash(const char *str) {
static const uint32_t table[] = {0x7a6f0012u,0x6665002bu,0x0u,0x0u,0x6d6c0032u,0x0u,0x6e6d0037u,0x0u,0x0u,0x0u,0x62610044u,0x0u,0x0u,0x69650049u,0x76750065u,0x0u,0x75700069u,0x73720083u,0x6f6e001du,0x0u,0x0u,0x0u,0x0u,0x0u,0x73720020u,0x0u,0x0u,0x0u,0x6d6c0024u,0x6665001eu,0x100001fu,0x80000000u,0x77760021u,0x66650022u,0x1000023u,0x80000001u,0x6a690025u,0x6f6e0026u,0x65640027u,0x66650028u,0x73720029u,0x100002au,0x80000002u,0x6766002cu,0x6261002du,0x7675002eu,0x6d6c002fu,0x75740030u,0x1000031u,0x80000003u,0x7a790033u,0x71700034u,0x69680035u,0x1000036u,0x80000004u,0x62610038u,0x68670039u,0x6665003au,0x3431003bu,0x4544003eu,0x45440040u,0x45440042u,0x100003fu,0x80000005u,0x1000041u,0x80000006u,0x1000043u,0x80000007u,0x75740045u,0x75740046u,0x66650047u,0x1000048u,0x80000008u,0x7372004du,0x0u,0x0u,0x7a790057u,0x7473004eu,0x7170004fu,0x66650050u,0x64630051u,0x75740052u,0x6a690053u,0x77760054u,0x66650055u,0x1000056u,0x80000009u,0x74730058u,0x6a690059u,0x6463005au,0x6261005bu,0x6d6c005cu,0x6d6c005du,0x7a79005eu,0x4342005fu,0x62610060u,0x74730061u,0x66650062u,0x65640063u,0x1000064u,0x8000000au,0x62610066u,0x65640067u,0x1000068u,0x8000000bu,0x6968006eu,0x0u,0x0u,0x0u,0x73720073u,0x6665006fu,0x73720070u,0x66650071u,0x1000072u,0x8000000cu,0x76750074u,0x64630075u,0x75740076u,0x76750077u,0x73720078u,0x66650079u,0x6564007au,0x5352007bu,0x6665007cu,0x6867007du,0x7675007eu,0x6d6c007fu,0x62610080u,0x73720081u,0x1000082u,0x8000000du,0x6a610084u,0x6f6e008du,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x626100aau,0x7473008eu,0x6766008fu,0x70650090u,0x7372009bu,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x737200a7u,0x4746009cu,0x7675009du,0x6f6e009eu,0x6463009fu,0x757400a0u,0x6a6900a1u,0x706f00a2u,0x6f6e00a3u,0x323100a4u,0x454400a5u,0x10000a6u,0x8000000eu,0x6e6d00a8u,0x10000a9u,0x8000000fu,0x6f6e00abu,0x686700acu,0x6d6c00adu,0x666500aeu,0x10000afu,0x80000010u};
uint32_t cur = 0x75630000u;
for(int i = 0;cur!=0;++i) {
uint32_t idx = cur&0xFFFFu;
uint32_t low = (cur>>16u)&0xFFu;
uint32_t high = (cur>>24u)&0xFFu;
uint32_t c = (uint32_t)str[i];
if(c>=low && c<high) {
cur = table[idx+c-low];
} else {
break;
}
if(cur&0x80000000u) {
return cur&0xFFFFu;
}
if(str[i]==0) {
break;
}
}
return -1;
}
static int param_hash(const char *str) {
static const uint32_t table[] = {0x756c0017u,0x62610055u,0x7061005eu,0x6a6100f6u,0x6e6d010au,0x70610112u,0x7365012bu,0x0u,0x736d0144u,0x0u,0x0u,0x6a690263u,0x66610268u,0x7061027bu,0x76630295u,0x736f02dbu,0x0u,0x7061032bu,0x7663034eu,0x73680480u,0x746e04a9u,0x70610840u,0x736f0918u,0x71700020u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x71700038u,0x7574003du,0x69680021u,0x62610022u,0x4e430023u,0x7675002eu,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x706f0034u,0x7574002fu,0x706f0030u,0x67660031u,0x67660032u,0x1000033u,0x80000000u,0x65640035u,0x66650036u,0x1000037u,0x80000001u,0x66650039u,0x6463003au,0x7574003bu,0x100003cu,0x80000002u,0x6665003eu,0x6f6e003fu,0x76750040u,0x62610041u,0x75740042u,0x6a690043u,0x706f0044u,0x6f6e0045u,0x45430046u,0x706f0048u,0x6a69004du,0x6d6c0049u,0x706f004au,0x7372004bu,0x100004cu,0x80000003u,0x7473004eu,0x7574004fu,0x62610050u,0x6f6e0051u,0x64630052u,0x66650053u,0x1000054u,0x80000004u,0x74730056u,0x66650057u,0x44430058u,0x706f0059u,0x6d6c005au,0x706f005bu,0x7372005cu,0x100005du,0x80000005u,0x716d006du,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x62610077u,0x0u,0x0u,0x0u,0x66650089u,0x0u,0x0u,0x6d6c00f2u,0x66650071u,0x0u,0x0u,0x74730075u,0x73720072u,0x62610073u,0x1000074u,0x80000006u,0x1000076u,0x80000007u,0x6f6e0078u,0x6f6e0079u,0x6665007au,0x6d6c007bu,0x2f2e007cu,0x6563007du,0x706f007fu,0x66650084u,0x6d6c0080u,0x706f0081u,0x73720082u,0x1000083u,0x80000008u,0x71700085u,0x75740086u,0x69680087u,0x1000088u,0x80000009u,0x6261008au,0x7372008bu,0x6463008cu,0x706f008du,0x6261008eu,0x7574008fu,0x53000090u,0x8000000au,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x706f00e3u,0x0u,0x0u,0x0u,0x706f00e9u,0x737200e4u,0x6e6d00e5u,0x626100e6u,0x6d6c00e7u,0x10000e8u,0x8000000bu,0x767500eau,0x686700ebu,0x696800ecu,0x6f6e00edu,0x666500eeu,0x747300efu,0x747300f0u,0x10000f1u,0x8000000cu,0x706f00f3u,0x737200f4u,0x10000f5u,0x8000000du,0x757400ffu,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x73720102u,0x62610100u,0x1000101u,0x8000000eu,0x66650103u,0x64630104u,0x75740105u,0x6a690106u,0x706f0107u,0x6f6e0108u,0x1000109u,0x8000000fu,0x6a69010bu,0x7473010cu,0x7473010du,0x6a69010eu,0x7776010fu,0x66650110u,0x1000111u,0x80000010u,0x73720121u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x6d6c0123u,0x0u,0x0u,0x0u,0x0u,0x0u,0x77760128u,0x1000122u,0x80000011u,0x75740124u,0x66650125u,0x73720126u,0x1000127u,0x80000012u,0x7a790129u,0x100012au,0x80000013u,0x706f0139u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x706f0140u,0x6e6d013au,0x6665013bu,0x7574013cu,0x7372013du,0x7a79013eu,0x100013fu,0x80000014u,0x76750141u,0x71700142u,0x1000143u,0x80000015u,0x6261014au,0x744101a6u,0x737201f7u,0x0u,0x0u,0x6a6901f9u,0x6867014bu,0x6665014cu,0x5300014du,0x80000016u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x666501a0u,0x686701a1u,0x6a6901a2u,0x706f01a3u,0x6f6e01a4u,0x10001a5u,0x80000017u,0x757401d9u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x676601e2u,0x0u,0x0u,0x0u,0x0u,0x737201e8u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x757401f1u,0x757401dau,0x737201dbu,0x6a6901dcu,0x636201ddu,0x767501deu,0x757401dfu,0x666501e0u,0x10001e1u,0x80000018u,0x676601e3u,0x747301e4u,0x666501e5u,0x757401e6u,0x10001e7u,0x80000019u,0x626101e9u,0x6f6e01eau,0x747301ebu,0x676601ecu,0x706f01edu,0x737201eeu,0x6e6d01efu,0x10001f0u,0x8000001au,0x626101f2u,0x6f6e01f3u,0x646301f4u,0x666501f5u,0x10001f6u,0x8000001bu,0x10001f8u,0x8000001cu,0x656401fau,0x666501fbu,0x747301fcu,0x646301fdu,0x666501feu,0x6f6e01ffu,0x64630200u,0x66650201u,0x55000202u,0x8000001du,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x706f0257u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x6968025au,0x73720258u,0x1000259u,0x8000001eu,0x6a69025bu,0x6463025cu,0x6c6b025du,0x6f6e025eu,0x6665025fu,0x74730260u,0x74730261u,0x1000262u,0x8000001fu,0x68670264u,0x69680265u,0x75740266u,0x1000267u,0x80000020u,0x7574026du,0x0u,0x0u,0x0u,0x75740274u,0x6665026eu,0x7372026fu,0x6a690270u,0x62610271u,0x6d6c0272u,0x1000273u,0x80000021u,0x62610275u,0x6d6c0276u,0x6d6c0277u,0x6a690278u,0x64630279u,0x100027au,0x80000022u,0x6e6d028au,0x0u,0x0u,0x0u,0x6261028du,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x73720290u,0x6665028bu,0x100028cu,0x80000023u,0x7372028eu,0x100028fu,0x80000024u,0x6e6d0291u,0x62610292u,0x6d6c0293u,0x1000294u,0x80000025u,0x646302a8u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x626102b0u,0x0u,0x6a6902b6u,0x0u,0x0u,0x757402c5u,0x6d6c02a9u,0x767502aau,0x747302abu,0x6a6902acu,0x706f02adu,0x6f6e02aeu,0x10002afu,0x80000026u,0x646302b1u,0x6a6902b2u,0x757402b3u,0x7a7902b4u,0x10002b5u,0x80000027u,0x686502b7u,0x6f6e02bau,0x0u,0x6a6902c2u,0x757402bbu,0x626102bcu,0x757402bdu,0x6a6902beu,0x706f02bfu,0x6f6e02c0u,0x10002c1u,0x80000028u,0x6f6e02c3u,0x10002c4u,0x80000029u,0x554f02c6u,0x676602ccu,0x0u,0x0u,0x0u,0x0u,0x737202d2u,0x676602cdu,0x747302ceu,0x666502cfu,0x757402d0u,0x10002d1u,0x8000002au,0x626102d3u,0x6f6e02d4u,0x747302d5u,0x676602d6u,0x706f02d7u,0x737202d8u,0x6e6d02d9u,0x10002dau,0x8000002bu,0x747302dfu,0x0u,0x0u,0x6a6902e6u,0x6a6902e0u,0x757402e1u,0x6a6902e2u,0x706f02e3u,0x6f6e02e4u,0x10002e5u,0x8000002cu,0x6e6d02e7u,0x6a6902e8u,0x757402e9u,0x6a6902eau,0x777602ebu,0x666502ecu,0x2f2e02edu,0x736102eeu,0x75740300u,0x0u,0x706f0310u,0x0u,0x0u,0x0u,0x0u,0x0u,0x6f640315u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x62610325u,0x75740301u,0x73720302u,0x6a690303u,0x63620304u,0x76750305u,0x75740306u,0x66650307u,0x34300308u,0x100030cu,0x100030du,0x100030eu,0x100030fu,0x8000002du,0x8000002eu,0x8000002fu,0x80000030u,0x6d6c0311u,0x706f0312u,0x73720313u,0x1000314u,0x80000031u,0x1000320u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x65640321u,0x80000032u,0x66650322u,0x79780323u,0x1000324u,0x80000033u,0x65640326u,0x6a690327u,0x76750328u,0x74730329u,0x100032au,0x80000034u,0x6564033au,0x0u,0x0u,0x0u,0x6f6e033fu,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x76750346u,0x6a69033bu,0x7675033cu,0x7473033du,0x100033eu,0x80000035u,0x65640340u,0x66650341u,0x73720342u,0x66650343u,0x73720344u,0x1000345u,0x80000036u,0x68670347u,0x69680348u,0x6f6e0349u,0x6665034au,0x7473034bu,0x7473034cu,0x100034du,0x80000037u,0x62610361u,0x0u,0x0u,0x0u,0x0u,0x66610365u,0x7b7a03b5u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x666103b8u,0x0u,0x0u,0x0u,0x62610410u,0x7372047au,0x6d6c0362u,0x66650363u,0x1000364u,0x80000038u,0x7170036au,0x0u,0x0u,0x0u,0x66650395u,0x6665036bu,0x5547036cu,0x6665037au,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x7a720382u,0x706f037bu,0x6e6d037cu,0x6665037du,0x7574037eu,0x7372037fu,0x7a790380u,0x1000381u,0x80000039u,0x6261038au,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x71700392u,0x6f6e038bu,0x7473038cu,0x6766038du,0x706f038eu,0x7372038fu,0x6e6d0390u,0x1000391u,0x8000003au,0x66650393u,0x1000394u,0x8000003bu,0x6f6e0396u,0x53430397u,0x706f03a7u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x706f03acu,0x6d6c03a8u,0x706f03a9u,0x737203aau,0x10003abu,0x8000003cu,0x767503adu,0x686703aeu,0x696803afu,0x6f6e03b0u,0x666503b1u,0x747303b2u,0x747303b3u,0x10003b4u,0x8000003du,0x666503b6u,0x10003b7u,0x8000003eu,0x646303bdu,0x0u,0x0u,0x0u,0x646303c2u,0x6a6903beu,0x6f6e03bfu,0x686703c0u,0x10003c1u,0x8000003fu,0x767503c3u,0x6d6c03c4u,0x626103c5u,0x737203c6u,0x440003c7u,0x80000040u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x706f040bu,0x6d6c040cu,0x706f040du,0x7372040eu,0x100040fu,0x80000041u,0x75740411u,0x76750412u,0x74730413u,0x44430414u,0x62610415u,0x6d6c0416u,0x6d6c0417u,0x63620418u,0x62610419u,0x6463041au,0x6c6b041bu,0x5600041cu,0x80000042u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x74730472u,0x66650473u,0x73720474u,0x45440475u,0x62610476u,0x75740477u,0x62610478u,0x1000479u,0x80000043u,0x6766047bu,0x6261047cu,0x6463047du,0x6665047eu,0x100047fu,0x80000044u,0x6a69048bu,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x62610493u,0x6463048cu,0x6c6b048du,0x6f6e048eu,0x6665048fu,0x74730490u,0x74730491u,0x1000492u,0x80000045u,0x6f6e0494u,0x74730495u,0x6e660496u,0x706f049eu,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x6a6904a2u,0x7372049fu,0x6e6d04a0u,0x10004a1u,0x80000046u,0x747304a3u,0x747304a4u,0x6a6904a5u,0x706f04a6u,0x6f6e04a7u,0x10004a8u,0x80000047u,0x6a6904afu,0x0u,0x10004bau,0x0u,0x0u,0x656404bbu,0x757404b0u,0x454404b1u,0x6a6904b2u,0x747304b3u,0x757404b4u,0x626104b5u,0x6f6e04b6u,0x646304b7u,0x666504b8u,0x10004b9u,0x80000048u,0x80000049u,0x3b3a04bcu,0x3b3a04bdu,0x786104beu,0x757404d5u,0x0u,0x706f04f9u,0x0u,0x6f6e0510u,0x0u,0x6261051cu,0x0u,0x6e6d052au,0x0u,0x0u,0x0u,0x0u,0x0u,0x76750532u,0x73720563u,0x0u,0x66650570u,0x6663058au,0x6a6905ccu,0x74730823u,0x0u,0x73720833u,0x757404d6u,0x737204d7u,0x6a6904d8u,0x636204d9u,0x767504dau,0x757404dbu,0x666504dcu,0x343004ddu,0x2f2e04e1u,0x2f2e04e7u,0x2f2e04edu,0x2f2e04f3u,0x6f6e04e2u,0x626104e3u,0x6e6d04e4u,0x666504e5u,0x10004e6u,0x8000004au,0x6f6e04e8u,0x626104e9u,0x6e6d04eau,0x666504ebu,0x10004ecu,0x8000004bu,0x6f6e04eeu,0x626104efu,0x6e6d04f0u,0x666504f1u,0x10004f2u,0x8000004cu,0x6f6e04f4u,0x626104f5u,0x6e6d04f6u,0x666504f7u,0x10004f8u,0x8000004du,0x6f6e04fau,0x6f6e04fbu,0x666504fcu,0x646304fdu,0x757404feu,0x6a6904ffu,0x706f0500u,0x6f6e0501u,0x2f2e0502u,0x6d6c0503u,0x706f0504u,0x68670505u,0x57560506u,0x66650507u,0x73720508u,0x63620509u,0x706f050au,0x7473050bu,0x6a69050cu,0x7574050du,0x7a79050eu,0x100050fu,0x8000004eu,0x62610511u,0x63620512u,0x6d6c0513u,0x66650514u,0x54530515u,0x62610516u,0x77760517u,0x6a690518u,0x6f6e0519u,0x6867051au,0x100051bu,0x8000004fu,0x7372051du,0x6362051eu,0x6261051fu,0x68670520u,0x66650521u,0x44430522u,0x706f0523u,0x6d6c0524u,0x6d6c0525u,0x66650526u,0x64630527u,0x75740528u,0x1000529u,0x80000050u,0x6261052bu,0x6867052cu,0x6665052du,0x5655052eu,0x7372052fu,0x6d6c0530u,0x1000531u,0x80000051u,0x75740533u,0x71700534u,0x76750535u,0x75740536u,0x2f2e0537u,0x716d0538u,0x6561053cu,0x0u,0x0u,0x7372054fu,0x75740540u,0x0u,0x0u,0x6d6c0547u,0x66650541u,0x73720542u,0x6a690543u,0x62610544u,0x6d6c0545u,0x1000546u,0x80000052u,0x54530548u,0x69680549u,0x6261054au,0x6564054bu,0x6665054cu,0x7372054du,0x100054eu,0x80000053u,0x66650550u,0x77760551u,0x6a690552u,0x66650553u,0x78770554u,0x54530555u,0x76750556u,0x73720557u,0x67660558u,0x62610559u,0x6463055au,0x6665055bu,0x5453055cu,0x6968055du,0x6261055eu,0x6564055fu,0x66650560u,0x73720561u,0x1000562u,0x80000054u,0x66650564u,0x44430565u,0x6d6c0566u,0x62610567u,0x74730568u,0x74730569u,0x6a69056au,0x6766056bu,0x6a69056cu,0x6665056du,0x6564056eu,0x100056fu,0x80000055u,0x6e6d0571u,0x706f0572u,0x77760573u,0x66650574u,0x56500575u,0x7372057bu,0x0u,0x0u,0x0u,0x0u,0x6f6e057fu,0x6a69057cu,0x6e6d057du,0x100057eu,0x80000056u,0x76750580u,0x74730581u,0x66650582u,0x65640583u,0x4f4e0584u,0x62610585u,0x6e6d0586u,0x66650587u,0x74730588u,0x1000589u,0x80000057u,0x6665058du,0x0u,0x73720596u,0x6f6e058eu,0x6665058fu,0x54530590u,0x75740591u,0x62610592u,0x68670593u,0x66650594u,0x1000595u,0x80000058u,0x6a690597u,0x62610598u,0x6d6c0599u,0x6a69059au,0x7b7a059bu,0x6665059cu,0x2f2e059du,0x7068059eu,0x706f05a6u,0x0u,0x0u,0x0u,0x706f05aeu,0x0u,0x666505b6u,0x767505c0u,0x747305a7u,0x757405a8u,0x4f4e05a9u,0x626105aau,0x6e6d05abu,0x666505acu,0x10005adu,0x80000059u,0x646305afu,0x626105b0u,0x757405b1u,0x6a6905b2u,0x706f05b3u,0x6f6e05b4u,0x10005b5u,0x8000005au,0x787705b7u,0x545305b8u,0x666505b9u,0x747305bau,0x747305bbu,0x6a6905bcu,0x706f05bdu,0x6f6e05beu,0x10005bfu,0x8000005bu,0x757405c1u,0x717005c2u,0x767505c3u,0x757405c4u,0x434205c5u,0x6a6905c6u,0x6f6e05c7u,0x626105c8u,0x737205c9u,0x7a7905cau,0x10005cbu,0x8000005cu,0x6e6d05cdu,0x666505ceu,0x570005cfu,0x8000005du,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x77670626u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x626106a7u,0x66650636u,0x0u,0x0u,0x0u,0x0u,0x0u,0x6261063eu,0x0u,0x0u,0x0u,0x0u,0x0u,0x69610646u,0x0u,0x0u,0x626106a2u,0x706f0637u,0x6e6d0638u,0x66650639u,0x7574063au,0x7372063bu,0x7a79063cu,0x100063du,0x8000005eu,0x7574063fu,0x66650640u,0x73720641u,0x6a690642u,0x62610643u,0x6d6c0644u,0x1000645u,0x8000005fu,0x6e6d064eu,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x62610696u,0x7170064fu,0x6d6c0650u,0x66650651u,0x73720652u,0x2f2e0653u,0x73620654u,0x62610665u,0x706f066eu,0x0u,0x6e6d0673u,0x0u,0x0u,0x0u,0x706f067bu,0x0u,0x0u,0x0u,0x6665067eu,0x0u,0x71700686u,0x0u,0x0u,0x706f068du,0x74730666u,0x66650667u,0x44430668u,0x706f0669u,0x6d6c066au,0x706f066bu,0x7372066cu,0x100066du,0x80000060u,0x6d6c066fu,0x706f0670u,0x73720671u,0x1000672u,0x80000061u,0x6a690674u,0x74730675u,0x74730676u,0x6a690677u,0x77760678u,0x66650679u,0x100067au,0x80000062u,0x7372067cu,0x100067du,0x80000063u,0x7574067fu,0x62610680u,0x6d6c0681u,0x6d6c0682u,0x6a690683u,0x64630684u,0x1000685u,0x80000064u,0x62610687u,0x64630688u,0x6a690689u,0x7574068au,0x7a79068bu,0x100068cu,0x80000065u,0x7675068eu,0x6867068fu,0x69680690u,0x6f6e0691u,0x66650692u,0x74730693u,0x74730694u,0x1000695u,0x80000066u,0x71700697u,0x66650698u,0x48470699u,0x6665069au,0x706f069bu,0x6e6d069cu,0x6665069du,0x7574069eu,0x7372069fu,0x7a7906a0u,0x10006a1u,0x80000067u,0x6d6c06a3u,0x767506a4u,0x666506a5u,0x10006a6u,0x80000068u,0x737206a8u,0x7a7906a9u,0x6a6906aau,0x6f6e06abu,0x686706acu,0x2f0006adu,0x80000069u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x786106dcu,0x757406f3u,0x62610703u,0x706f070cu,0x62610711u,0x6e6d0715u,0x0u,0x7372071du,0x0u,0x70640722u,0x0u,0x0u,0x0u,0x6665074eu,0x706f0756u,0x7370075cu,0x736f076fu,0x0u,0x70610783u,0x7663079fu,0x737207bcu,0x0u,0x706107c5u,0x737207e5u,0x757406f4u,0x737206f5u,0x6a6906f6u,0x636206f7u,0x767506f8u,0x757406f9u,0x666506fau,0x343006fbu,0x10006ffu,0x1000700u,0x1000701u,0x1000702u,0x8000006au,0x8000006bu,0x8000006cu,0x8000006du,0x74730704u,0x66650705u,0x44430706u,0x706f0707u,0x6d6c0708u,0x706f0709u,0x7372070au,0x100070bu,0x8000006eu,0x6d6c070du,0x706f070eu,0x7372070fu,0x1000710u,0x8000006fu,0x75740712u,0x62610713u,0x1000714u,0x80000070u,0x6a690716u,0x74730717u,0x74730718u,0x6a690719u,0x7776071au,0x6665071bu,0x100071cu,0x80000071u,0x706f071eu,0x7675071fu,0x71700720u,0x1000721u,0x80000072u,0x100072eu,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x6261072fu,0x74640733u,0x7372074cu,0x80000073u,0x68670730u,0x66650731u,0x1000732u,0x80000074u,0x66650743u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x75740746u,0x79780744u,0x1000745u,0x80000075u,0x62610747u,0x6f6e0748u,0x64630749u,0x6665074au,0x100074bu,0x80000076u,0x100074du,0x80000077u,0x7574074fu,0x62610750u,0x6d6c0751u,0x6d6c0752u,0x6a690753u,0x64630754u,0x1000755u,0x80000078u,0x73720757u,0x6e6d0758u,0x62610759u,0x6d6c075au,0x100075bu,0x80000079u,0x6261075fu,0x0u,0x6a690765u,0x64630760u,0x6a690761u,0x75740762u,0x7a790763u,0x1000764u,0x8000007au,0x66650766u,0x6f6e0767u,0x75740768u,0x62610769u,0x7574076au,0x6a69076bu,0x706f076cu,0x6f6e076du,0x100076eu,0x8000007bu,0x74730773u,0x0u,0x0u,0x706f077au,0x6a690774u,0x75740775u,0x6a690776u,0x706f0777u,0x6f6e0778u,0x1000779u,0x8000007cu,0x6b6a077bu,0x6665077cu,0x6463077du,0x7574077eu,0x6a69077fu,0x706f0780u,0x6f6e0781u,0x1000782u,0x8000007du,0x65640792u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x76750797u,0x6a690793u,0x76750794u,0x74730795u,0x1000796u,0x8000007eu,0x68670798u,0x69680799u,0x6f6e079au,0x6665079bu,0x7473079cu,0x7473079du,0x100079eu,0x8000007fu,0x626107b2u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x737207b6u,0x6d6c07b3u,0x666507b4u,0x10007b5u,0x80000080u,0x676607b7u,0x626107b8u,0x646307b9u,0x666507bau,0x10007bbu,0x80000081u,0x626107bdu,0x6f6e07beu,0x747307bfu,0x676607c0u,0x706f07c1u,0x737207c2u,0x6e6d07c3u,0x10007c4u,0x80000082u,0x6d6c07d4u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x666507ddu,0x0u,0x0u,0x0u,0x0u,0x0u,0x6d6c07e0u,0x767507d5u,0x666507d6u,0x535207d7u,0x626107d8u,0x6f6e07d9u,0x686707dau,0x666507dbu,0x10007dcu,0x80000083u,0x787707deu,0x10007dfu,0x80000084u,0x767507e1u,0x6e6d07e2u,0x666507e3u,0x10007e4u,0x80000085u,0x626107e6u,0x717007e7u,0x4e4d07e8u,0x706f07e9u,0x656407eau,0x666507ebu,0x340007ecu,0x80000086u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x1000820u,0x1000821u,0x1000822u,0x80000087u,0x80000088u,0x80000089u,0x66650824u,0x56550825u,0x74730826u,0x65640827u,0x48470828u,0x66650829u,0x706f082au,0x6e6d082bu,0x5150082cu,0x706f082du,0x6a69082eu,0x6f6e082fu,0x75740830u,0x74730831u,0x1000832u,0x8000008au,0x6a690834u,0x75740835u,0x66650836u,0x42410837u,0x75740838u,0x44430839u,0x706f083au,0x6e6d083bu,0x6e6d083cu,0x6a69083du,0x7574083eu,0x100083fu,0x8000008bu,0x6d6c084fu,0x0u,0x0u,0x0u,0x737208aau,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x6d6c0913u,0x76750850u,0x66650851u,0x53000852u,0x8000008cu,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x626108a5u,0x6f6e08a6u,0x686708a7u,0x666508a8u,0x10008a9u,0x8000008du,0x757408abu,0x666508acu,0x797808adu,0x2f2e08aeu,0x756108afu,0x757408c3u,0x0u,0x706108d3u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x706f08e8u,0x737208eeu,0x706f08f9u,0x0u,0x62610901u,0x64630907u,0x6261090cu,0x757408c4u,0x737208c5u,0x6a6908c6u,0x636208c7u,0x767508c8u,0x757408c9u,0x666508cau,0x343008cbu,0x10008cfu,0x10008d0u,0x10008d1u,0x10008d2u,0x8000008eu,0x8000008fu,0x80000090u,0x80000091u,0x717008e2u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x6d6c08e4u,0x10008e3u,0x80000092u,0x706f08e5u,0x737208e6u,0x10008e7u,0x80000093u,0x737208e9u,0x6e6d08eau,0x626108ebu,0x6d6c08ecu,0x10008edu,0x80000094u,0x6a6908efu,0x666508f0u,0x6f6e08f1u,0x757408f2u,0x626108f3u,0x757408f4u,0x6a6908f5u,0x706f08f6u,0x6f6e08f7u,0x10008f8u,0x80000095u,0x747308fau,0x6a6908fbu,0x757408fcu,0x6a6908fdu,0x706f08feu,0x6f6e08ffu,0x1000900u,0x80000096u,0x65640902u,0x6a690903u,0x76750904u,0x74730905u,0x1000906u,0x80000097u,0x62610908u,0x6d6c0909u,0x6665090au,0x100090bu,0x80000098u,0x6f6e090du,0x6867090eu,0x6665090fu,0x6f6e0910u,0x75740911u,0x1000912u,0x80000099u,0x76750914u,0x6e6d0915u,0x66650916u,0x1000917u,0x8000009au,0x7372091cu,0x0u,0x0u,0x62610920u,0x6d6c091du,0x6564091eu,0x100091fu,0x8000009bu,0x71700921u,0x4e4d0922u,0x706f0923u,0x65640924u,0x66650925u,0x34310926u,0x1000929u,0x100092au,0x100092bu,0x8000009cu,0x8000009du,0x8000009eu};
uint32_t cur = 0x78610000u;
for(int i = 0;cur!=0;++i) {
uint32_t idx = cur&0xFFFFu;
uint32_t low = (cur>>16u)&0xFFu;
uint32_t high = (cur>>24u)&0xFFu;
uint32_t c = (uint32_t)str[i];
if(c>=low && c<high) {
cur = table[idx+c-low];
} else {
break;
}
if(cur&0x80000000u) {
return cur&0xFFFFu;
}
if(str[i]==0) {
break;
}
}
return -1;
}
static int info_hash(const char *str) {
static const uint32_t table[] = {0x69680014u,0x6665001bu,0x796c0038u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x6a610057u,0x0u,0x0u,0x6261006cu,0x0u,0x66650075u,0x706f007du,0x0u,0x7473008cu,0x6261008fu,0x62610015u,0x6f6e0016u,0x6f6e0017u,0x66650018u,0x6d6c0019u,0x100001au,0x8000000au,0x7466001cu,0x6261002au,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x6463002fu,0x7675002bu,0x6d6c002cu,0x7574002du,0x100002eu,0x80000001u,0x73720030u,0x6a690031u,0x71700032u,0x75740033u,0x6a690034u,0x706f0035u,0x6f6e0036u,0x1000037u,0x80000004u,0x66650045u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x7574004fu,0x6e6d0046u,0x66650047u,0x6f6e0048u,0x75740049u,0x5554004au,0x7a79004bu,0x7170004cu,0x6665004du,0x100004eu,0x80000005u,0x66650050u,0x6f6e0051u,0x74730052u,0x6a690053u,0x706f0054u,0x6f6e0055u,0x1000056u,0x80000008u,0x79780060u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x0u,0x6f6e0066u,0x6a690061u,0x6e6d0062u,0x76750063u,0x6e6d0064u,0x1000065u,0x80000003u,0x6a690067u,0x6e6d0068u,0x76750069u,0x6e6d006au,0x100006bu,0x80000002u,0x7372006du,0x6261006eu,0x6e6d006fu,0x66650070u,0x75740071u,0x66650072u,0x73720073u,0x1000074u,0x80000009u,0x72710076u,0x76750077u,0x6a690078u,0x73720079u,0x6665007au,0x6564007bu,0x100007cu,0x80000000u,0x7675007eu,0x7372007fu,0x64630080u,0x66650081u,0x46450082u,0x79780083u,0x75740084u,0x66650085u,0x6f6e0086u,0x74730087u,0x6a690088u,0x706f0089u,0x6f6e008au,0x100008bu,0x80000007u,0x6665008du,0x100008eu,0x8000000bu,0x6d6c0090u,0x76750091u,0x66650092u,0x1000093u,0x80000006u};
uint32_t cur = 0x77630000u;
for(int i = 0;cur!=0;++i) {
uint32_t idx = cur&0xFFFFu;
uint32_t low = (cur>>16u)&0xFFu;
uint32_t high = (cur>>24u)&0xFFu;
uint32_t c = (uint32_t)str[i];
if(c>=low && c<high) {
cur = table[idx+c-low];
} else {
break;
}
if(cur&0x80000000u) {
return cur&0xFFFFu;
}
if(str[i]==0) {
break;
}
}
return -1;
}
static const int32_t anari_true = 1;
static const int32_t anari_false = 0;
const char ** query_extensions() {
static const char *extensions[] = {
"ANARI_KHR_GEOMETRY_CONE",
"ANARI_KHR_GEOMETRY_CURVE",
"ANARI_KHR_GEOMETRY_CYLINDER",
"ANARI_KHR_GEOMETRY_QUAD",
"ANARI_KHR_GEOMETRY_SPHERE",
"ANARI_KHR_GEOMETRY_TRIANGLE",
"ANARI_KHR_GEOMETRY_GLYPH",
"ANARI_KHR_CAMERA_PERSPECTIVE",
"ANARI_KHR_INSTANCE_TRANSFORM",
"ANARI_KHR_MATERIAL_MATTE",
"ANARI_KHR_MATERIAL_PHYSICALLY_BASED",
"ANARI_KHR_SAMPLER_IMAGE1D",
"ANARI_KHR_SAMPLER_IMAGE2D",
"ANARI_KHR_SAMPLER_IMAGE3D",
"ANARI_KHR_SPATIAL_FIELD_STRUCTURED_REGULAR",
"ANARI_KHR_VOLUME_TRANSFER_FUNCTION1D",
"ANARI_USD_DEVICE",
0
};
return extensions;
}
const char ** query_object_types(ANARIDataType type) {
switch(type) {
case ANARI_RENDERER:
{
static const char *ANARI_RENDERER_subtypes[] = {"default", 0};
return ANARI_RENDERER_subtypes;
}
case ANARI_GEOMETRY:
{
static const char *ANARI_GEOMETRY_subtypes[] = {"cone", "curve", "cylinder", "quad", "sphere", "triangle", "glyph", 0};
return ANARI_GEOMETRY_subtypes;
}
case ANARI_CAMERA:
{
static const char *ANARI_CAMERA_subtypes[] = {"perspective", 0};
return ANARI_CAMERA_subtypes;
}
case ANARI_INSTANCE:
{
static const char *ANARI_INSTANCE_subtypes[] = {"transform", 0};
return ANARI_INSTANCE_subtypes;
}
case ANARI_MATERIAL:
{
static const char *ANARI_MATERIAL_subtypes[] = {"matte", "physicallyBased", 0};
return ANARI_MATERIAL_subtypes;
}
case ANARI_SAMPLER:
{
static const char *ANARI_SAMPLER_subtypes[] = {"image1D", "image2D", "image3D", 0};
return ANARI_SAMPLER_subtypes;
}
case ANARI_SPATIAL_FIELD:
{
static const char *ANARI_SPATIAL_FIELD_subtypes[] = {"structuredRegular", 0};
return ANARI_SPATIAL_FIELD_subtypes;
}
case ANARI_VOLUME:
{
static const char *ANARI_VOLUME_subtypes[] = {"transferFunction1D", 0};
return ANARI_VOLUME_subtypes;
}
default:
{
static const char *none_subtypes[] = {0};
return none_subtypes;
}
}
}
static const void * ANARI_DEVICE_name_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_false;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "optional object name";
return description;
}
default: return nullptr;
}
}
static const void * ANARI_DEVICE_statusCallback_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_false;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "callback used to report information to the application";
return description;
}
default: return nullptr;
}
}
static const void * ANARI_DEVICE_statusCallbackUserData_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_false;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "optional pointer passed as the first argument of the status callback";
return description;
}
default: return nullptr;
}
}
static const void * ANARI_DEVICE_usd__serialize_hostName_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_false;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "Nucleus server name. If not present, output will be routed to local disk.";
return description;
}
case 7: // sourceExtension
if(infoType == ANARI_STRING) {
static const char *extension = "USD_DEVICE";
return extension;
} else if(infoType == ANARI_INT32) {
static const int32_t value = 16;
return &value;
}
default: return nullptr;
}
}
static const void * ANARI_DEVICE_usd__serialize_location_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_false;
} else {
return nullptr;
}
case 1: // default
if(paramType == ANARI_STRING && infoType == ANARI_STRING) {
static const char *default_value = "./";
return default_value;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "USD output path";
return description;
}
case 7: // sourceExtension
if(infoType == ANARI_STRING) {
static const char *extension = "USD_DEVICE";
return extension;
} else if(infoType == ANARI_INT32) {
static const int32_t value = 16;
return &value;
}
default: return nullptr;
}
}
static const void * ANARI_DEVICE_usd__serialize_newSession_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_false;
} else {
return nullptr;
}
case 1: // default
if(paramType == ANARI_BOOL && infoType == ANARI_BOOL) {
static const int32_t default_value[1] = {INT32_C(1)};
return default_value;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "Is a new session directory created on device commit, or the last (ie. highest numbered) one reused.";
return description;
}
case 7: // sourceExtension
if(infoType == ANARI_STRING) {
static const char *extension = "USD_DEVICE";
return extension;
} else if(infoType == ANARI_INT32) {
static const int32_t value = 16;
return &value;
}
default: return nullptr;
}
}
static const void * ANARI_DEVICE_usd__serialize_outputBinary_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_false;
} else {
return nullptr;
}
case 1: // default
if(paramType == ANARI_BOOL && infoType == ANARI_BOOL) {
static const int32_t default_value[1] = {INT32_C(0)};
return default_value;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "Enable binary .usd output, or ascii-based .usda";
return description;
}
case 7: // sourceExtension
if(infoType == ANARI_STRING) {
static const char *extension = "USD_DEVICE";
return extension;
} else if(infoType == ANARI_INT32) {
static const int32_t value = 16;
return &value;
}
default: return nullptr;
}
}
static const void * ANARI_DEVICE_usd__time_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_false;
} else {
return nullptr;
}
case 1: // default
if(paramType == ANARI_FLOAT64 && infoType == ANARI_FLOAT64) {
static const double default_value[1] = {0.000000};
return default_value;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "Global scene timestep";
return description;
}
case 7: // sourceExtension
if(infoType == ANARI_STRING) {
static const char *extension = "USD_DEVICE";
return extension;
} else if(infoType == ANARI_INT32) {
static const int32_t value = 16;
return &value;
}
default: return nullptr;
}
}
static const void * ANARI_DEVICE_usd__writeAtCommit_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_false;
} else {
return nullptr;
}
case 1: // default
if(paramType == ANARI_BOOL && infoType == ANARI_BOOL) {
static const int32_t default_value[1] = {INT32_C(0)};
return default_value;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "(Experimental) Output USD as much as possible at commit of objects instead of anariRenderFrame";
return description;
}
case 7: // sourceExtension
if(infoType == ANARI_STRING) {
static const char *extension = "USD_DEVICE";
return extension;
} else if(infoType == ANARI_INT32) {
static const int32_t value = 16;
return &value;
}
default: return nullptr;
}
}
static const void * ANARI_DEVICE_usd__output_material_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_false;
} else {
return nullptr;
}
case 1: // default
if(paramType == ANARI_BOOL && infoType == ANARI_BOOL) {
static const int32_t default_value[1] = {INT32_C(1)};
return default_value;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "Output material objects.";
return description;
}
case 7: // sourceExtension
if(infoType == ANARI_STRING) {
static const char *extension = "USD_DEVICE";
return extension;
} else if(infoType == ANARI_INT32) {
static const int32_t value = 16;
return &value;
}
default: return nullptr;
}
}
static const void * ANARI_DEVICE_usd__output_previewSurfaceShader_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_false;
} else {
return nullptr;
}
case 1: // default
if(paramType == ANARI_BOOL && infoType == ANARI_BOOL) {
static const int32_t default_value[1] = {INT32_C(1)};
return default_value;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "Output materials according to the USD preview surface schema";
return description;
}
case 7: // sourceExtension
if(infoType == ANARI_STRING) {
static const char *extension = "USD_DEVICE";
return extension;
} else if(infoType == ANARI_INT32) {
static const int32_t value = 16;
return &value;
}
default: return nullptr;
}
}
static const void * ANARI_DEVICE_usd__output_mdlShader_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_false;
} else {
return nullptr;
}
case 1: // default
if(paramType == ANARI_BOOL && infoType == ANARI_BOOL) {
static const int32_t default_value[1] = {INT32_C(1)};
return default_value;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "Output materials according to the Omniverse MDL schema";
return description;
}
case 7: // sourceExtension
if(infoType == ANARI_STRING) {
static const char *extension = "USD_DEVICE";
return extension;
} else if(infoType == ANARI_INT32) {
static const int32_t value = 16;
return &value;
}
default: return nullptr;
}
}
static const void * ANARI_DEVICE_usd__garbageCollect_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_false;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "Instruct the USD device to remove USD output of objects that are not referenced within USD by other objects";
return description;
}
case 7: // sourceExtension
if(infoType == ANARI_STRING) {
static const char *extension = "USD_DEVICE";
return extension;
} else if(infoType == ANARI_INT32) {
static const int32_t value = 16;
return &value;
}
default: return nullptr;
}
}
static const void * ANARI_DEVICE_usd__removeUnusedNames_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_false;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "Clean up the name cache for object name generation and uniqueness checks";
return description;
}
case 7: // sourceExtension
if(infoType == ANARI_STRING) {
static const char *extension = "USD_DEVICE";
return extension;
} else if(infoType == ANARI_INT32) {
static const int32_t value = 16;
return &value;
}
default: return nullptr;
}
}
static const void * ANARI_DEVICE_usd__connection_logVerbosity_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_false;
} else {
return nullptr;
}
case 1: // default
if(paramType == ANARI_INT32 && infoType == ANARI_INT32) {
static const int32_t default_value[1] = {INT32_C(0)};
return default_value;
} else {
return nullptr;
}
case 2: // minimum
if(paramType == ANARI_INT32 && infoType == ANARI_INT32) {
static const int32_t default_value[1] = {INT32_C(0)};
return default_value;
} else {
return nullptr;
}
case 3: // maximum
if(paramType == ANARI_INT32 && infoType == ANARI_INT32) {
static const int32_t default_value[1] = {INT32_C(4)};
return default_value;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "Verbosity of logging information from the Nucleus connection, with the highest value being the loudest, similar to debug.";
return description;
}
case 7: // sourceExtension
if(infoType == ANARI_STRING) {
static const char *extension = "USD_DEVICE";
return extension;
} else if(infoType == ANARI_INT32) {
static const int32_t value = 16;
return &value;
}
default: return nullptr;
}
}
static const void * ANARI_DEVICE_usd__sceneStage_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_false;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "USD stage pointer";
return description;
}
case 7: // sourceExtension
if(infoType == ANARI_STRING) {
static const char *extension = "USD_DEVICE";
return extension;
} else if(infoType == ANARI_INT32) {
static const int32_t value = 16;
return &value;
}
default: return nullptr;
}
}
static const void * ANARI_DEVICE_usd__enableSaving_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_false;
} else {
return nullptr;
}
case 1: // default
if(paramType == ANARI_BOOL && infoType == ANARI_BOOL) {
static const int32_t default_value[1] = {INT32_C(1)};
return default_value;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "Allows the USD output to be written out, or just updated in memory if disabled. Useful in conjunction with usd::sceneStage.";
return description;
}
case 7: // sourceExtension
if(infoType == ANARI_STRING) {
static const char *extension = "USD_DEVICE";
return extension;
} else if(infoType == ANARI_INT32) {
static const int32_t value = 16;
return &value;
}
default: return nullptr;
}
}
static const void * ANARI_DEVICE_param_info(const char *paramName, ANARIDataType paramType, int infoName, ANARIDataType infoType) {
switch(param_hash(paramName)) {
case 35:
return ANARI_DEVICE_name_info(paramType, infoName, infoType);
case 66:
return ANARI_DEVICE_statusCallback_info(paramType, infoName, infoType);
case 67:
return ANARI_DEVICE_statusCallbackUserData_info(paramType, infoName, infoType);
case 89:
return ANARI_DEVICE_usd__serialize_hostName_info(paramType, infoName, infoType);
case 90:
return ANARI_DEVICE_usd__serialize_location_info(paramType, infoName, infoType);
case 91:
return ANARI_DEVICE_usd__serialize_newSession_info(paramType, infoName, infoType);
case 92:
return ANARI_DEVICE_usd__serialize_outputBinary_info(paramType, infoName, infoType);
case 93:
return ANARI_DEVICE_usd__time_info(paramType, infoName, infoType);
case 139:
return ANARI_DEVICE_usd__writeAtCommit_info(paramType, infoName, infoType);
case 82:
return ANARI_DEVICE_usd__output_material_info(paramType, infoName, infoType);
case 84:
return ANARI_DEVICE_usd__output_previewSurfaceShader_info(paramType, infoName, infoType);
case 83:
return ANARI_DEVICE_usd__output_mdlShader_info(paramType, infoName, infoType);
case 80:
return ANARI_DEVICE_usd__garbageCollect_info(paramType, infoName, infoType);
case 87:
return ANARI_DEVICE_usd__removeUnusedNames_info(paramType, infoName, infoType);
case 78:
return ANARI_DEVICE_usd__connection_logVerbosity_info(paramType, infoName, infoType);
case 88:
return ANARI_DEVICE_usd__sceneStage_info(paramType, infoName, infoType);
case 79:
return ANARI_DEVICE_usd__enableSaving_info(paramType, infoName, infoType);
default:
return nullptr;
}
}
static const void * ANARI_ARRAY1D_name_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_false;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "optional object name";
return description;
}
default: return nullptr;
}
}
static const void * ANARI_ARRAY1D_param_info(const char *paramName, ANARIDataType paramType, int infoName, ANARIDataType infoType) {
switch(param_hash(paramName)) {
case 35:
return ANARI_ARRAY1D_name_info(paramType, infoName, infoType);
default:
return nullptr;
}
}
static const void * ANARI_ARRAY2D_name_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_false;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "optional object name";
return description;
}
default: return nullptr;
}
}
static const void * ANARI_ARRAY2D_param_info(const char *paramName, ANARIDataType paramType, int infoName, ANARIDataType infoType) {
switch(param_hash(paramName)) {
case 35:
return ANARI_ARRAY2D_name_info(paramType, infoName, infoType);
default:
return nullptr;
}
}
static const void * ANARI_ARRAY3D_name_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_false;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "optional object name";
return description;
}
default: return nullptr;
}
}
static const void * ANARI_ARRAY3D_param_info(const char *paramName, ANARIDataType paramType, int infoName, ANARIDataType infoType) {
switch(param_hash(paramName)) {
case 35:
return ANARI_ARRAY3D_name_info(paramType, infoName, infoType);
default:
return nullptr;
}
}
static const void * ANARI_FRAME_name_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_false;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "optional object name";
return description;
}
default: return nullptr;
}
}
static const void * ANARI_FRAME_world_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_true;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "world to be rendererd";
return description;
}
default: return nullptr;
}
}
static const void * ANARI_FRAME_renderer_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_true;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "renderer which renders the frame";
return description;
}
default: return nullptr;
}
}
static const void * ANARI_FRAME_camera_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_true;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "camera used to render the world";
return description;
}
default: return nullptr;
}
}
static const void * ANARI_FRAME_size_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_true;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "size of the frame in pixels (width, height)";
return description;
}
default: return nullptr;
}
}
static const void * ANARI_FRAME_channel_color_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_false;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "enables mapping the color channel as the type specified";
return description;
}
case 6: // value
if(paramType == ANARI_DATA_TYPE && infoType == ANARI_DATA_TYPE_LIST) {
static const ANARIDataType values[] = {ANARI_UFIXED8_VEC4, ANARI_UFIXED8_RGBA_SRGB, ANARI_FLOAT32_VEC4, ANARI_UNKNOWN};
return values;
} else {
return nullptr;
}
default: return nullptr;
}
}
static const void * ANARI_FRAME_channel_depth_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_false;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "enables mapping the color channel as the type specified";
return description;
}
case 6: // value
if(paramType == ANARI_DATA_TYPE && infoType == ANARI_DATA_TYPE_LIST) {
static const ANARIDataType values[] = {ANARI_FLOAT32, ANARI_UNKNOWN};
return values;
} else {
return nullptr;
}
default: return nullptr;
}
}
static const void * ANARI_FRAME_param_info(const char *paramName, ANARIDataType paramType, int infoName, ANARIDataType infoType) {
switch(param_hash(paramName)) {
case 35:
return ANARI_FRAME_name_info(paramType, infoName, infoType);
case 155:
return ANARI_FRAME_world_info(paramType, infoName, infoType);
case 54:
return ANARI_FRAME_renderer_info(paramType, infoName, infoType);
case 6:
return ANARI_FRAME_camera_info(paramType, infoName, infoType);
case 62:
return ANARI_FRAME_size_info(paramType, infoName, infoType);
case 8:
return ANARI_FRAME_channel_color_info(paramType, infoName, infoType);
case 9:
return ANARI_FRAME_channel_depth_info(paramType, infoName, infoType);
default:
return nullptr;
}
}
static const void * ANARI_GROUP_name_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_false;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "optional object name";
return description;
}
default: return nullptr;
}
}
static const void * ANARI_GROUP_surface_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_false;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "array of surface objects";
return description;
}
case 5: // elementType
if(infoType == ANARI_DATA_TYPE_LIST) {
static const ANARIDataType values[] = {ANARI_SURFACE, ANARI_UNKNOWN};
return values;
} else {
return nullptr;
}
default: return nullptr;
}
}
static const void * ANARI_GROUP_volume_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_false;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "array of volume objects";
return description;
}
case 5: // elementType
if(infoType == ANARI_DATA_TYPE_LIST) {
static const ANARIDataType values[] = {ANARI_VOLUME, ANARI_UNKNOWN};
return values;
} else {
return nullptr;
}
default: return nullptr;
}
}
static const void * ANARI_GROUP_light_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_false;
} else {
return nullptr;
}
case 4: // description
{
static const char *description = "array of light objects";
return description;
}
case 5: // elementType
if(infoType == ANARI_DATA_TYPE_LIST) {
static const ANARIDataType values[] = {ANARI_LIGHT, ANARI_UNKNOWN};
return values;
} else {
return nullptr;
}
default: return nullptr;
}
}
static const void * ANARI_GROUP_usd__timeVarying_info(ANARIDataType paramType, int infoName, ANARIDataType infoType) {
(void)paramType;
switch(infoName) {
case 0: // required
if(infoType == ANARI_BOOL) {
return &anari_false;
} else {