-
Notifications
You must be signed in to change notification settings - Fork 2.5k
/
GraphicsEnums.cs
1858 lines (1657 loc) · 55.7 KB
/
GraphicsEnums.cs
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
// Unity C# reference source
// Copyright (c) Unity Technologies. For terms of use, see
// https://unity3d.com/legal/licenses/Unity_Reference_Only_License
using System;
using UnityEngine.Bindings;
using UnityEngine.Scripting;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine
{
public enum RenderingPath
{
UsePlayerSettings = -1,
VertexLit = 0,
Forward = 1,
DeferredLighting = 2,
DeferredShading = 3
}
// Match Camera::TransparencySortMode on C++ side
public enum TransparencySortMode
{
Default = 0,
Perspective = 1,
Orthographic = 2,
CustomAxis = 3
}
// Match the TargetEyeMask enum in GfxDeviceTypes.h on C++ side
// bitshifts must match the StereoscopicEye enum
public enum StereoTargetEyeMask
{
None = 0,
Left = 1 << 0,
Right = 1 << 1,
Both = Left | Right
}
[Flags]
public enum CameraType
{
Game = 1,
SceneView = 2,
Preview = 4,
VR = 8,
Reflection = 16
}
[Flags]
public enum ComputeBufferType
{
Default = 0,
Raw = 1,
Append = 2,
Counter = 4,
Constant = 8,
Structured = 16,
[System.Obsolete("Enum member DrawIndirect has been deprecated. Use IndirectArguments instead (UnityUpgradable) -> IndirectArguments", false)]
DrawIndirect = 256,
IndirectArguments = 256,
[System.Obsolete("Enum member GPUMemory has been deprecated. All compute buffers now follow the behavior previously defined by this member.", false)]
GPUMemory = 512
}
public enum LightType
{
Spot = 0,
Directional = 1,
Point = 2,
//[System.Obsolete("Enum member LightType.Area has been deprecated. Use LightType.Rectangle instead (UnityUpgradable) -> Rectangle", true)]
// For now, we will have both Area and Rectangle in the source, but this will be removed once the SRP package is in.
Area = 3,
Rectangle = 3,
Disc = 4
}
public enum LightShape
{
Cone = 0,
Pyramid = 1,
Box = 2
}
public enum LightRenderMode
{
Auto = 0,
ForcePixel = 1,
ForceVertex = 2
}
public enum LightShadows
{
None = 0,
Hard = 1,
Soft = 2
}
public enum FogMode
{
Linear = 1,
Exponential = 2,
ExponentialSquared = 3
}
[Flags]
public enum LightmapBakeType
{
Realtime = 4,
Baked = 2,
Mixed = 1
}
// make sure to add any new mode to LightmapMixedBakeMode for SRP so that it can be supported
public enum MixedLightingMode
{
IndirectOnly = 0,
Shadowmask = 2,
Subtractive = 1
}
// Must match ReceiveGIEnum::ReceiveGI on the C++ side
public enum ReceiveGI
{
// Off = 0,
Lightmaps = 1,
LightProbes = 2
}
[Obsolete("See QualitySettings.names, QualitySettings.SetQualityLevel, and QualitySettings.GetQualityLevel")]
public enum QualityLevel
{
Fastest = 0,
Fast = 1,
Simple = 2,
Good = 3,
Beautiful = 4,
Fantastic = 5
}
public enum ShadowProjection
{
CloseFit = 0,
StableFit = 1
}
public enum ShadowQuality
{
Disable = 0,
HardOnly = 1,
All = 2
}
public enum ShadowResolution
{
Low = UnityEngine.Rendering.LightShadowResolution.Low,
Medium = UnityEngine.Rendering.LightShadowResolution.Medium,
High = UnityEngine.Rendering.LightShadowResolution.High,
VeryHigh = UnityEngine.Rendering.LightShadowResolution.VeryHigh
}
public enum ShadowmaskMode
{
Shadowmask = 0,
DistanceShadowmask = 1
}
public enum CameraClearFlags
{
Skybox = 1,
Color = 2,
SolidColor = 2,
Depth = 3,
Nothing = 4
}
[Flags]
public enum DepthTextureMode
{
None = 0,
Depth = 1,
DepthNormals = 2,
MotionVectors = 4
}
public enum TexGenMode
{
None = 0,
SphereMap = 1,
Object = 2,
EyeLinear = 3,
CubeReflect = 4,
CubeNormal = 5
}
public enum AnisotropicFiltering
{
Disable = 0,
Enable = 1,
ForceEnable = 2
}
[Obsolete("BlendWeights is obsolete. Use SkinWeights instead (UnityUpgradable) -> SkinWeights", true)]
public enum BlendWeights
{
[Obsolete("BlendWeights.OneBone is obsolete. Use SkinWeights.OneBone instead (UnityUpgradable) -> SkinWeights.OneBone", true)]
OneBone = 1,
[Obsolete("BlendWeights.TwoBones is obsolete. Use SkinWeights.TwoBones instead (UnityUpgradable) -> SkinWeights.TwoBones", true)]
TwoBones = 2,
[Obsolete("BlendWeights.FourBones is obsolete. Use SkinWeights.FourBones instead (UnityUpgradable) -> SkinWeights.FourBones", true)]
FourBones = 4,
}
public enum SkinWeights
{
OneBone = 1,
TwoBones = 2,
FourBones = 4,
Unlimited = 255
}
public enum MeshTopology
{
Triangles = 0,
Quads = 2,
Lines = 3,
LineStrip = 4,
Points = 5
}
public enum SkinQuality
{
Auto = 0,
Bone1 = 1,
Bone2 = 2,
Bone4 = 4
}
public enum ColorSpace
{
Uninitialized = -1,
Gamma = 0,
Linear = 1
}
// Match ColorGamut on C++ side
[UsedByNativeCode]
[NativeHeader("Runtime/Graphics/ColorGamut.h")]
public enum ColorGamut
{
sRGB = 0,
Rec709 = 1,
Rec2020 = 2,
DisplayP3 = 3,
HDR10 = 4,
DolbyHDR = 5
}
public enum ScreenOrientation
{
[System.Obsolete("Enum member Unknown has been deprecated.", false)]
Unknown = 0,
Portrait = 1,
PortraitUpsideDown = 2,
LandscapeLeft = 3,
LandscapeRight = 4,
AutoRotation = 5,
Landscape = 3
}
public enum FilterMode
{
Point = 0,
Bilinear = 1,
Trilinear = 2,
}
public enum TextureWrapMode
{
Repeat = 0,
Clamp = 1,
Mirror = 2,
MirrorOnce = 3,
}
public enum NPOTSupport
{
[Obsolete("NPOTSupport.None does not happen on any platforms")]
None = 0,
Restricted = 1,
Full = 2
}
public enum TextureFormat
{
Alpha8 = 1,
ARGB4444 = 2,
RGB24 = 3,
RGBA32 = 4,
ARGB32 = 5,
RGB565 = 7,
R16 = 9,
DXT1 = 10,
DXT5 = 12,
RGBA4444 = 13,
BGRA32 = 14,
RHalf = 15,
RGHalf = 16,
RGBAHalf = 17,
RFloat = 18,
RGFloat = 19,
RGBAFloat = 20,
YUY2 = 21,
RGB9e5Float = 22,
BC4 = 26,
BC5 = 27,
BC6H = 24,
BC7 = 25,
DXT1Crunched = 28,
DXT5Crunched = 29,
PVRTC_RGB2 = 30,
PVRTC_RGBA2 = 31,
PVRTC_RGB4 = 32,
PVRTC_RGBA4 = 33,
ETC_RGB4 = 34,
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Enum member TextureFormat.ATC_RGB4 has been deprecated. Use ETC_RGB4 instead (UnityUpgradable) -> ETC_RGB4", true)]
ATC_RGB4 = -127,
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Enum member TextureFormat.ATC_RGBA8 has been deprecated. Use ETC2_RGBA8 instead (UnityUpgradable) -> ETC2_RGBA8", true)]
ATC_RGBA8 = -127,
EAC_R = 41,
EAC_R_SIGNED = 42,
EAC_RG = 43,
EAC_RG_SIGNED = 44,
ETC2_RGB = 45,
ETC2_RGBA1 = 46,
ETC2_RGBA8 = 47,
ASTC_4x4 = 48,
ASTC_5x5 = 49,
ASTC_6x6 = 50,
ASTC_8x8 = 51,
ASTC_10x10 = 52,
ASTC_12x12 = 53,
// Nintendo 3DS
[System.Obsolete("Nintendo 3DS is no longer supported.")]
ETC_RGB4_3DS = 60,
[System.Obsolete("Nintendo 3DS is no longer supported.")]
ETC_RGBA8_3DS = 61,
RG16 = 62,
R8 = 63,
ETC_RGB4Crunched = 64,
ETC2_RGBA8Crunched = 65,
ASTC_HDR_4x4 = 66,
ASTC_HDR_5x5 = 67,
ASTC_HDR_6x6 = 68,
ASTC_HDR_8x8 = 69,
ASTC_HDR_10x10 = 70,
ASTC_HDR_12x12 = 71,
// 16-bit raw integer formats
RG32 = 72,
RGB48 = 73,
RGBA64 = 74,
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Enum member TextureFormat.ASTC_RGB_4x4 has been deprecated. Use ASTC_4x4 instead (UnityUpgradable) -> ASTC_4x4")]
ASTC_RGB_4x4 = 48,
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Enum member TextureFormat.ASTC_RGB_5x5 has been deprecated. Use ASTC_5x5 instead (UnityUpgradable) -> ASTC_5x5")]
ASTC_RGB_5x5 = 49,
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Enum member TextureFormat.ASTC_RGB_6x6 has been deprecated. Use ASTC_6x6 instead (UnityUpgradable) -> ASTC_6x6")]
ASTC_RGB_6x6 = 50,
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Enum member TextureFormat.ASTC_RGB_8x8 has been deprecated. Use ASTC_8x8 instead (UnityUpgradable) -> ASTC_8x8")]
ASTC_RGB_8x8 = 51,
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Enum member TextureFormat.ASTC_RGB_10x10 has been deprecated. Use ASTC_10x10 instead (UnityUpgradable) -> ASTC_10x10")]
ASTC_RGB_10x10 = 52,
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Enum member TextureFormat.ASTC_RGB_12x12 has been deprecated. Use ASTC_12x12 instead (UnityUpgradable) -> ASTC_12x12")]
ASTC_RGB_12x12 = 53,
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Enum member TextureFormat.ASTC_RGBA_4x4 has been deprecated. Use ASTC_4x4 instead (UnityUpgradable) -> ASTC_4x4")]
ASTC_RGBA_4x4 = 54,
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Enum member TextureFormat.ASTC_RGBA_5x5 has been deprecated. Use ASTC_5x5 instead (UnityUpgradable) -> ASTC_5x5")]
ASTC_RGBA_5x5 = 55,
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Enum member TextureFormat.ASTC_RGBA_6x6 has been deprecated. Use ASTC_6x6 instead (UnityUpgradable) -> ASTC_6x6")]
ASTC_RGBA_6x6 = 56,
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Enum member TextureFormat.ASTC_RGBA_8x8 has been deprecated. Use ASTC_8x8 instead (UnityUpgradable) -> ASTC_8x8")]
ASTC_RGBA_8x8 = 57,
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Enum member TextureFormat.ASTC_RGBA_10x10 has been deprecated. Use ASTC_10x10 instead (UnityUpgradable) -> ASTC_10x10")]
ASTC_RGBA_10x10 = 58,
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Enum member TextureFormat.ASTC_RGBA_12x12 has been deprecated. Use ASTC_12x12 instead (UnityUpgradable) -> ASTC_12x12")]
ASTC_RGBA_12x12 = 59,
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Enum member TextureFormat.PVRTC_2BPP_RGB has been deprecated. Use PVRTC_RGB2 instead (UnityUpgradable) -> PVRTC_RGB2", true)]
PVRTC_2BPP_RGB = -127,
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Enum member TextureFormat.PVRTC_2BPP_RGBA has been deprecated. Use PVRTC_RGBA2 instead (UnityUpgradable) -> PVRTC_RGBA2", true)]
PVRTC_2BPP_RGBA = -127,
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Enum member TextureFormat.PVRTC_4BPP_RGB has been deprecated. Use PVRTC_RGB4 instead (UnityUpgradable) -> PVRTC_RGB4", true)]
PVRTC_4BPP_RGB = -127,
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Enum member TextureFormat.PVRTC_4BPP_RGBA has been deprecated. Use PVRTC_RGBA4 instead (UnityUpgradable) -> PVRTC_RGBA4", true)]
PVRTC_4BPP_RGBA = -127,
}
public enum CubemapFace
{
Unknown = -1,
PositiveX = 0,
NegativeX = 1,
PositiveY = 2,
NegativeY = 3,
PositiveZ = 4,
NegativeZ = 5
}
public enum RenderTextureFormat
{
ARGB32 = 0,
Depth = 1,
ARGBHalf = 2,
Shadowmap = 3,
RGB565 = 4,
ARGB4444 = 5,
ARGB1555 = 6,
Default = 7,
ARGB2101010 = 8,
DefaultHDR = 9,
ARGB64 = 10,
ARGBFloat = 11,
RGFloat = 12,
RGHalf = 13,
RFloat = 14,
RHalf = 15,
R8 = 16,
ARGBInt = 17,
RGInt = 18,
RInt = 19,
BGRA32 = 20,
// kRTFormatVideo = 21,
RGB111110Float = 22,
RG32 = 23,
RGBAUShort = 24,
RG16 = 25,
BGRA10101010_XR = 26,
BGR101010_XR = 27,
R16 = 28,
}
public enum VRTextureUsage
{
None,
OneEye,
TwoEyes,
DeviceSpecific
}
// keep this in sync with the RenderTextureFlags enum in RenderTextureDesc.h
[Flags]
public enum RenderTextureCreationFlags
{
MipMap = 1 << 0,
AutoGenerateMips = 1 << 1,
SRGB = 1 << 2,
EyeTexture = 1 << 3,
EnableRandomWrite = 1 << 4,
CreatedFromScript = 1 << 5, // always set by script.
// SampleOnlyDepth = 1 << 6, // this is only used internally.
AllowVerticalFlip = 1 << 7,
NoResolvedColorSurface = 1 << 8,
DynamicallyScalable = 1 << 10,
BindMS = 1 << 11,
}
public enum RenderTextureReadWrite
{
Default = 0,
Linear = 1,
sRGB = 2
}
[Flags]
public enum RenderTextureMemoryless
{
None = 0,
Color = 1,
Depth = 2,
MSAA = 4
}
[Flags]
public enum HDRDisplaySupportFlags
{
None = 0,
Supported = 1 << 0,
RuntimeSwitchable = 1 << 1,
AutomaticTonemapping = 1 << 2
}
namespace Experimental
{
namespace Rendering
{
// keep this in sync with the TextureCreationFlags enum in Texture.h
[Flags]
public enum TextureCreationFlags
{
None = 0,
MipChain = 1 << 0,
//DontInitializePixels = 1 << 2, // this is only used internally.
//DontDestroyTexture = 1 << 3, // this is only used internally.
//DontCreateSharedTextureData = 1 << 4, // this is only used internally.
//APIShareable = 1 << 5, // this is only used internally.
Crunch = 1 << 6,
}
// Keep in sync with FormatUsage in Runtime/Graphics/Format.h
public enum FormatUsage
{
Sample = 0,
Linear = 1,
Sparse = 2,
Render = 4,
Blend = 5,
GetPixels = 6,
SetPixels = 7,
SetPixels32 = 8,
ReadPixels = 9,
LoadStore = 10,
MSAA2x = 11,
MSAA4x = 12,
MSAA8x = 13,
//MSAA16x = 14, // this is only used internally.
StencilSampling = 15,
}
// Keep in sync with DefaultFormat in Runtime/Graphics/Format.h
public enum DefaultFormat
{
LDR,
HDR,
}
// Keep in sync with GraphicsFormat in Runtime/Graphics/Format.h
public enum GraphicsFormat
{
None = 0,
R8_SRGB = 1,
R8G8_SRGB = 2,
R8G8B8_SRGB = 3,
R8G8B8A8_SRGB = 4,
R8_UNorm = 5,
R8G8_UNorm = 6,
R8G8B8_UNorm = 7,
R8G8B8A8_UNorm = 8,
R8_SNorm = 9,
R8G8_SNorm = 10,
R8G8B8_SNorm = 11,
R8G8B8A8_SNorm = 12,
R8_UInt = 13,
R8G8_UInt = 14,
R8G8B8_UInt = 15,
R8G8B8A8_UInt = 16,
R8_SInt = 17,
R8G8_SInt = 18,
R8G8B8_SInt = 19,
R8G8B8A8_SInt = 20,
R16_UNorm = 21,
R16G16_UNorm = 22,
R16G16B16_UNorm = 23,
R16G16B16A16_UNorm = 24,
R16_SNorm = 25,
R16G16_SNorm = 26,
R16G16B16_SNorm = 27,
R16G16B16A16_SNorm = 28,
R16_UInt = 29,
R16G16_UInt = 30,
R16G16B16_UInt = 31,
R16G16B16A16_UInt = 32,
R16_SInt = 33,
R16G16_SInt = 34,
R16G16B16_SInt = 35,
R16G16B16A16_SInt = 36,
R32_UInt = 37,
R32G32_UInt = 38,
R32G32B32_UInt = 39,
R32G32B32A32_UInt = 40,
R32_SInt = 41,
R32G32_SInt = 42,
R32G32B32_SInt = 43,
R32G32B32A32_SInt = 44,
R16_SFloat = 45,
R16G16_SFloat = 46,
R16G16B16_SFloat = 47,
R16G16B16A16_SFloat = 48,
R32_SFloat = 49,
R32G32_SFloat = 50,
R32G32B32_SFloat = 51,
R32G32B32A32_SFloat = 52,
B8G8R8_SRGB = 56,
B8G8R8A8_SRGB = 57,
B8G8R8_UNorm = 58,
B8G8R8A8_UNorm = 59,
B8G8R8_SNorm = 60,
B8G8R8A8_SNorm = 61,
B8G8R8_UInt = 62,
B8G8R8A8_UInt = 63,
B8G8R8_SInt = 64,
B8G8R8A8_SInt = 65,
R4G4B4A4_UNormPack16 = 66,
B4G4R4A4_UNormPack16 = 67,
R5G6B5_UNormPack16 = 68,
B5G6R5_UNormPack16 = 69,
R5G5B5A1_UNormPack16 = 70,
B5G5R5A1_UNormPack16 = 71,
A1R5G5B5_UNormPack16 = 72,
E5B9G9R9_UFloatPack32 = 73,
B10G11R11_UFloatPack32 = 74,
A2B10G10R10_UNormPack32 = 75,
A2B10G10R10_UIntPack32 = 76,
A2B10G10R10_SIntPack32 = 77,
A2R10G10B10_UNormPack32 = 78,
A2R10G10B10_UIntPack32 = 79,
A2R10G10B10_SIntPack32 = 80,
A2R10G10B10_XRSRGBPack32 = 81,
A2R10G10B10_XRUNormPack32 = 82,
R10G10B10_XRSRGBPack32 = 83,
R10G10B10_XRUNormPack32 = 84,
A10R10G10B10_XRSRGBPack32 = 85,
A10R10G10B10_XRUNormPack32 = 86,
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[Obsolete("Enum member GraphicsFormat.RGB_DXT1_SRGB has been deprecated. Use GraphicsFormat.RGBA_DXT1_SRGB instead (UnityUpgradable) -> RGBA_DXT1_SRGB", true)]
RGB_DXT1_SRGB = 96,
RGBA_DXT1_SRGB = 96,
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[Obsolete("Enum member GraphicsFormat.RGB_DXT1_UNorm has been deprecated. Use GraphicsFormat.RGBA_DXT1_UNorm instead (UnityUpgradable) -> RGBA_DXT1_UNorm", true)]
RGB_DXT1_UNorm = 97,
RGBA_DXT1_UNorm = 97,
RGBA_DXT3_SRGB = 98,
RGBA_DXT3_UNorm = 99,
RGBA_DXT5_SRGB = 100,
RGBA_DXT5_UNorm = 101,
R_BC4_UNorm = 102,
R_BC4_SNorm = 103,
RG_BC5_UNorm = 104,
RG_BC5_SNorm = 105,
RGB_BC6H_UFloat = 106,
RGB_BC6H_SFloat = 107,
RGBA_BC7_SRGB = 108,
RGBA_BC7_UNorm = 109,
RGB_PVRTC_2Bpp_SRGB = 110,
RGB_PVRTC_2Bpp_UNorm = 111,
RGB_PVRTC_4Bpp_SRGB = 112,
RGB_PVRTC_4Bpp_UNorm = 113,
RGBA_PVRTC_2Bpp_SRGB = 114,
RGBA_PVRTC_2Bpp_UNorm = 115,
RGBA_PVRTC_4Bpp_SRGB = 116,
RGBA_PVRTC_4Bpp_UNorm = 117,
RGB_ETC_UNorm = 118,
RGB_ETC2_SRGB = 119,
RGB_ETC2_UNorm = 120,
RGB_A1_ETC2_SRGB = 121,
RGB_A1_ETC2_UNorm = 122,
RGBA_ETC2_SRGB = 123,
RGBA_ETC2_UNorm = 124,
R_EAC_UNorm = 125,
R_EAC_SNorm = 126,
RG_EAC_UNorm = 127,
RG_EAC_SNorm = 128,
RGBA_ASTC4X4_SRGB = 129,
RGBA_ASTC4X4_UNorm = 130,
RGBA_ASTC5X5_SRGB = 131,
RGBA_ASTC5X5_UNorm = 132,
RGBA_ASTC6X6_SRGB = 133,
RGBA_ASTC6X6_UNorm = 134,
RGBA_ASTC8X8_SRGB = 135,
RGBA_ASTC8X8_UNorm = 136,
RGBA_ASTC10X10_SRGB = 137,
RGBA_ASTC10X10_UNorm = 138,
RGBA_ASTC12X12_SRGB = 139,
RGBA_ASTC12X12_UNorm = 140,
RGBA_ASTC4X4_UFloat = 145,
RGBA_ASTC5X5_UFloat = 146,
RGBA_ASTC6X6_UFloat = 147,
RGBA_ASTC8X8_UFloat = 148,
RGBA_ASTC10X10_UFloat = 149,
RGBA_ASTC12X12_UFloat = 150,
}
// Match RayTracingMode on C++ side
public enum RayTracingMode
{
Off = 0,
Static = 1,
DynamicTransform = 2,
DynamicGeometry = 3,
}
}//namespace Rendering
}//namespace Experimental
[Flags]
public enum LightmapsMode
{
NonDirectional = 0,
CombinedDirectional = 1,
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Enum member LightmapsMode.SeparateDirectional has been removed. Use CombinedDirectional instead (UnityUpgradable) -> CombinedDirectional", true)]
SeparateDirectional = 2,
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Enum member LightmapsMode.Single has been removed. Use NonDirectional instead (UnityUpgradable) -> NonDirectional", true)]
Single = 0,
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Enum member LightmapsMode.Dual has been removed. Use CombinedDirectional instead (UnityUpgradable) -> CombinedDirectional", true)]
Dual = 1,
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Enum member LightmapsMode.Directional has been removed. Use CombinedDirectional instead (UnityUpgradable) -> CombinedDirectional", true)]
Directional = 2,
}
// Match MaterialGlobalIlluminationFlags on C++ side
[Flags]
public enum MaterialGlobalIlluminationFlags
{
None = 0,
RealtimeEmissive = 1 << 0,
BakedEmissive = 1 << 1,
EmissiveIsBlack = 1 << 2,
AnyEmissive = RealtimeEmissive | BakedEmissive
}
// Match the enums from LightProbeProxyVolume class on C++ side
public partial class LightProbeProxyVolume
{
public enum ResolutionMode
{
Automatic = 0,
Custom = 1
}
public enum BoundingBoxMode
{
AutomaticLocal = 0,
AutomaticWorld = 1,
Custom = 2
}
public enum ProbePositionMode
{
CellCorner = 0,
CellCenter = 1
}
public enum RefreshMode
{
Automatic = 0,
EveryFrame = 1,
ViaScripting = 2,
}
public enum QualityMode
{
Low = 0,
Normal = 1,
}
public enum DataFormat
{
HalfFloat = 0,
Float = 1,
}
}
public enum CustomRenderTextureInitializationSource
{
TextureAndColor = 0,
Material = 1,
}
public enum CustomRenderTextureUpdateMode
{
OnLoad = 0,
Realtime = 1,
OnDemand = 2,
}
public enum CustomRenderTextureUpdateZoneSpace
{
Normalized = 0,
Pixel = 1,
}
public enum MotionVectorGenerationMode
{
Camera = 0,
Object = 1,
ForceNoMotion = 2,
}
public enum LineTextureMode
{
Stretch = 0,
Tile = 1,
DistributePerSegment = 2,
RepeatPerSegment = 3,
}
public enum LineAlignment
{
View = 0,
[System.Obsolete("Enum member Local has been deprecated. Use TransformZ instead (UnityUpgradable) -> TransformZ", false)]
Local = 1,
TransformZ = 1,
}
} // namespace UnityEngine
namespace UnityEngine.Rendering
{
// Match IndexFormat on C++ side
public enum IndexFormat
{
UInt16 = 0,
UInt32 = 1,
}
[Flags]
public enum MeshUpdateFlags
{
Default = 0,
DontValidateIndices = 1 << 0,
DontResetBoneBounds = 1 << 1,
DontNotifyMeshUsers = 1 << 2,
DontRecalculateBounds = 1 << 3,
}
// Match VertexFormat on C++ side
public enum VertexAttributeFormat
{
Float32 = 0,
Float16 = 1,
UNorm8 = 2,
SNorm8 = 3,
UNorm16 = 4,
SNorm16 = 5,
UInt8 = 6,
SInt8 = 7,
UInt16 = 8,
SInt16 = 9,
UInt32 = 10,
SInt32 = 11,
}
//Keep in sync with ShaderChannel in GfxDeviceTypes.h
[MovedFrom("UnityEngine.Experimental.Rendering")]
public enum VertexAttribute
{
Position = 0, // Vertex (vector3)
Normal, // Normal (vector3)
Tangent, // Tangent (vector4)
Color, // Vertex color
TexCoord0, // Texcoord 0
TexCoord1, // Texcoord 1
TexCoord2, // Texcoord 2
TexCoord3, // Texcoord 3
TexCoord4, // Texcoord 4
TexCoord5, // Texcoord 5
TexCoord6, // Texcoord 6
TexCoord7, // Texcoord 7
BlendWeight,
BlendIndices,
}
// Match Camera::OpaqueSortMode on C++ side
public enum OpaqueSortMode
{
Default = 0,
FrontToBack = 1,
NoDistanceSort = 2
}
// Match RenderLoopEnums.h on C++ side
public enum RenderQueue
{
Background = 1000,
Geometry = 2000,
AlphaTest = 2450, // we want it to be in the end of geometry queue
GeometryLast = 2500, // last queue that is considered "opaque" by Unity
Transparent = 3000,
Overlay = 4000,
}
// Make sure the values are in sync with the native side!
public enum RenderBufferLoadAction
{
Load = 0,
Clear = 1,
DontCare = 2,
}
// Make sure the values are in sync with the native side!
public enum RenderBufferStoreAction
{
Store = 0,
Resolve = 1, // Resolve the MSAA surface (currently only works with RenderPassSetup)
StoreAndResolve = 2, // Resolve the MSAA surface into the resolve target, but also store the MSAA version
DontCare = 3,
}
[NativeHeader("Runtime/GfxDevice/GfxDeviceTypes.h")]
public enum BlendMode
{
Zero = 0,
One = 1,
DstColor = 2,
SrcColor = 3,
OneMinusDstColor = 4,
SrcAlpha = 5,
OneMinusSrcColor = 6,
DstAlpha = 7,
OneMinusDstAlpha = 8,
SrcAlphaSaturate = 9,
OneMinusSrcAlpha = 10
}
[NativeHeader("Runtime/GfxDevice/GfxDeviceTypes.h")]
public enum BlendOp
{
Add = 0,
Subtract = 1,
ReverseSubtract = 2,
Min = 3,
Max = 4,
LogicalClear = 5,
LogicalSet = 6,
LogicalCopy = 7,
LogicalCopyInverted = 8,
LogicalNoop = 9,
LogicalInvert = 10,
LogicalAnd = 11,
LogicalNand = 12,
LogicalOr = 13,
LogicalNor = 14,
LogicalXor = 15,
LogicalEquivalence = 16,
LogicalAndReverse = 17,
LogicalAndInverted = 18,
LogicalOrReverse = 19,
LogicalOrInverted = 20,
Multiply = 21,
Screen = 22,
Overlay = 23,
Darken = 24,
Lighten = 25,
ColorDodge = 26,
ColorBurn = 27,
HardLight = 28,
SoftLight = 29,