You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The option is `-spirv-ext` not `-spirv-extensions`. Also move the
examples after the description of the option, instead of after the list
of extensions, where its easy to miss when skimming.
---------
Co-authored-by: Nathan Gauër <[email protected]>
Copy file name to clipboardExpand all lines: llvm/docs/SPIRVUsage.rst
+17-13Lines changed: 17 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -131,9 +131,23 @@ Extensions
131
131
132
132
The SPIR-V backend supports a variety of `extensions <https://github.com/KhronosGroup/SPIRV-Registry/tree/main/extensions>`_
133
133
that enable or enhance features beyond the core SPIR-V specification.
134
-
These extensions can be enabled using the ``-spirv-extensions`` option
135
-
followed by the name of the extension(s) you wish to enable. Below is a
136
-
list of supported SPIR-V extensions, sorted alphabetically by their extension names:
134
+
The enabled extensions can be controlled using the ``-spirv-ext`` option followed by a list of
135
+
extensions to enable or disable, each prefixed with ``+`` or ``-``, respectively.
136
+
137
+
To enable multiple extensions, list them separated by comma. For example, to enable support for atomic operations on floating-point numbers and arbitrary precision integers, use:
Below is a list of supported SPIR-V extensions, sorted alphabetically by their extension names:
137
151
138
152
.. list-table:: Supported SPIR-V Extensions
139
153
:widths: 50 150
@@ -220,16 +234,6 @@ list of supported SPIR-V extensions, sorted alphabetically by their extension na
220
234
* - ``SPV_KHR_float_controls2``
221
235
- Adds ability to specify the floating-point environment in shaders. It can be used on whole modules and individual instructions.
222
236
223
-
To enable multiple extensions, list them separated by comma. For example, to enable support for atomic operations on floating-point numbers and arbitrary precision integers, use:
0 commit comments