Grindstone Game Engine
v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
Keyword.hpp
1
#pragma once
2
3
#include <string_view>
4
#include <cstring>
5
#include <map>
6
7
#define KEYWORD_LIST \
8
E(shaderHlsl)\
9
E(shaderGlsl)\
10
E(computeSet)\
11
E(pipelineSet)\
12
E(parameters)\
13
E(name)\
14
E(configuration)\
15
E(pass)\
16
E(shaderBlock)\
17
E(requiresBlocks)\
18
E(clones)\
19
E(inherits)\
20
E(stage)\
21
E(renderQueue)\
22
E(properties)\
23
E(shaderEntrypoint)\
24
E(rendererTags)\
25
E(passTags)\
26
E(attachments)\
27
E(colorMask)\
28
E(cull)\
29
E(geometryType)\
30
E(fillMode)\
31
E(depthBias)\
32
E(depthWrite)\
33
E(depthTest)\
34
E(depthClamp)\
35
E(depthCompareOp)\
36
E(blendPreset)\
37
E(blendColor)\
38
E(blendAlpha)\
39
E(points)\
40
E(lines)\
41
E(lineStrips)\
42
E(lineLoops)\
43
E(triangleStrips)\
44
E(triangleFans)\
45
E(triangles)\
46
E(linesAdjacency)\
47
E(trianglesAdjacency)\
48
E(triangleStripsAdjacency)\
49
E(patches)\
50
E(point)\
51
E(line)\
52
E(fill)\
53
E(never)\
54
E(less)\
55
E(equal)\
56
E(lessOrEqual)\
57
E(greater)\
58
E(notEqual)\
59
E(greaterOrEqual)\
60
E(always)\
61
E(none)\
62
E(front)\
63
E(back)\
64
E(both)\
65
E(zero)\
66
E(one)\
67
E(srcColor)\
68
E(oneMinusSrcColor)\
69
E(dstColor)\
70
E(oneMinusDstColor)\
71
E(srcAlpha)\
72
E(oneMinusSrcAlpha)\
73
E(dstAlpha)\
74
E(oneMinusDstAlpha)\
75
E(constantColor)\
76
E(oneMinusConstantColor)\
77
E(constantAlpha)\
78
E(oneMinusConstantAlpha)\
79
E(srcAlphaSaturate)\
80
E(src1Color)\
81
E(oneMinusSrc1Color)\
82
E(src1Alpha)\
83
E(oneMinusSrc1Alpha)\
84
E(off)\
85
E(add)\
86
E(subtract)\
87
E(reverseSubtract)\
88
E(minimum)\
89
E(maximum)\
90
E(source)\
91
E(destination)\
92
E(sourceOver)\
93
E(destinationOver)\
94
E(sourceIn)\
95
E(destinationIn)\
96
E(sourceOut)\
97
E(destinationOut)\
98
E(sourceAtop)\
99
E(destinationAtop)\
100
E(xOR)\
101
E(multiply)\
102
E(screen)\
103
E(overlay)\
104
E(darken)\
105
E(lighten)\
106
E(colorDodge)\
107
E(colorBurn)\
108
E(hardLight)\
109
E(softLight)\
110
E(difference)\
111
E(exclusion)\
112
E(invert)\
113
E(invertRGB)\
114
E(linearDodge)\
115
E(linearBurn)\
116
E(vividLight)\
117
E(linearLight)\
118
E(pinLight)\
119
E(hardMix)\
120
E(hSLHue)\
121
E(hSLSaturation)\
122
E(hSLColor)\
123
E(hSLLuminosity)\
124
E(plus)\
125
E(plusClamped)\
126
E(plusClampedAlpha)\
127
E(plusDark)\
128
E(minus)\
129
E(minusClamped)\
130
E(contrast)\
131
E(invertOVG)\
132
E(red)\
133
E(green)\
134
E(blue)\
135
E(vertex)\
136
E(tesselationEvaluation)\
137
E(tesselationControl)\
138
E(geometry)\
139
E(fragment)\
140
E(task)\
141
E(mesh)\
142
E(compute)\
143
E(opaque)\
144
E(translucent)\
145
E(additive)\
146
E(multiplicative)\
147
E(premultiply)\
148
E(Color)\
149
E(Bool)\
150
E(Int)\
151
E(Int2)\
152
E(Int3)\
153
E(Int4)\
154
E(Uint)\
155
E(Uint2)\
156
E(Uint3)\
157
E(Uint4)\
158
E(Float)\
159
E(Float2)\
160
E(Float3)\
161
E(Float4)\
162
E(Double)\
163
E(Double2)\
164
E(Double3)\
165
E(Double4)\
166
E(Matrix2x2)\
167
E(Matrix2x3)\
168
E(Matrix2x4)\
169
E(Matrix3x2)\
170
E(Matrix4x2)\
171
E(Matrix3x3)\
172
E(Matrix3x4)\
173
E(Matrix4x3)\
174
E(Matrix4x4)\
175
E(Texture)\
176
E(Sampler)\
177
E(Image)\
178
E(Atomic)
179
180
enum class
Keyword : uint8_t {
181
#define E(val) val,
182
KEYWORD_LIST
183
#undef E
184
includeKeyword,
185
abstractKeyword,
186
boolTrue,
187
boolFalse
188
};
189
190
constexpr
const
char
* keywordStrings[] = {
191
#define E(val) #val,
192
KEYWORD_LIST
193
#undef E
194
"include"
,
195
"abstract"
,
196
"true"
,
197
"false"
198
};
199
200
extern
std::map<std::string_view, Keyword> stringToKeywordMap;
sources
code
Plugins
EditorPipelineSetImporter
PipelineSet
Converter
Keyword.hpp
Generated by
1.13.2