9 "Copyright (c) 2014-2017 The Khronos Group Inc.",
11 "Permission is hereby granted, free of charge, to any person obtaining a copy",
12 "of this software and/or associated documentation files (the \"Materials\"),",
13 "to deal in the Materials without restriction, including without limitation",
14 "the rights to use, copy, modify, merge, publish, distribute, sublicense,",
15 "and/or sell copies of the Materials, and to permit persons to whom the",
16 "Materials are furnished to do so, subject to the following conditions:",
18 "The above copyright notice and this permission notice shall be included in",
19 "all copies or substantial portions of the Materials.",
21 "MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS KHRONOS",
22 "STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS SPECIFICATIONS AND",
23 "HEADER INFORMATION ARE LOCATED AT https://www.khronos.org/registry/ ",
25 "THE MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS",
26 "OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,",
27 "FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL",
28 "THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER",
29 "LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING",
30 "FROM,OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS",
34 "This header is automatically generated by the same tool that creates",
35 "the Binary Section of the SPIR-V specification."
38 "Enumeration tokens for SPIR-V, in various styles:",
39 " C, C++, C++11, JSON, Lua, Python",
41 "- C will have tokens with a \"Spv\" prefix, e.g.: SpvSourceLanguageGLSL",
42 "- C++ will have tokens in the \"spv\" name space, e.g.: spv::SourceLanguageGLSL",
43 "- C++11 will use enum classes in the spv namespace, e.g.: spv::SourceLanguage::GLSL",
44 "- Lua will use tables, e.g.: spv.SourceLanguage.GLSL",
45 "- Python will use dictionaries, e.g.: spv['SourceLanguage']['GLSL']",
47 "Some tokens act like mask values, which can be OR'd together,",
48 "while others are mutually exclusive. The mask-like ones have",
49 "\"Mask\" in their name, and a parallel enum that has the shift",
50 "amount (1 << x) for each corresponding enumerant."
53 "MagicNumber": 119734787,
62 "Name": "SourceLanguage",
75 "Name": "ExecutionModel",
80 "TessellationControl": 1,
81 "TessellationEvaluation": 2,
89 "Name": "AddressingModel",
99 "Name": "MemoryModel",
109 "Name": "ExecutionMode",
115 "SpacingFractionalEven": 2,
116 "SpacingFractionalOdd": 3,
119 "PixelCenterInteger": 6,
120 "OriginUpperLeft": 7,
121 "OriginLowerLeft": 8,
122 "EarlyFragmentTests": 9,
125 "DepthReplacing": 12,
128 "DepthUnchanged": 16,
133 "InputLinesAdjacency": 21,
135 "InputTrianglesAdjacency": 23,
138 "OutputVertices": 26,
140 "OutputLineStrip": 28,
141 "OutputTriangleStrip": 29,
143 "ContractionOff": 31,
147 "SubgroupsPerWorkgroup": 36,
148 "SubgroupsPerWorkgroupId": 37,
150 "LocalSizeHintId": 39,
151 "PostDepthCoverage": 4446
155 "Name": "StorageClass",
159 "UniformConstant": 0,
189 "Name": "SamplerAddressingMode",
201 "Name": "SamplerFilterMode",
210 "Name": "ImageFormat",
257 "Name": "ImageChannelOrder",
284 "Name": "ImageChannelDataType",
304 "UnormInt101010_2": 16
308 "Name": "ImageOperands",
323 "Name": "FPFastMathMode",
335 "Name": "FPRoundingMode",
346 "Name": "LinkageType",
355 "Name": "AccessQualifier",
365 "Name": "FunctionParameterAttribute",
380 "Name": "Decoration",
384 "RelaxedPrecision": 0,
410 "SaturatedConversion": 28,
421 "FPRoundingMode": 39,
422 "FPFastMathMode": 40,
423 "LinkageAttributes": 41,
425 "InputAttachmentIndex": 43,
429 "MaxByteOffsetId": 47,
430 "ExplicitInterpAMD": 4999,
431 "OverrideCoverageNV": 5248,
432 "PassthroughNV": 5250,
433 "ViewportRelativeNV": 5252,
434 "SecondaryViewportRelativeNV": 5256
452 "TessLevelOuter": 11,
453 "TessLevelInner": 12,
460 "SamplePosition": 19,
463 "HelperInvocation": 23,
467 "LocalInvocationId": 27,
468 "GlobalInvocationId": 28,
469 "LocalInvocationIndex": 29,
472 "EnqueuedWorkgroupSize": 32,
474 "GlobalLinearId": 34,
476 "SubgroupMaxSize": 37,
478 "NumEnqueuedSubgroups": 39,
480 "SubgroupLocalInvocationId": 41,
483 "SubgroupEqMaskKHR": 4416,
484 "SubgroupGeMaskKHR": 4417,
485 "SubgroupGtMaskKHR": 4418,
486 "SubgroupLeMaskKHR": 4419,
487 "SubgroupLtMaskKHR": 4420,
489 "BaseInstance": 4425,
493 "BaryCoordNoPerspAMD": 4992,
494 "BaryCoordNoPerspCentroidAMD": 4993,
495 "BaryCoordNoPerspSampleAMD": 4994,
496 "BaryCoordSmoothAMD": 4995,
497 "BaryCoordSmoothCentroidAMD": 4996,
498 "BaryCoordSmoothSampleAMD": 4997,
499 "BaryCoordPullModelAMD": 4998,
500 "ViewportMaskNV": 5253,
501 "SecondaryPositionNV": 5257,
502 "SecondaryViewportMaskNV": 5258,
503 "PositionPerViewNV": 5261,
504 "ViewportMaskPerViewNV": 5262
508 "Name": "SelectionControl",
517 "Name": "LoopControl",
523 "DependencyInfinite": 2,
524 "DependencyLength": 3
528 "Name": "FunctionControl",
539 "Name": "MemorySemantics",
546 "SequentiallyConsistent": 4,
549 "WorkgroupMemory": 8,
550 "CrossWorkgroupMemory": 9,
551 "AtomicCounterMemory": 10,
556 "Name": "MemoryAccess",
578 "Name": "GroupOperation",
588 "Name": "KernelEnqueueFlags",
598 "Name": "KernelProfilingInfo",
606 "Name": "Capability",
624 "ImageReadWrite": 14,
629 "LiteralSampler": 20,
632 "TessellationPointSize": 23,
633 "GeometryPointSize": 24,
634 "ImageGatherExtended": 25,
635 "StorageImageMultisample": 27,
636 "UniformBufferArrayDynamicIndexing": 28,
637 "SampledImageArrayDynamicIndexing": 29,
638 "StorageBufferArrayDynamicIndexing": 30,
639 "StorageImageArrayDynamicIndexing": 31,
642 "ImageCubeArray": 34,
643 "SampleRateShading": 35,
646 "GenericPointer": 38,
648 "InputAttachment": 40,
649 "SparseResidency": 41,
653 "SampledCubeArray": 45,
657 "StorageImageExtendedFormats": 49,
659 "DerivativeControl": 51,
660 "InterpolationFunction": 52,
661 "TransformFeedback": 53,
662 "GeometryStreams": 54,
663 "StorageImageReadWithoutFormat": 55,
664 "StorageImageWriteWithoutFormat": 56,
666 "SubgroupDispatch": 58,
669 "SubgroupBallotKHR": 4423,
670 "DrawParameters": 4427,
671 "SubgroupVoteKHR": 4431,
672 "StorageBuffer16BitAccess": 4433,
673 "StorageUniformBufferBlock16": 4433,
674 "StorageUniform16": 4434,
675 "UniformAndStorageBuffer16BitAccess": 4434,
676 "StoragePushConstant16": 4435,
677 "StorageInputOutput16": 4436,
680 "VariablePointersStorageBuffer": 4441,
681 "VariablePointers": 4442,
682 "AtomicStorageOps": 4445,
683 "SampleMaskPostDepthCoverage": 4447,
684 "ImageGatherBiasLodAMD": 5009,
685 "SampleMaskOverrideCoverageNV": 5249,
686 "GeometryShaderPassthroughNV": 5251,
687 "ShaderViewportIndexLayerNV": 5254,
688 "ShaderViewportMaskNV": 5255,
689 "ShaderStereoViewNV": 5259,
690 "PerViewAttributesNV": 5260
700 "OpSourceContinued": 2,
702 "OpSourceExtension": 4,
708 "OpExtInstImport": 11,
712 "OpExecutionMode": 16,
722 "OpTypeSampledImage": 27,
724 "OpTypeRuntimeArray": 29,
728 "OpTypeFunction": 33,
730 "OpTypeDeviceEvent": 35,
731 "OpTypeReserveId": 36,
734 "OpTypeForwardPointer": 39,
735 "OpConstantTrue": 41,
736 "OpConstantFalse": 42,
738 "OpConstantComposite": 44,
739 "OpConstantSampler": 45,
740 "OpConstantNull": 46,
741 "OpSpecConstantTrue": 48,
742 "OpSpecConstantFalse": 49,
743 "OpSpecConstant": 50,
744 "OpSpecConstantComposite": 51,
745 "OpSpecConstantOp": 52,
747 "OpFunctionParameter": 55,
749 "OpFunctionCall": 57,
751 "OpImageTexelPointer": 60,
755 "OpCopyMemorySized": 64,
757 "OpInBoundsAccessChain": 66,
758 "OpPtrAccessChain": 67,
760 "OpGenericPtrMemSemantics": 69,
761 "OpInBoundsPtrAccessChain": 70,
763 "OpMemberDecorate": 72,
764 "OpDecorationGroup": 73,
765 "OpGroupDecorate": 74,
766 "OpGroupMemberDecorate": 75,
767 "OpVectorExtractDynamic": 77,
768 "OpVectorInsertDynamic": 78,
769 "OpVectorShuffle": 79,
770 "OpCompositeConstruct": 80,
771 "OpCompositeExtract": 81,
772 "OpCompositeInsert": 82,
775 "OpSampledImage": 86,
776 "OpImageSampleImplicitLod": 87,
777 "OpImageSampleExplicitLod": 88,
778 "OpImageSampleDrefImplicitLod": 89,
779 "OpImageSampleDrefExplicitLod": 90,
780 "OpImageSampleProjImplicitLod": 91,
781 "OpImageSampleProjExplicitLod": 92,
782 "OpImageSampleProjDrefImplicitLod": 93,
783 "OpImageSampleProjDrefExplicitLod": 94,
786 "OpImageDrefGather": 97,
790 "OpImageQueryFormat": 101,
791 "OpImageQueryOrder": 102,
792 "OpImageQuerySizeLod": 103,
793 "OpImageQuerySize": 104,
794 "OpImageQueryLod": 105,
795 "OpImageQueryLevels": 106,
796 "OpImageQuerySamples": 107,
797 "OpConvertFToU": 109,
798 "OpConvertFToS": 110,
799 "OpConvertSToF": 111,
800 "OpConvertUToF": 112,
804 "OpQuantizeToF16": 116,
805 "OpConvertPtrToU": 117,
806 "OpSatConvertSToU": 118,
807 "OpSatConvertUToS": 119,
808 "OpConvertUToPtr": 120,
809 "OpPtrCastToGeneric": 121,
810 "OpGenericCastToPtr": 122,
811 "OpGenericCastToPtrExplicit": 123,
829 "OpVectorTimesScalar": 142,
830 "OpMatrixTimesScalar": 143,
831 "OpVectorTimesMatrix": 144,
832 "OpMatrixTimesVector": 145,
833 "OpMatrixTimesMatrix": 146,
834 "OpOuterProduct": 147,
838 "OpUMulExtended": 151,
839 "OpSMulExtended": 152,
847 "OpLessOrGreater": 161,
850 "OpLogicalEqual": 164,
851 "OpLogicalNotEqual": 165,
858 "OpUGreaterThan": 172,
859 "OpSGreaterThan": 173,
860 "OpUGreaterThanEqual": 174,
861 "OpSGreaterThanEqual": 175,
864 "OpULessThanEqual": 178,
865 "OpSLessThanEqual": 179,
867 "OpFUnordEqual": 181,
868 "OpFOrdNotEqual": 182,
869 "OpFUnordNotEqual": 183,
870 "OpFOrdLessThan": 184,
871 "OpFUnordLessThan": 185,
872 "OpFOrdGreaterThan": 186,
873 "OpFUnordGreaterThan": 187,
874 "OpFOrdLessThanEqual": 188,
875 "OpFUnordLessThanEqual": 189,
876 "OpFOrdGreaterThanEqual": 190,
877 "OpFUnordGreaterThanEqual": 191,
878 "OpShiftRightLogical": 194,
879 "OpShiftRightArithmetic": 195,
880 "OpShiftLeftLogical": 196,
885 "OpBitFieldInsert": 201,
886 "OpBitFieldSExtract": 202,
887 "OpBitFieldUExtract": 203,
898 "OpFwidthCoarse": 215,
900 "OpEndPrimitive": 219,
901 "OpEmitStreamVertex": 220,
902 "OpEndStreamPrimitive": 221,
903 "OpControlBarrier": 224,
904 "OpMemoryBarrier": 225,
906 "OpAtomicStore": 228,
907 "OpAtomicExchange": 229,
908 "OpAtomicCompareExchange": 230,
909 "OpAtomicCompareExchangeWeak": 231,
910 "OpAtomicIIncrement": 232,
911 "OpAtomicIDecrement": 233,
923 "OpSelectionMerge": 247,
926 "OpBranchConditional": 250,
930 "OpReturnValue": 254,
931 "OpUnreachable": 255,
932 "OpLifetimeStart": 256,
933 "OpLifetimeStop": 257,
934 "OpGroupAsyncCopy": 259,
935 "OpGroupWaitEvents": 260,
938 "OpGroupBroadcast": 263,
949 "OpReservedReadPipe": 276,
950 "OpReservedWritePipe": 277,
951 "OpReserveReadPipePackets": 278,
952 "OpReserveWritePipePackets": 279,
953 "OpCommitReadPipe": 280,
954 "OpCommitWritePipe": 281,
955 "OpIsValidReserveId": 282,
956 "OpGetNumPipePackets": 283,
957 "OpGetMaxPipePackets": 284,
958 "OpGroupReserveReadPipePackets": 285,
959 "OpGroupReserveWritePipePackets": 286,
960 "OpGroupCommitReadPipe": 287,
961 "OpGroupCommitWritePipe": 288,
962 "OpEnqueueMarker": 291,
963 "OpEnqueueKernel": 292,
964 "OpGetKernelNDrangeSubGroupCount": 293,
965 "OpGetKernelNDrangeMaxSubGroupSize": 294,
966 "OpGetKernelWorkGroupSize": 295,
967 "OpGetKernelPreferredWorkGroupSizeMultiple": 296,
968 "OpRetainEvent": 297,
969 "OpReleaseEvent": 298,
970 "OpCreateUserEvent": 299,
971 "OpIsValidEvent": 300,
972 "OpSetUserEventStatus": 301,
973 "OpCaptureEventProfilingInfo": 302,
974 "OpGetDefaultQueue": 303,
975 "OpBuildNDRange": 304,
976 "OpImageSparseSampleImplicitLod": 305,
977 "OpImageSparseSampleExplicitLod": 306,
978 "OpImageSparseSampleDrefImplicitLod": 307,
979 "OpImageSparseSampleDrefExplicitLod": 308,
980 "OpImageSparseSampleProjImplicitLod": 309,
981 "OpImageSparseSampleProjExplicitLod": 310,
982 "OpImageSparseSampleProjDrefImplicitLod": 311,
983 "OpImageSparseSampleProjDrefExplicitLod": 312,
984 "OpImageSparseFetch": 313,
985 "OpImageSparseGather": 314,
986 "OpImageSparseDrefGather": 315,
987 "OpImageSparseTexelsResident": 316,
989 "OpAtomicFlagTestAndSet": 318,
990 "OpAtomicFlagClear": 319,
991 "OpImageSparseRead": 320,
993 "OpTypePipeStorage": 322,
994 "OpConstantPipeStorage": 323,
995 "OpCreatePipeFromPipeStorage": 324,
996 "OpGetKernelLocalSizeForSubgroupCount": 325,
997 "OpGetKernelMaxNumSubgroups": 326,
998 "OpTypeNamedBarrier": 327,
999 "OpNamedBarrierInitialize": 328,
1000 "OpMemoryNamedBarrier": 329,
1001 "OpModuleProcessed": 330,
1002 "OpExecutionModeId": 331,
1003 "OpDecorateId": 332,
1004 "OpSubgroupBallotKHR": 4421,
1005 "OpSubgroupFirstInvocationKHR": 4422,
1006 "OpSubgroupAllKHR": 4428,
1007 "OpSubgroupAnyKHR": 4429,
1008 "OpSubgroupAllEqualKHR": 4430,
1009 "OpSubgroupReadInvocationKHR": 4432,
1010 "OpGroupIAddNonUniformAMD": 5000,
1011 "OpGroupFAddNonUniformAMD": 5001,
1012 "OpGroupFMinNonUniformAMD": 5002,
1013 "OpGroupUMinNonUniformAMD": 5003,
1014 "OpGroupSMinNonUniformAMD": 5004,
1015 "OpGroupFMaxNonUniformAMD": 5005,
1016 "OpGroupUMaxNonUniformAMD": 5006,
1017 "OpGroupSMaxNonUniformAMD": 5007