yum-mirror/glslang

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

Qingyuan ZhengImplement DebugEntryPoint instruction in NSDI 1024ede04ac

main
7.5 KiB173 linesraw
1// Copyright (c) 2018 The Khronos Group Inc.
2//
3// Permission is hereby granted, free of charge, to any person obtaining a copy
4// of this software and/or associated documentation files (the "Materials"),
5// to deal in the Materials without restriction, including without limitation
6// the rights to use, copy, modify, merge, publish, distribute, sublicense,
7// and/or sell copies of the Materials, and to permit persons to whom the
8// Materials are furnished to do so, subject to the following conditions:
9//
10// The above copyright notice and this permission notice shall be included in
11// all copies or substantial portions of the Materials.
12//
13// MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS KHRONOS
14// STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS SPECIFICATIONS AND
15// HEADER INFORMATION ARE LOCATED AT https://www.khronos.org/registry/
16//
17// THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22// FROM,OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS
23// IN THE MATERIALS.
24
25#ifndef SPIRV_UNIFIED1_NonSemanticShaderDebugInfo_H_
26#define SPIRV_UNIFIED1_NonSemanticShaderDebugInfo_H_
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32enum {
33    NonSemanticShaderDebugInfoVersion = 102,
34    NonSemanticShaderDebugInfoVersion_BitWidthPadding = 0x7fffffff
35};
36enum {
37    NonSemanticShaderDebugInfoRevision = 1,
38    NonSemanticShaderDebugInfoRevision_BitWidthPadding = 0x7fffffff
39};
40
41enum NonSemanticShaderDebugInfoInstructions {
42    NonSemanticShaderDebugInfoDebugInfoNone = 0,
43    NonSemanticShaderDebugInfoDebugCompilationUnit = 1,
44    NonSemanticShaderDebugInfoDebugTypeBasic = 2,
45    NonSemanticShaderDebugInfoDebugTypePointer = 3,
46    NonSemanticShaderDebugInfoDebugTypeQualifier = 4,
47    NonSemanticShaderDebugInfoDebugTypeArray = 5,
48    NonSemanticShaderDebugInfoDebugTypeVector = 6,
49    NonSemanticShaderDebugInfoDebugTypedef = 7,
50    NonSemanticShaderDebugInfoDebugTypeFunction = 8,
51    NonSemanticShaderDebugInfoDebugTypeEnum = 9,
52    NonSemanticShaderDebugInfoDebugTypeComposite = 10,
53    NonSemanticShaderDebugInfoDebugTypeMember = 11,
54    NonSemanticShaderDebugInfoDebugTypeInheritance = 12,
55    NonSemanticShaderDebugInfoDebugTypePtrToMember = 13,
56    NonSemanticShaderDebugInfoDebugTypeTemplate = 14,
57    NonSemanticShaderDebugInfoDebugTypeTemplateParameter = 15,
58    NonSemanticShaderDebugInfoDebugTypeTemplateTemplateParameter = 16,
59    NonSemanticShaderDebugInfoDebugTypeTemplateParameterPack = 17,
60    NonSemanticShaderDebugInfoDebugGlobalVariable = 18,
61    NonSemanticShaderDebugInfoDebugFunctionDeclaration = 19,
62    NonSemanticShaderDebugInfoDebugFunction = 20,
63    NonSemanticShaderDebugInfoDebugLexicalBlock = 21,
64    NonSemanticShaderDebugInfoDebugLexicalBlockDiscriminator = 22,
65    NonSemanticShaderDebugInfoDebugScope = 23,
66    NonSemanticShaderDebugInfoDebugNoScope = 24,
67    NonSemanticShaderDebugInfoDebugInlinedAt = 25,
68    NonSemanticShaderDebugInfoDebugLocalVariable = 26,
69    NonSemanticShaderDebugInfoDebugInlinedVariable = 27,
70    NonSemanticShaderDebugInfoDebugDeclare = 28,
71    NonSemanticShaderDebugInfoDebugValue = 29,
72    NonSemanticShaderDebugInfoDebugOperation = 30,
73    NonSemanticShaderDebugInfoDebugExpression = 31,
74    NonSemanticShaderDebugInfoDebugMacroDef = 32,
75    NonSemanticShaderDebugInfoDebugMacroUndef = 33,
76    NonSemanticShaderDebugInfoDebugImportedEntity = 34,
77    NonSemanticShaderDebugInfoDebugSource = 35,
78    NonSemanticShaderDebugInfoDebugFunctionDefinition = 101,
79    NonSemanticShaderDebugInfoDebugSourceContinued = 102,
80    NonSemanticShaderDebugInfoDebugLine = 103,
81    NonSemanticShaderDebugInfoDebugNoLine = 104,
82    NonSemanticShaderDebugInfoDebugBuildIdentifier = 105,
83    NonSemanticShaderDebugInfoDebugStoragePath = 106,
84    NonSemanticShaderDebugInfoDebugEntryPoint = 107,
85    NonSemanticShaderDebugInfoDebugTypeMatrix = 108,
86    NonSemanticShaderDebugInfoDebugTypeVectorIdEXT = 109,
87    NonSemanticShaderDebugInfoDebugTypeCooperativeMatrixKHR = 110,
88    NonSemanticShaderDebugInfoInstructionsMax = 0x7fffffff
89};
90
91
92enum NonSemanticShaderDebugInfoDebugInfoFlags {
93    NonSemanticShaderDebugInfoNone = 0x0000,
94    NonSemanticShaderDebugInfoFlagIsProtected = 0x01,
95    NonSemanticShaderDebugInfoFlagIsPrivate = 0x02,
96    NonSemanticShaderDebugInfoFlagIsPublic = 0x03,
97    NonSemanticShaderDebugInfoFlagIsLocal = 0x04,
98    NonSemanticShaderDebugInfoFlagIsDefinition = 0x08,
99    NonSemanticShaderDebugInfoFlagFwdDecl = 0x10,
100    NonSemanticShaderDebugInfoFlagArtificial = 0x20,
101    NonSemanticShaderDebugInfoFlagExplicit = 0x40,
102    NonSemanticShaderDebugInfoFlagPrototyped = 0x80,
103    NonSemanticShaderDebugInfoFlagObjectPointer = 0x100,
104    NonSemanticShaderDebugInfoFlagStaticMember = 0x200,
105    NonSemanticShaderDebugInfoFlagIndirectVariable = 0x400,
106    NonSemanticShaderDebugInfoFlagLValueReference = 0x800,
107    NonSemanticShaderDebugInfoFlagRValueReference = 0x1000,
108    NonSemanticShaderDebugInfoFlagIsOptimized = 0x2000,
109    NonSemanticShaderDebugInfoFlagIsEnumClass = 0x4000,
110    NonSemanticShaderDebugInfoFlagTypePassByValue = 0x8000,
111    NonSemanticShaderDebugInfoFlagTypePassByReference = 0x10000,
112    NonSemanticShaderDebugInfoFlagUnknownPhysicalLayout = 0x20000,
113    NonSemanticShaderDebugInfoDebugInfoFlagsMax = 0x7fffffff
114};
115
116enum NonSemanticShaderDebugInfoBuildIdentifierFlags {
117    NonSemanticShaderDebugInfoIdentifierPossibleDuplicates = 0x01,
118    NonSemanticShaderDebugInfoBuildIdentifierFlagsMax = 0x7fffffff
119};
120
121enum NonSemanticShaderDebugInfoDebugBaseTypeAttributeEncoding {
122    NonSemanticShaderDebugInfoUnspecified = 0,
123    NonSemanticShaderDebugInfoAddress = 1,
124    NonSemanticShaderDebugInfoBoolean = 2,
125    NonSemanticShaderDebugInfoFloat = 3,
126    NonSemanticShaderDebugInfoSigned = 4,
127    NonSemanticShaderDebugInfoSignedChar = 5,
128    NonSemanticShaderDebugInfoUnsigned = 6,
129    NonSemanticShaderDebugInfoUnsignedChar = 7,
130    NonSemanticShaderDebugInfoDebugBaseTypeAttributeEncodingMax = 0x7fffffff
131};
132
133enum NonSemanticShaderDebugInfoDebugCompositeType {
134    NonSemanticShaderDebugInfoClass = 0,
135    NonSemanticShaderDebugInfoStructure = 1,
136    NonSemanticShaderDebugInfoUnion = 2,
137    NonSemanticShaderDebugInfoDebugCompositeTypeMax = 0x7fffffff
138};
139
140enum NonSemanticShaderDebugInfoDebugTypeQualifier {
141    NonSemanticShaderDebugInfoConstType = 0,
142    NonSemanticShaderDebugInfoVolatileType = 1,
143    NonSemanticShaderDebugInfoRestrictType = 2,
144    NonSemanticShaderDebugInfoAtomicType = 3,
145    NonSemanticShaderDebugInfoDebugTypeQualifierMax = 0x7fffffff
146};
147
148enum NonSemanticShaderDebugInfoDebugOperation {
149    NonSemanticShaderDebugInfoDeref = 0,
150    NonSemanticShaderDebugInfoPlus = 1,
151    NonSemanticShaderDebugInfoMinus = 2,
152    NonSemanticShaderDebugInfoPlusUconst = 3,
153    NonSemanticShaderDebugInfoBitPiece = 4,
154    NonSemanticShaderDebugInfoSwap = 5,
155    NonSemanticShaderDebugInfoXderef = 6,
156    NonSemanticShaderDebugInfoStackValue = 7,
157    NonSemanticShaderDebugInfoConstu = 8,
158    NonSemanticShaderDebugInfoFragment = 9,
159    NonSemanticShaderDebugInfoDebugOperationMax = 0x7fffffff
160};
161
162enum NonSemanticShaderDebugInfoDebugImportedEntity {
163    NonSemanticShaderDebugInfoImportedModule = 0,
164    NonSemanticShaderDebugInfoImportedDeclaration = 1,
165    NonSemanticShaderDebugInfoDebugImportedEntityMax = 0x7fffffff
166};
167
168
169#ifdef __cplusplus
170}
171#endif
172
173#endif // SPIRV_UNIFIED1_NonSemanticShaderDebugInfo_H_