-
Notifications
You must be signed in to change notification settings - Fork 0
/
GPUEnum.js
139 lines (136 loc) · 2.98 KB
/
GPUEnum.js
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
export const GPUTextureDimension = {
texture_1d: "1d",
texture_2d: "2d",
texture_3d: "3d"
};
export const GPUTextureViewDimension = {
texture_1d: "1d",
texture_2d: "2d",
texture_2d_array: "2d-array",
texture_cube: "cube",
texture_cube_array: "cube-array",
texture_3d: "3d"
};
export const GPUTextureAspect = {
all: "all",
stencil_only: "stencil-only",
depth_only: "depth-only"
};
export const GPUTextureFormat = {
r32float: "r32float",
rgba8unorm: "rgba8unorm",
bgra8unorm: "bgra8unorm",
rgba16float: "rgba16float",
depth24plus: "depth24plus",
depth24plus_stencil8: "depth24plus-stencil8",
depth32float: "depth32float"
};
export const GPUAddressMode = {
clamp_to_edge: "clamp-to-edge",
repeat: "repeat",
mirror_repeat: "mirror-repeat"
};
export const GPUFilterMode = {
nearest: "nearest",
linear: "linear"
};
export const GPUCompareFunction = {
never: "never",
less: "less",
equal: "equal",
less_equal: "less-equal",
greater: "greater",
not_equal: "not-equal",
greater_equal: "greater-equal",
always: "always"
};
export const GPUBufferBindingType = {
uniform: "uniform",
storage: "storage",
read_only_storage: "read-only-storage"
};
export const GPUSamplerBindingType = {
filtering: "filtering",
non_filtering: "non-filtering",
comparison: "comparison"
};
export const GPUTextureSampleType = {
float: "float",
unfilterable_float: "unfilterable-float",
depth: "depth",
sint: "sint",
uint: "uint",
};
export const GPUPrimitiveTopology = {
point_list: "point-list",
line_list: "line-list",
line_strip: "line-strip",
triangle_list: "triangle-list",
triangle_strip: "triangle-strip"
};
export const GPUFrontFace = {
ccw: "ccw",
cw: "cw"
};
export const GPUCullMode = {
none: "none",
front: "front",
back: "back"
};
export const GPUBlendFactor = {
zero: "zero",
one: "one",
src_alpha: "src-alpha",
one_minus_src_alpha: "one-minus-src-alpha"
};
export const GPUBlendOperation = {
add: "add"
};
export const GPUIndexFormat = {
uint16: "uint16",
uint32: "uint32"
};
export const GPUVertexFormat = {
uint8x2: "uint8x2",
uint8x4: "uint8x4",
sint8x2: "sint8x2",
sint8x4: "sint8x4",
unorm8x2: "unorm8x2",
unorm8x4: "unorm8x4",
snorm8x2: "snorm8x2",
snorm8x4: "snorm8x4",
uint16x2: "uint16x2",
uint16x4: "uint16x4",
sint16x2: "sint16x2",
sint16x4: "sint16x4",
unorm16x2: "unorm16x2",
unorm16x4: "unorm16x4",
snorm16x2: "snorm16x2",
snorm16x4: "snorm16x4",
float16x2: "float16x2",
float16x4: "float16x4",
float32: "float32",
float32x2: "float32x2",
float32x3: "float32x3",
float32x4: "float32x4",
uint32: "uint32",
uint32x2: "uint32x2",
uint32x3: "uint32x3",
uint32x4: "uint32x4",
sint32: "sint32",
sint32x2: "sint32x2",
sint32x3: "sint32x3",
sint32x4: "sint32x4"
};
export const GPUVertexStepMode = {
vertex: "vertex",
instance: "instance"
};
export const GPULoadOp = {
load: "load",
clear: "clear"
};
export const GPUStoreOp = {
store: "store",
discard: "discard"
};