yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Harsh Aggarwal (NVIDIA)Update SPIRV-Tools and SPIRV-Headers to latest versions (#8565)4d241f2cc

master
3.5 KiB122 linesraw
1// Copyright: 2017-2024 The Khronos Group Inc.
2// License: MIT
3// 
4// MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS KHRONOS
5// STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS SPECIFICATIONS AND
6// HEADER INFORMATION ARE LOCATED AT https://www.khronos.org/registry/ 
7// 
8
9#ifndef SPIRV_EXTINST_DebugInfo_H_
10#define SPIRV_EXTINST_DebugInfo_H_
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16enum { DebugInfoVersion = 100, DebugInfoVersion_BitWidthPadding = 0x7fffffff };
17enum { DebugInfoRevision = 1, DebugInfoRevision_BitWidthPadding = 0x7fffffff };
18
19enum DebugInfoInstructions {
20    DebugInfoDebugInfoNone = 0,
21    DebugInfoDebugCompilationUnit = 1,
22    DebugInfoDebugTypeBasic = 2,
23    DebugInfoDebugTypePointer = 3,
24    DebugInfoDebugTypeQualifier = 4,
25    DebugInfoDebugTypeArray = 5,
26    DebugInfoDebugTypeVector = 6,
27    DebugInfoDebugTypedef = 7,
28    DebugInfoDebugTypeFunction = 8,
29    DebugInfoDebugTypeEnum = 9,
30    DebugInfoDebugTypeComposite = 10,
31    DebugInfoDebugTypeMember = 11,
32    DebugInfoDebugTypeInheritance = 12,
33    DebugInfoDebugTypePtrToMember = 13,
34    DebugInfoDebugTypeTemplate = 14,
35    DebugInfoDebugTypeTemplateParameter = 15,
36    DebugInfoDebugTypeTemplateTemplateParameter = 16,
37    DebugInfoDebugTypeTemplateParameterPack = 17,
38    DebugInfoDebugGlobalVariable = 18,
39    DebugInfoDebugFunctionDeclaration = 19,
40    DebugInfoDebugFunction = 20,
41    DebugInfoDebugLexicalBlock = 21,
42    DebugInfoDebugLexicalBlockDiscriminator = 22,
43    DebugInfoDebugScope = 23,
44    DebugInfoDebugNoScope = 24,
45    DebugInfoDebugInlinedAt = 25,
46    DebugInfoDebugLocalVariable = 26,
47    DebugInfoDebugInlinedVariable = 27,
48    DebugInfoDebugDeclare = 28,
49    DebugInfoDebugValue = 29,
50    DebugInfoDebugOperation = 30,
51    DebugInfoDebugExpression = 31,
52    DebugInfoDebugMacroDef = 32,
53    DebugInfoDebugMacroUndef = 33,
54    DebugInfoInstructionsMax = 0x7ffffff
55};
56
57
58enum DebugInfoDebugInfoFlags {
59    DebugInfoNone = 0x0000,
60    DebugInfoFlagIsProtected = 0x01,
61    DebugInfoFlagIsPrivate = 0x02,
62    DebugInfoFlagIsPublic = 0x03,
63    DebugInfoFlagIsLocal = 0x04,
64    DebugInfoFlagIsDefinition = 0x08,
65    DebugInfoFlagFwdDecl = 0x10,
66    DebugInfoFlagArtificial = 0x20,
67    DebugInfoFlagExplicit = 0x40,
68    DebugInfoFlagPrototyped = 0x80,
69    DebugInfoFlagObjectPointer = 0x100,
70    DebugInfoFlagStaticMember = 0x200,
71    DebugInfoFlagIndirectVariable = 0x400,
72    DebugInfoFlagLValueReference = 0x800,
73    DebugInfoFlagRValueReference = 0x1000,
74    DebugInfoFlagIsOptimized = 0x2000,
75    DebugInfoDebugInfoFlagsMax = 0x7ffffff
76};
77
78enum DebugInfoDebugBaseTypeAttributeEncoding {
79    DebugInfoUnspecified = 0,
80    DebugInfoAddress = 1,
81    DebugInfoBoolean = 2,
82    DebugInfoFloat = 4,
83    DebugInfoSigned = 5,
84    DebugInfoSignedChar = 6,
85    DebugInfoUnsigned = 7,
86    DebugInfoUnsignedChar = 8,
87    DebugInfoDebugBaseTypeAttributeEncodingMax = 0x7ffffff
88};
89
90enum DebugInfoDebugCompositeType {
91    DebugInfoClass = 0,
92    DebugInfoStructure = 1,
93    DebugInfoUnion = 2,
94    DebugInfoDebugCompositeTypeMax = 0x7ffffff
95};
96
97enum DebugInfoDebugTypeQualifier {
98    DebugInfoConstType = 0,
99    DebugInfoVolatileType = 1,
100    DebugInfoRestrictType = 2,
101    DebugInfoDebugTypeQualifierMax = 0x7ffffff
102};
103
104enum DebugInfoDebugOperation {
105    DebugInfoDeref = 0,
106    DebugInfoPlus = 1,
107    DebugInfoMinus = 2,
108    DebugInfoPlusUconst = 3,
109    DebugInfoBitPiece = 4,
110    DebugInfoSwap = 5,
111    DebugInfoXderef = 6,
112    DebugInfoStackValue = 7,
113    DebugInfoConstu = 8,
114    DebugInfoDebugOperationMax = 0x7ffffff
115};
116
117
118#ifdef __cplusplus
119}
120#endif
121
122#endif // SPIRV_EXTINST_DebugInfo_H_