aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/old/vlib/sokol/gfx/enums.v
blob: fbe336ed4401bb2b08c975968d10b27966692deb (plain)
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
module gfx

pub enum Backend {
	glcore33
	gles2
	gles3
	d3d11
	metal_ios
	metal_macos
	metal_simulator
	dummy
}

pub enum PixelFormat {
	_default // value 0 reserved for default-init
	@none
	r8
	r8sn
	r8ui
	r8si
	r16
	r16sn
	r16ui
	r16si
	r16f
	rg8
	rg8sn
	rg8ui
	rg8si
	r32ui
	r32si
	r32f
	rg16
	rg16sn
	rg16ui
	rg16si
	rg16f
	rgba8
	rgba8sn
	rgba8ui
	rgba8si
	bgra8
	rgb10a2
	rg11b10f
	rg32ui
	rg32si
	rg32f
	rgba16
	rgba16sn
	rgba16ui
	rgba16si
	rgba16f
	rgba32ui
	rgba32si
	rgba32f
	depth
	depth_stencil
	bc1_rgba
	bc2_rgba
	bc3_rgba
	bc4_r
	bc4_rsn
	bc5_rg
	bc5_rgsn
	bc6h_rgbf
	bc6h_rgbuf
	bc7_rgba
	pvrtc_rgb_2bpp
	pvrtc_rgb_4bpp
	pvrtc_rgba_2bpp
	pvrtc_rgba_4bpp
	etc2_rgb8
	etc2_rgb8a1
	etc2_rgba8
	etc2_rg11
	etc2_rg11sn
	_num
}

pub enum ResourceState {
	initial
	alloc
	valid
	failed
	invalid
}

pub enum Usage {
	_default // value 0 reserved for default-init
	immutable
	dynamic
	stream
	_num
}

pub enum BufferType {
	_default // value 0 reserved for default-init
	vertexbuffer
	indexbuffer
	_num
}

pub enum IndexType {
	_default // value 0 reserved for default-init
	@none
	uint16
	uint32
	_num
}

pub enum ImageType {
	_default // value 0 reserved for default-init
	_2d
	cube
	_3d
	array
	_num
}

pub enum CubeFace {
	pos_x
	neg_x
	pos_y
	neg_y
	pos_z
	neg_z
	num
	_force_u32 = 0x7fffffff
}

pub enum ShaderStage {
	vs
	fs
}

pub enum PrimitiveType {
	_default // value 0 reserved for default-init
	points
	lines
	line_strip
	triangles
	triangle_strip
	_num
}

pub enum Filter {
	_default // value 0 reserved for default-init
	nearest
	linear
	nearest_mipmap_nearest
	nearest_mipmap_linear
	linear_mipmap_nearest
	linear_mipmap_linear
	_num
}

pub enum Wrap {
	_default // value 0 reserved for default-init
	repeat
	clamp_to_edge
	clamp_to_border
	mirrored_repeat
	_num
}

pub enum BorderColor {
	_default // value 0 reserved for default-init
	transparent_black
	opaque_black
	opaque_white
	_num
}

pub enum VertexFormat {
	invalid
	float
	float2
	float3
	float4
	byte4
	byte4n
	ubyte4
	ubyte4n
	short2
	short2n
	ushort2n
	short4
	short4n
	ushort4n
	uint10_n2
	_num
}

pub enum VertexStep {
	_default // value 0 reserved for default-init
	per_vertex
	per_instance
	_num
}

pub enum UniformType {
	invalid
	float
	float2
	float3
	float4
	mat4
	_num
}

pub enum CullMode {
	_default // value 0 reserved for default-init
	@none
	front
	back
	_num
}

pub enum FaceWinding {
	_facewinding_default // value 0 reserved for default-init
	facewinding_ccw
	facewinding_cw
	_facewinding_num
}

pub enum CompareFunc {
	_default // value 0 reserved for default-init
	never
	less
	equal
	less_equal
	greater
	not_equal
	greater_equal
	always
	_num
}

pub enum StencilOp {
	_default // value 0 reserved for default-init
	keep
	zero
	replace
	incr_clamp
	decr_clamp
	invert
	incr_wrap
	decr_wrap
	_num
}

pub enum BlendFactor {
	_default // value 0 reserved for default-init
	zero
	one
	src_color
	one_minus_src_color
	src_alpha
	one_minus_src_alpha
	dst_color
	one_minus_dst_color
	dst_alpha
	one_minus_dst_alpha
	src_alpha_saturated
	blend_color
	one_minus_blend_color
	blend_alpha
	one_minus_blend_alpha
	_num
}

pub enum BlendOp {
	_default // value 0 reserved for default-init
	add
	subtract
	reverse_subtract
	_num
}

pub enum ColorMask {
	_default = 0 // value 0 reserved for default-init
	@none = 0x10 // special value for 'all channels disabled
	r = 1
	g = 2
	b = 4
	a = 8
	rgb = 0x7
	rgba = 0xF
}

pub enum Action {
	_default
	clear
	load
	dontcare
	_num
}