-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
const_strings.go
222 lines (189 loc) · 6.75 KB
/
const_strings.go
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
// Code generated by "stringer -linecomment -type ComponentType,AccessorType,PrimitiveMode,AlphaMode,MagFilter,MinFilter,WrappingMode,Interpolation,Target,TRSProperty -output const_strings.go"; DO NOT EDIT.
package gltf
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[ComponentFloat-0]
_ = x[ComponentByte-1]
_ = x[ComponentUbyte-2]
_ = x[ComponentShort-3]
_ = x[ComponentUshort-4]
_ = x[ComponentUint-5]
}
const _ComponentType_name = "FLOATBYTEUNSIGNED_BYTESHORTUNSIGNED_SHORTUNSIGNED_INT"
var _ComponentType_index = [...]uint8{0, 5, 9, 22, 27, 41, 53}
func (i ComponentType) String() string {
if i >= ComponentType(len(_ComponentType_index)-1) {
return "ComponentType(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _ComponentType_name[_ComponentType_index[i]:_ComponentType_index[i+1]]
}
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[AccessorScalar-0]
_ = x[AccessorVec2-1]
_ = x[AccessorVec3-2]
_ = x[AccessorVec4-3]
_ = x[AccessorMat2-4]
_ = x[AccessorMat3-5]
_ = x[AccessorMat4-6]
}
const _AccessorType_name = "SCALARVEC2VEC3VEC4MAT2MAT3MAT4"
var _AccessorType_index = [...]uint8{0, 6, 10, 14, 18, 22, 26, 30}
func (i AccessorType) String() string {
if i >= AccessorType(len(_AccessorType_index)-1) {
return "AccessorType(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _AccessorType_name[_AccessorType_index[i]:_AccessorType_index[i+1]]
}
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[PrimitiveTriangles-0]
_ = x[PrimitivePoints-1]
_ = x[PrimitiveLines-2]
_ = x[PrimitiveLineLoop-3]
_ = x[PrimitiveLineStrip-4]
_ = x[PrimitiveTriangleStrip-5]
_ = x[PrimitiveTriangleFan-6]
}
const _PrimitiveMode_name = "TRIANGLESPOINTSLINESLINE_LOOPLINE_STRIPTRIANGLE_STRIPTRIANGLE_FAN"
var _PrimitiveMode_index = [...]uint8{0, 9, 15, 20, 29, 39, 53, 65}
func (i PrimitiveMode) String() string {
if i >= PrimitiveMode(len(_PrimitiveMode_index)-1) {
return "PrimitiveMode(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _PrimitiveMode_name[_PrimitiveMode_index[i]:_PrimitiveMode_index[i+1]]
}
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[AlphaOpaque-0]
_ = x[AlphaMask-1]
_ = x[AlphaBlend-2]
}
const _AlphaMode_name = "OPAQUEMASKBLEND"
var _AlphaMode_index = [...]uint8{0, 6, 10, 15}
func (i AlphaMode) String() string {
if i >= AlphaMode(len(_AlphaMode_index)-1) {
return "AlphaMode(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _AlphaMode_name[_AlphaMode_index[i]:_AlphaMode_index[i+1]]
}
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[MagUndefined-0]
_ = x[MagLinear-1]
_ = x[MagNearest-2]
}
const _MagFilter_name = "UNDEFINEDLINEARNEAREST"
var _MagFilter_index = [...]uint8{0, 9, 15, 22}
func (i MagFilter) String() string {
if i >= MagFilter(len(_MagFilter_index)-1) {
return "MagFilter(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _MagFilter_name[_MagFilter_index[i]:_MagFilter_index[i+1]]
}
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[MinUndefined-0]
_ = x[MinLinear-1]
_ = x[MinNearestMipMapLinear-2]
_ = x[MinNearest-3]
_ = x[MinNearestMipMapNearest-4]
_ = x[MinLinearMipMapNearest-5]
_ = x[MinLinearMipMapLinear-6]
}
const _MinFilter_name = "UNDEFINEDLINEARNEAREST_MIPMAP_LINEARNEARESTNEAREST_MIPMAP_NEARESTLINEAR_MIPMAP_NEARESTLINEAR_MIPMAP_LINEAR"
var _MinFilter_index = [...]uint8{0, 9, 15, 36, 43, 65, 86, 106}
func (i MinFilter) String() string {
if i >= MinFilter(len(_MinFilter_index)-1) {
return "MinFilter(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _MinFilter_name[_MinFilter_index[i]:_MinFilter_index[i+1]]
}
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[WrapRepeat-0]
_ = x[WrapClampToEdge-1]
_ = x[WrapMirroredRepeat-2]
}
const _WrappingMode_name = "REPEATCLAMP_TO_EDGEMIRRORED_REPEAT"
var _WrappingMode_index = [...]uint8{0, 6, 19, 34}
func (i WrappingMode) String() string {
if i >= WrappingMode(len(_WrappingMode_index)-1) {
return "WrappingMode(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _WrappingMode_name[_WrappingMode_index[i]:_WrappingMode_index[i+1]]
}
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[InterpolationLinear-0]
_ = x[InterpolationStep-1]
_ = x[InterpolationCubicSpline-2]
}
const _Interpolation_name = "LINEARSTEPCUBICSPLINE"
var _Interpolation_index = [...]uint8{0, 6, 10, 21}
func (i Interpolation) String() string {
if i >= Interpolation(len(_Interpolation_index)-1) {
return "Interpolation(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Interpolation_name[_Interpolation_index[i]:_Interpolation_index[i+1]]
}
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[TargetNone-0]
_ = x[TargetArrayBuffer-34962]
_ = x[TargetElementArrayBuffer-34963]
}
const (
_Target_name_0 = "NONE"
_Target_name_1 = "ARRAY_BUFFERELEMENT_ARRAY_BUFFER"
)
var (
_Target_index_1 = [...]uint8{0, 12, 32}
)
func (i Target) String() string {
switch {
case i == 0:
return _Target_name_0
case 34962 <= i && i <= 34963:
i -= 34962
return _Target_name_1[_Target_index_1[i]:_Target_index_1[i+1]]
default:
return "Target(" + strconv.FormatInt(int64(i), 10) + ")"
}
}
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[TRSTranslation-0]
_ = x[TRSRotation-1]
_ = x[TRSScale-2]
_ = x[TRSWeights-3]
}
const _TRSProperty_name = "translationrotationscaleweights"
var _TRSProperty_index = [...]uint8{0, 11, 19, 24, 31}
func (i TRSProperty) String() string {
if i >= TRSProperty(len(_TRSProperty_index)-1) {
return "TRSProperty(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _TRSProperty_name[_TRSProperty_index[i]:_TRSProperty_index[i+1]]
}