MCPcopy Create free account
hub / github.com/KhronosGroup/glslang / DecorationString

Function DecorationString

SPIRV/doc.cpp:280–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278const int DecorationCeiling = 45;
279
280const char* DecorationString(int decoration)
281{
282 switch (decoration) {
283 case 0: return "RelaxedPrecision";
284 case 1: return "SpecId";
285 case 2: return "Block";
286 case 3: return "BufferBlock";
287 case 4: return "RowMajor";
288 case 5: return "ColMajor";
289 case 6: return "ArrayStride";
290 case 7: return "MatrixStride";
291 case 8: return "GLSLShared";
292 case 9: return "GLSLPacked";
293 case 10: return "CPacked";
294 case 11: return "BuiltIn";
295 case 12: return "Bad";
296 case 13: return "NoPerspective";
297 case 14: return "Flat";
298 case 15: return "Patch";
299 case 16: return "Centroid";
300 case 17: return "Sample";
301 case 18: return "Invariant";
302 case 19: return "Restrict";
303 case 20: return "Aliased";
304 case 21: return "Volatile";
305 case 22: return "Constant";
306 case 23: return "Coherent";
307 case 24: return "NonWritable";
308 case 25: return "NonReadable";
309 case 26: return "Uniform";
310 case 27: return "Bad";
311 case 28: return "SaturatedConversion";
312 case 29: return "Stream";
313 case 30: return "Location";
314 case 31: return "Component";
315 case 32: return "Index";
316 case 33: return "Binding";
317 case 34: return "DescriptorSet";
318 case 35: return "Offset";
319 case 36: return "XfbBuffer";
320 case 37: return "XfbStride";
321 case 38: return "FuncParamAttr";
322 case 39: return "FP Rounding Mode";
323 case 40: return "FP Fast Math Mode";
324 case 41: return "Linkage Attributes";
325 case 42: return "NoContraction";
326 case 43: return "InputAttachmentIndex";
327 case 44: return "Alignment";
328
329 case DecorationCeiling:
330 default: return "Bad";
331
332 case (int)Decoration::WeightTextureQCOM: return "DecorationWeightTextureQCOM";
333 case (int)Decoration::BlockMatchTextureQCOM: return "DecorationBlockMatchTextureQCOM";
334 case (int)Decoration::BlockMatchSamplerQCOM: return "DecorationBlockMatchSamplerQCOM";
335 case (int)Decoration::ExplicitInterpAMD: return "ExplicitInterpAMD";
336 case (int)Decoration::OverrideCoverageNV: return "OverrideCoverageNV";
337 case (int)Decoration::PassthroughNV: return "PassthroughNV";

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected