Skip to content

Commit fdca6b2

Browse files
Merge branch 'main' of github.com:KhronosGroup/SPIRV-Headers into header_4_hlsl
2 parents 3bcfe9e + 05cc486 commit fdca6b2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+755
-128
lines changed

.github/workflows/presubmit.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
matrix:
1313
os: [ubuntu-latest, macos-latest, windows-latest]
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
- name: Install Ubuntu packages
1717
if: matrix.os == 'ubuntu-latest'
1818
run: sudo apt install -y dos2unix
@@ -42,7 +42,7 @@ jobs:
4242
test_cmake_min_required:
4343
runs-on: ubuntu-latest
4444
steps:
45-
- uses: actions/checkout@v3
45+
- uses: actions/checkout@v4
4646
- uses: lukka/get-cmake@latest
4747
with:
4848
cmakeVersion: 3.14.0
@@ -54,7 +54,7 @@ jobs:
5454
test_cmake_latest:
5555
runs-on: ubuntu-latest
5656
steps:
57-
- uses: actions/checkout@v3
57+
- uses: actions/checkout@v4
5858
- uses: lukka/get-cmake@latest
5959
- name: CMake build
6060
run: |
@@ -64,7 +64,7 @@ jobs:
6464
add_subdirectory:
6565
runs-on: ubuntu-latest
6666
steps:
67-
- uses: actions/checkout@v3
67+
- uses: actions/checkout@v4
6868
- uses: lukka/get-cmake@latest
6969
with:
7070
cmakeVersion: 3.15.0
@@ -76,7 +76,7 @@ jobs:
7676
find_package:
7777
runs-on: ubuntu-latest
7878
steps:
79-
- uses: actions/checkout@v3
79+
- uses: actions/checkout@v4
8080
- uses: lukka/get-cmake@latest
8181
with:
8282
cmakeVersion: 3.15.0
@@ -92,7 +92,7 @@ jobs:
9292
find_pkg_config:
9393
runs-on: ubuntu-latest
9494
steps:
95-
- uses: actions/checkout@v3
95+
- uses: actions/checkout@v4
9696
- uses: lukka/get-cmake@latest
9797
with:
9898
cmakeVersion: 3.15.0
@@ -109,7 +109,7 @@ jobs:
109109
find_pkg_config_absolute:
110110
runs-on: ubuntu-latest
111111
steps:
112-
- uses: actions/checkout@v3
112+
- uses: actions/checkout@v4
113113
- uses: lukka/get-cmake@latest
114114
with:
115115
cmakeVersion: 3.15.0

BUILD.bazel

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ filegroup(
8181
srcs = ["include/spirv/unified1/extinst.nonsemantic.clspvreflection.grammar.json"],
8282
)
8383

84+
filegroup(
85+
name = "spirv_ext_inst_nonsemantic_vkspreflection_grammar_unified1",
86+
srcs = ["include/spirv/unified1/extinst.nonsemantic.vkspreflection.grammar.json"],
87+
)
88+
8489
filegroup(
8590
name = "spirv_ext_inst_nonsemantic_debugprintf_grammar_unified1",
8691
srcs = ["include/spirv/unified1/extinst.nonsemantic.debugprintf.grammar.json"],
@@ -128,6 +133,7 @@ cc_library(
128133
"include/spirv/unified1/GLSL.std.450.h",
129134
"include/spirv/unified1/NonSemanticClspvReflection.h",
130135
"include/spirv/unified1/NonSemanticDebugPrintf.h",
136+
"include/spirv/unified1/NonSemanticVkspReflection.h",
131137
"include/spirv/unified1/OpenCL.std.h",
132138
],
133139
includes = ["include"],

BUILD.gn

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2020 Google LLC
1+
# Copyright (c) 2020-2024 Google LLC
22
#
33
# Permission is hereby granted, free of charge, to any person obtaining a copy
44
# of this software and/or associated documentation files (the "Materials"),
@@ -35,6 +35,7 @@ source_set("spv_headers") {
3535
"include/spirv/unified1/GLSL.std.450.h",
3636
"include/spirv/unified1/NonSemanticClspvReflection.h",
3737
"include/spirv/unified1/NonSemanticDebugPrintf.h",
38+
"include/spirv/unified1/NonSemanticVkspReflection.h",
3839
"include/spirv/unified1/OpenCL.std.h",
3940
"include/spirv/unified1/spirv.h",
4041
"include/spirv/unified1/spirv.hpp",

CMakeLists.txt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2015-2023 The Khronos Group Inc.
1+
# Copyright (c) 2015-2024 The Khronos Group Inc.
22
#
33
# Permission is hereby granted, free of charge, to any person obtaining a
44
# copy of this software and/or associated documentation files (the
@@ -35,12 +35,14 @@ add_library(SPIRV-Headers INTERFACE)
3535
add_library(SPIRV-Headers::SPIRV-Headers ALIAS SPIRV-Headers)
3636
target_include_directories(SPIRV-Headers INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
3737

38-
if (PROJECT_IS_TOP_LEVEL)
39-
option(BUILD_TESTS "Build the tests")
40-
if (BUILD_TESTS)
41-
add_subdirectory(tests)
42-
endif()
38+
option(SPIRV_HEADERS_ENABLE_TESTS "Test SPIRV-Headers" ${PROJECT_IS_TOP_LEVEL})
39+
option(SPIRV_HEADERS_ENABLE_INSTALL "Install SPIRV-Headers" ${PROJECT_IS_TOP_LEVEL})
40+
41+
if(SPIRV_HEADERS_ENABLE_TESTS)
42+
add_subdirectory(tests)
43+
endif()
4344

45+
if(SPIRV_HEADERS_ENABLE_INSTALL)
4446
include(GNUInstallDirs)
4547
include(CMakePackageConfigHelpers)
4648

LICENSE

Lines changed: 79 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
Copyright (c) 2015-2018 The Khronos Group Inc.
1+
Files: All files except for those called out below.
2+
Copyright (c) 2015-2024 The Khronos Group Inc.
23

34
Permission is hereby granted, free of charge, to any person obtaining a
45
copy of this software and/or associated documentation files (the
@@ -23,3 +24,80 @@ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
2324
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
2425
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
2526
MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
27+
28+
---
29+
30+
Files: include/spirv/spir-v.xml
31+
Copyright (c) 2015-2024 The Khronos Group Inc.
32+
33+
Permission is hereby granted, free of charge, to any person obtaining a
34+
copy of this software and/or associated documentation files (the
35+
"Materials"), to deal in the Materials without restriction, including
36+
without limitation the rights to use, copy, modify, merge, publish,
37+
distribute, sublicense, and/or sell copies of the Materials, and to
38+
permit persons to whom the Materials are furnished to do so, subject to
39+
the following conditions:
40+
41+
The above copyright notice and this permission notice shall be included
42+
in all copies or substantial portions of the Materials.
43+
44+
THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
45+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
46+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
47+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
48+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
49+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
50+
MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
51+
52+
---
53+
54+
Files: tools/buildHeaders/jsoncpp/*
55+
The JsonCpp library's source code, including accompanying documentation,
56+
tests and demonstration applications, are licensed under the following
57+
conditions...
58+
59+
The author (Baptiste Lepilleur) explicitly disclaims copyright in all
60+
jurisdictions which recognize such a disclaimer. In such jurisdictions,
61+
this software is released into the Public Domain.
62+
63+
In jurisdictions which do not recognize Public Domain property (e.g. Germany as of
64+
2010), this software is Copyright (c) 2007-2010 by Baptiste Lepilleur, and is
65+
released under the terms of the MIT License (see below).
66+
67+
In jurisdictions which recognize Public Domain property, the user of this
68+
software may choose to accept it either as 1) Public Domain, 2) under the
69+
conditions of the MIT License (see below), or 3) under the terms of dual
70+
Public Domain/MIT License conditions described here, as they choose.
71+
72+
The MIT License is about as close to Public Domain as a license can get, and is
73+
described in clear, concise terms at:
74+
75+
http://en.wikipedia.org/wiki/MIT_License
76+
77+
The full text of the MIT License follows:
78+
79+
========================================================================
80+
Copyright (c) 2007-2010 Baptiste Lepilleur
81+
82+
Permission is hereby granted, free of charge, to any person
83+
obtaining a copy of this software and associated documentation
84+
files (the "Software"), to deal in the Software without
85+
restriction, including without limitation the rights to use, copy,
86+
modify, merge, publish, distribute, sublicense, and/or sell copies
87+
of the Software, and to permit persons to whom the Software is
88+
furnished to do so, subject to the following conditions:
89+
90+
The above copyright notice and this permission notice shall be
91+
included in all copies or substantial portions of the Software.
92+
93+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
94+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
95+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
96+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
97+
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
98+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
99+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
100+
SOFTWARE.
101+
========================================================================
102+
103+
---

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ python3 bin/makeExtinstHeaders.py
198198
## License
199199
<a name="license"></a>
200200
```
201-
Copyright (c) 2015-2018 The Khronos Group Inc.
201+
Copyright (c) 2015-2024 The Khronos Group Inc.
202202
203203
Permission is hereby granted, free of charge, to any person obtaining a
204204
copy of this software and/or associated documentation files (the

include/spirv/spir-v.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<registry>
33
<!--
4-
Copyright (c) 2015 The Khronos Group Inc.
4+
Copyright (c) 2015-2024 The Khronos Group Inc.
55
66
Permission is hereby granted, free of charge, to any person obtaining a
77
copy of this software and/or associated documentation files (the
@@ -91,7 +91,8 @@
9191
<id value="38" vendor="Meta" tool="SparkSL" comment="Contact Dunfan Lu, [email protected], https://sparkar.facebook.com/ar-studio/learn/sparksl/sparksl-overview"/>
9292
<id value="39" vendor="SirLynix" tool="Nazara ShaderLang Compiler" comment="Contact Jérôme Leclercq, https://github.com/NazaraEngine/ShaderLang"/>
9393
<id value="40" vendor="NVIDIA" tool="Slang Compiler" comment="Contact Theresa Foley, [email protected], https://github.com/shader-slang/slang/"/>
94-
<unused start="41" end="0xFFFF" comment="Tool ID range reservable for future use by vendors"/>
94+
<id value="41" vendor="Zig Software Foundation" tool="Zig Compiler" comment="Contact Robin Voetter, https://github.com/Snektron"/>
95+
<unused start="42" end="0xFFFF" comment="Tool ID range reservable for future use by vendors"/>
9596
</ids>
9697

9798
<!-- SECTION: SPIR-V Opcodes and Enumerants -->
@@ -248,7 +249,8 @@
248249
<!-- Reserved FP fast math mode bits -->
249250
<ids type="FPFastMathMode" start="0" end="15" vendor="Khronos" comment="Reserved FPFastMathMode bits, not available to vendors - see the SPIR-V Specification"/>
250251
<ids type="FPFastMathMode" start="16" end="17" vendor="Intel" comment="Contact [email protected]"/>
251-
<ids type="FPFastMathMode" start="18" end="31" comment="Unreserved bits reservable for use by vendors"/>
252+
<ids type="FPFastMathMode" start="18" end="18" vendor="khronos" comment="Reserved FPFastMathMode bit, not available to vendors - see SPV_KHR_float_controls2"/>
253+
<ids type="FPFastMathMode" start="19" end="31" comment="Unreserved bits reservable for use by vendors"/>
252254

253255

254256
<!-- SECTION: SPIR-V Memory Operand Bit Reservations -->

include/spirv/unified1/AMD_gcn_shader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2020 The Khronos Group Inc.
1+
// Copyright (c) 2020-2024 The Khronos Group Inc.
22
//
33
// Permission is hereby granted, free of charge, to any person obtaining a
44
// copy of this software and/or associated documentation files (the

include/spirv/unified1/AMD_shader_ballot.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2020 The Khronos Group Inc.
1+
// Copyright (c) 2020-2024 The Khronos Group Inc.
22
//
33
// Permission is hereby granted, free of charge, to any person obtaining a
44
// copy of this software and/or associated documentation files (the

include/spirv/unified1/AMD_shader_explicit_vertex_parameter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2020 The Khronos Group Inc.
1+
// Copyright (c) 2020-2024 The Khronos Group Inc.
22
//
33
// Permission is hereby granted, free of charge, to any person obtaining a
44
// copy of this software and/or associated documentation files (the

0 commit comments

Comments
 (0)