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.
RTN = 3,
}
- public enum FPDenormMode
- {
- Preserve = 0,
- FlushToZero = 1,
- }
-
- public enum FPOperationMode
- {
- IEEE = 0,
- ALT = 1,
- }
-
public enum LinkageType
{
Export = 0,
Horizontal4Pixels = 0x00000008,
}
+ public enum FPDenormMode {
+ Preserve = 0,
+ FlushToZero = 1,
+ }
+
+ public enum FPOperationMode {
+ IEEE = 0,
+ ALT = 1,
+ }
+
public enum Op
{
OpNop = 0,
SpvFPRoundingModeMax = 0x7fffffff,
} SpvFPRoundingMode;
-typedef enum SpvFPDenormMode_ {
- SpvFPDenormModePreserve = 0,
- SpvFPDenormModeFlushToZero = 1,
- SpvFPDenormModeMax = 0x7fffffff,
-} SpvFPDenormMode;
-
-typedef enum SpvFPOperationMode_ {
- SpvFPOperationModeIEEE = 0,
- SpvFPOperationModeALT = 1,
- SpvFPOperationModeMax = 0x7fffffff,
-} SpvFPOperationMode;
-
typedef enum SpvLinkageType_ {
SpvLinkageTypeExport = 0,
SpvLinkageTypeImport = 1,
SpvFragmentShadingRateHorizontal4PixelsMask = 0x00000008,
} SpvFragmentShadingRateMask;
+typedef enum SpvFPDenormMode_ {
+ SpvFPDenormModePreserve = 0,
+ SpvFPDenormModeFlushToZero = 1,
+ SpvFPDenormModeMax = 0x7fffffff,
+} SpvFPDenormMode;
+
+typedef enum SpvFPOperationMode_ {
+ SpvFPOperationModeIEEE = 0,
+ SpvFPOperationModeALT = 1,
+ SpvFPOperationModeMax = 0x7fffffff,
+} SpvFPOperationMode;
+
typedef enum SpvOp_ {
SpvOpNop = 0,
SpvOpUndef = 1,
FPRoundingModeMax = 0x7fffffff,
};
-enum FPDenormMode {
- FPDenormModePreserve = 0,
- FPDenormModeFlushToZero = 1,
- FPDenormModeMax = 0x7fffffff,
-};
-
-enum FPOperationMode {
- FPOperationModeIEEE = 0,
- FPOperationModeALT = 1,
- FPOperationModeMax = 0x7fffffff,
-};
-
enum LinkageType {
LinkageTypeExport = 0,
LinkageTypeImport = 1,
FragmentShadingRateHorizontal4PixelsMask = 0x00000008,
};
+enum FPDenormMode {
+ FPDenormModePreserve = 0,
+ FPDenormModeFlushToZero = 1,
+ FPDenormModeMax = 0x7fffffff,
+};
+
+enum FPOperationMode {
+ FPOperationModeIEEE = 0,
+ FPOperationModeALT = 1,
+ FPOperationModeMax = 0x7fffffff,
+};
+
enum Op {
OpNop = 0,
OpUndef = 1,
Max = 0x7fffffff,
};
-enum class FPDenormMode : unsigned {
- Preserve = 0,
- FlushToZero = 1,
- Max = 0x7fffffff,
-};
-
-enum class FPOperationMode : unsigned {
- IEEE = 0,
- ALT = 1,
- Max = 0x7fffffff,
-};
-
enum class LinkageType : unsigned {
Export = 0,
Import = 1,
Horizontal4Pixels = 0x00000008,
};
+enum class FPDenormMode : unsigned {
+ Preserve = 0,
+ FlushToZero = 1,
+ Max = 0x7fffffff,
+};
+
+enum class FPOperationMode : unsigned {
+ IEEE = 0,
+ ALT = 1,
+ Max = 0x7fffffff,
+};
+
enum class Op : unsigned {
OpNop = 0,
OpUndef = 1,
}
},
{
- "Name": "FPDenormMode",
- "Type": "Value",
- "Values":
- {
- "Preserve": 0,
- "FlushToZero": 1
- }
- },
- {
- "Name": "FPOperationMode",
- "Type": "Value",
- "Values":
- {
- "IEEE": 0,
- "ALT": 1
- }
- },
- {
"Name": "LinkageType",
"Type": "Value",
"Values":
}
},
{
+ "Name": "FPDenormMode",
+ "Type": "Value",
+ "Values":
+ {
+ "Preserve": 0,
+ "FlushToZero": 1
+ }
+ },
+ {
+ "Name": "FPOperationMode",
+ "Type": "Value",
+ "Values":
+ {
+ "IEEE": 0,
+ "ALT": 1
+ }
+ },
+ {
"Name": "Op",
"Type": "Value",
"Values":
RTN = 3,
},
- FPDenormMode = {
- Preserve = 0,
- FlushToZero = 1,
- },
-
- FPOperationMode = {
- IEEE = 0,
- ALT = 1,
- },
-
LinkageType = {
Export = 0,
Import = 1,
Horizontal4Pixels = 0x00000008,
},
+ FPDenormMode = {
+ Preserve = 0,
+ FlushToZero = 1,
+ },
+
+ FPOperationMode = {
+ IEEE = 0,
+ ALT = 1,
+ },
+
Op = {
OpNop = 0,
OpUndef = 1,
'RTN' : 3,
},
- 'FPDenormMode' : {
- 'Preserve' : 0,
- 'FlushToZero' : 1,
- },
-
- 'FPOperationMode' : {
- 'IEEE' : 0,
- 'ALT' : 1,
- },
-
'LinkageType' : {
'Export' : 0,
'Import' : 1,
'Horizontal4Pixels' : 0x00000008,
},
+ 'FPDenormMode' : {
+ 'Preserve' : 0,
+ 'FlushToZero' : 1,
+ },
+
+ 'FPOperationMode' : {
+ 'IEEE' : 0,
+ 'ALT' : 1,
+ },
+
'Op' : {
'OpNop' : 0,
'OpUndef' : 1,
RTN = 3,
}
-enum FPDenormMode : uint
-{
- Preserve = 0,
- FlushToZero = 1,
-}
-
-enum FPOperationMode : uint
-{
- IEEE = 0,
- ALT = 1,
-}
-
enum LinkageType : uint
{
Export = 0,
Horizontal4Pixels = 0x00000008,
}
+enum FPDenormMode : uint
+{
+ Preserve = 0,
+ FlushToZero = 1,
+}
+
+enum FPOperationMode : uint
+{
+ IEEE = 0,
+ ALT = 1,
+}
+
enum Op : uint
{
OpNop = 0,
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,
OperandImageOperands,
OperandFPFastMath,
OperandFPRoundingMode,
- OperandFPDenormMode,
- OperandFPOperationMode,
OperandLinkageType,
OperandAccessQualifier,
OperandFuncParamAttr,
OperandRayQueryCommittedIntersectionType,
OperandRayQueryCandidateIntersectionType,
OperandFragmentShadingRate,
+ OperandFPDenormMode,
+ OperandFPOperationMode,
OperandOpcode,