Skip to content

Commit aa331ab

Browse files
authored
Merge pull request KhronosGroup#299 from qingyuanzNV/add_nonsemantic_debugbreak
Add NonSemantic.DebugBreak
2 parents 5030265 + ff67f52 commit aa331ab

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
// Copyright (c) 2020 The Khronos Group Inc.
2+
//
3+
// Permission is hereby granted, free of charge, to any person obtaining a
4+
// copy of this software and/or associated documentation files (the
5+
// "Materials"), to deal in the Materials without restriction, including
6+
// without limitation the rights to use, copy, modify, merge, publish,
7+
// distribute, sublicense, and/or sell copies of the Materials, and to
8+
// permit persons to whom the Materials are furnished to do so, subject to
9+
// the following conditions:
10+
//
11+
// The above copyright notice and this permission notice shall be included
12+
// in all copies or substantial portions of the Materials.
13+
//
14+
// MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS
15+
// KHRONOS STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS
16+
// SPECIFICATIONS AND HEADER INFORMATION ARE LOCATED AT
17+
// https://www.khronos.org/registry/
18+
//
19+
// THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20+
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22+
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
23+
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
24+
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
25+
// MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
26+
//
27+
28+
#ifndef SPIRV_UNIFIED1_NonSemanticDebugBreak_H_
29+
#define SPIRV_UNIFIED1_NonSemanticDebugBreak_H_
30+
31+
#ifdef __cplusplus
32+
extern "C" {
33+
#endif
34+
35+
enum {
36+
NonSemanticDebugBreakRevision = 1,
37+
NonSemanticDebugBreakRevision_BitWidthPadding = 0x7fffffff
38+
};
39+
40+
enum NonSemanticDebugBreakInstructions {
41+
NonSemanticDebugBreakDebugBreak = 1,
42+
NonSemanticDebugBreakInstructionsMax = 0x7fffffff
43+
};
44+
45+
46+
#ifdef __cplusplus
47+
}
48+
#endif
49+
50+
#endif // SPIRV_UNIFIED1_NonSemanticDebugBreak_H_
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"revision" : 1,
3+
"instructions" : [
4+
{
5+
"opname" : "DebugBreak",
6+
"opcode" : 1
7+
}
8+
]
9+
}

tools/buildHeaders/bin/makeExtinstHeaders.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ def mk_extinst(name, grammar_file):
2626
mk_extinst('AMD_shader_trinary_minmax', 'extinst.spv-amd-shader-trinary-minmax.grammar.json')
2727
mk_extinst('NonSemanticDebugPrintf', 'extinst.nonsemantic.debugprintf.grammar.json')
2828
mk_extinst('NonSemanticClspvReflection', 'extinst.nonsemantic.clspvreflection.grammar.json')
29+
mk_extinst('NonSemanticDebugBreak', 'extinst.nonsemantic.debugbreak.grammar.json')

0 commit comments

Comments
 (0)