aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDavid Neto <dneto@google.com>2021-01-20 16:54:17 -0500
committerDavid Neto <dneto@google.com>2021-01-20 17:33:13 -0500
commit80438cd0df6f526b2e0df6cd83efa468fcd95af6 (patch)
treeb54ab79cb5172469beacf27a6e3be581cfc5f31f /tools
parent8bb2420b44af3c514480e63ac24439044706b583 (diff)
downloadSPIRV-Headers-80438cd0df6f526b2e0df6cd83efa468fcd95af6.tar.gz
Push FPDenormMode, FPOperationMode to the end
This is a cosmetic change for the benefit of generating the SPIR-V spec. It reorders the "FP Denorm Mode" and "FP Operation Mode" so they are the last sections in chapter 3 before the instruction listing. They become 3.37 and 3.38. The idea is to preserve the section numbering for earlier sections. For example, keep 3.31 as the Capability section.
Diffstat (limited to 'tools')
-rw-r--r--tools/buildHeaders/jsonToSpirv.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/buildHeaders/jsonToSpirv.h b/tools/buildHeaders/jsonToSpirv.h
index 572b872..51aa763 100644
--- a/tools/buildHeaders/jsonToSpirv.h
+++ b/tools/buildHeaders/jsonToSpirv.h
@@ -41,6 +41,8 @@ std::pair<bool, std::string> ReadFile(const std::string& path);
void jsonToSpirv(const std::string& jsonPath, bool buildingHeaders);
// For parameterizing operands.
+// The ordering here affects the printing order in the SPIR-V specification.
+// Please add new operand classes at the end.
enum OperandClass {
OperandNone,
OperandId,
@@ -69,8 +71,6 @@ enum OperandClass {
OperandImageOperands,
OperandFPFastMath,
OperandFPRoundingMode,
- OperandFPDenormMode,
- OperandFPOperationMode,
OperandLinkageType,
OperandAccessQualifier,
OperandFuncParamAttr,
@@ -91,6 +91,8 @@ enum OperandClass {
OperandRayQueryCommittedIntersectionType,
OperandRayQueryCandidateIntersectionType,
OperandFragmentShadingRate,
+ OperandFPDenormMode,
+ OperandFPOperationMode,
OperandOpcode,