spirv: Update JSON and headers to 1.5
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
eea6f21cbd
commit
f6392e38d8
File diff suppressed because it is too large
Load Diff
|
@ -95,6 +95,7 @@ typedef enum SpvAddressingModel_ {
|
|||
SpvAddressingModelLogical = 0,
|
||||
SpvAddressingModelPhysical32 = 1,
|
||||
SpvAddressingModelPhysical64 = 2,
|
||||
SpvAddressingModelPhysicalStorageBuffer64 = 5348,
|
||||
SpvAddressingModelPhysicalStorageBuffer64EXT = 5348,
|
||||
SpvAddressingModelMax = 0x7fffffff,
|
||||
} SpvAddressingModel;
|
||||
|
@ -103,6 +104,7 @@ typedef enum SpvMemoryModel_ {
|
|||
SpvMemoryModelSimple = 0,
|
||||
SpvMemoryModelGLSL450 = 1,
|
||||
SpvMemoryModelOpenCL = 2,
|
||||
SpvMemoryModelVulkan = 3,
|
||||
SpvMemoryModelVulkanKHR = 3,
|
||||
SpvMemoryModelMax = 0x7fffffff,
|
||||
} SpvMemoryModel;
|
||||
|
@ -187,6 +189,7 @@ typedef enum SpvStorageClass_ {
|
|||
SpvStorageClassHitAttributeNV = 5339,
|
||||
SpvStorageClassIncomingRayPayloadNV = 5342,
|
||||
SpvStorageClassShaderRecordBufferNV = 5343,
|
||||
SpvStorageClassPhysicalStorageBuffer = 5349,
|
||||
SpvStorageClassPhysicalStorageBufferEXT = 5349,
|
||||
SpvStorageClassMax = 0x7fffffff,
|
||||
} SpvStorageClass;
|
||||
|
@ -315,9 +318,13 @@ typedef enum SpvImageOperandsShift_ {
|
|||
SpvImageOperandsConstOffsetsShift = 5,
|
||||
SpvImageOperandsSampleShift = 6,
|
||||
SpvImageOperandsMinLodShift = 7,
|
||||
SpvImageOperandsMakeTexelAvailableShift = 8,
|
||||
SpvImageOperandsMakeTexelAvailableKHRShift = 8,
|
||||
SpvImageOperandsMakeTexelVisibleShift = 9,
|
||||
SpvImageOperandsMakeTexelVisibleKHRShift = 9,
|
||||
SpvImageOperandsNonPrivateTexelShift = 10,
|
||||
SpvImageOperandsNonPrivateTexelKHRShift = 10,
|
||||
SpvImageOperandsVolatileTexelShift = 11,
|
||||
SpvImageOperandsVolatileTexelKHRShift = 11,
|
||||
SpvImageOperandsSignExtendShift = 12,
|
||||
SpvImageOperandsZeroExtendShift = 13,
|
||||
|
@ -334,9 +341,13 @@ typedef enum SpvImageOperandsMask_ {
|
|||
SpvImageOperandsConstOffsetsMask = 0x00000020,
|
||||
SpvImageOperandsSampleMask = 0x00000040,
|
||||
SpvImageOperandsMinLodMask = 0x00000080,
|
||||
SpvImageOperandsMakeTexelAvailableMask = 0x00000100,
|
||||
SpvImageOperandsMakeTexelAvailableKHRMask = 0x00000100,
|
||||
SpvImageOperandsMakeTexelVisibleMask = 0x00000200,
|
||||
SpvImageOperandsMakeTexelVisibleKHRMask = 0x00000200,
|
||||
SpvImageOperandsNonPrivateTexelMask = 0x00000400,
|
||||
SpvImageOperandsNonPrivateTexelKHRMask = 0x00000400,
|
||||
SpvImageOperandsVolatileTexelMask = 0x00000800,
|
||||
SpvImageOperandsVolatileTexelKHRMask = 0x00000800,
|
||||
SpvImageOperandsSignExtendMask = 0x00001000,
|
||||
SpvImageOperandsZeroExtendMask = 0x00002000,
|
||||
|
@ -452,8 +463,11 @@ typedef enum SpvDecoration_ {
|
|||
SpvDecorationPerViewNV = 5272,
|
||||
SpvDecorationPerTaskNV = 5273,
|
||||
SpvDecorationPerVertexNV = 5285,
|
||||
SpvDecorationNonUniform = 5300,
|
||||
SpvDecorationNonUniformEXT = 5300,
|
||||
SpvDecorationRestrictPointer = 5355,
|
||||
SpvDecorationRestrictPointerEXT = 5355,
|
||||
SpvDecorationAliasedPointer = 5356,
|
||||
SpvDecorationAliasedPointerEXT = 5356,
|
||||
SpvDecorationCounterBuffer = 5634,
|
||||
SpvDecorationHlslCounterBufferGOOGLE = 5634,
|
||||
|
@ -634,8 +648,11 @@ typedef enum SpvMemorySemanticsShift_ {
|
|||
SpvMemorySemanticsCrossWorkgroupMemoryShift = 9,
|
||||
SpvMemorySemanticsAtomicCounterMemoryShift = 10,
|
||||
SpvMemorySemanticsImageMemoryShift = 11,
|
||||
SpvMemorySemanticsOutputMemoryShift = 12,
|
||||
SpvMemorySemanticsOutputMemoryKHRShift = 12,
|
||||
SpvMemorySemanticsMakeAvailableShift = 13,
|
||||
SpvMemorySemanticsMakeAvailableKHRShift = 13,
|
||||
SpvMemorySemanticsMakeVisibleShift = 14,
|
||||
SpvMemorySemanticsMakeVisibleKHRShift = 14,
|
||||
SpvMemorySemanticsVolatileShift = 15,
|
||||
SpvMemorySemanticsMax = 0x7fffffff,
|
||||
|
@ -653,8 +670,11 @@ typedef enum SpvMemorySemanticsMask_ {
|
|||
SpvMemorySemanticsCrossWorkgroupMemoryMask = 0x00000200,
|
||||
SpvMemorySemanticsAtomicCounterMemoryMask = 0x00000400,
|
||||
SpvMemorySemanticsImageMemoryMask = 0x00000800,
|
||||
SpvMemorySemanticsOutputMemoryMask = 0x00001000,
|
||||
SpvMemorySemanticsOutputMemoryKHRMask = 0x00001000,
|
||||
SpvMemorySemanticsMakeAvailableMask = 0x00002000,
|
||||
SpvMemorySemanticsMakeAvailableKHRMask = 0x00002000,
|
||||
SpvMemorySemanticsMakeVisibleMask = 0x00004000,
|
||||
SpvMemorySemanticsMakeVisibleKHRMask = 0x00004000,
|
||||
SpvMemorySemanticsVolatileMask = 0x00008000,
|
||||
} SpvMemorySemanticsMask;
|
||||
|
@ -663,8 +683,11 @@ typedef enum SpvMemoryAccessShift_ {
|
|||
SpvMemoryAccessVolatileShift = 0,
|
||||
SpvMemoryAccessAlignedShift = 1,
|
||||
SpvMemoryAccessNontemporalShift = 2,
|
||||
SpvMemoryAccessMakePointerAvailableShift = 3,
|
||||
SpvMemoryAccessMakePointerAvailableKHRShift = 3,
|
||||
SpvMemoryAccessMakePointerVisibleShift = 4,
|
||||
SpvMemoryAccessMakePointerVisibleKHRShift = 4,
|
||||
SpvMemoryAccessNonPrivatePointerShift = 5,
|
||||
SpvMemoryAccessNonPrivatePointerKHRShift = 5,
|
||||
SpvMemoryAccessMax = 0x7fffffff,
|
||||
} SpvMemoryAccessShift;
|
||||
|
@ -674,8 +697,11 @@ typedef enum SpvMemoryAccessMask_ {
|
|||
SpvMemoryAccessVolatileMask = 0x00000001,
|
||||
SpvMemoryAccessAlignedMask = 0x00000002,
|
||||
SpvMemoryAccessNontemporalMask = 0x00000004,
|
||||
SpvMemoryAccessMakePointerAvailableMask = 0x00000008,
|
||||
SpvMemoryAccessMakePointerAvailableKHRMask = 0x00000008,
|
||||
SpvMemoryAccessMakePointerVisibleMask = 0x00000010,
|
||||
SpvMemoryAccessMakePointerVisibleKHRMask = 0x00000010,
|
||||
SpvMemoryAccessNonPrivatePointerMask = 0x00000020,
|
||||
SpvMemoryAccessNonPrivatePointerKHRMask = 0x00000020,
|
||||
} SpvMemoryAccessMask;
|
||||
|
||||
|
@ -685,6 +711,7 @@ typedef enum SpvScope_ {
|
|||
SpvScopeWorkgroup = 2,
|
||||
SpvScopeSubgroup = 3,
|
||||
SpvScopeInvocation = 4,
|
||||
SpvScopeQueueFamily = 5,
|
||||
SpvScopeQueueFamilyKHR = 5,
|
||||
SpvScopeMax = 0x7fffffff,
|
||||
} SpvScope;
|
||||
|
@ -785,6 +812,8 @@ typedef enum SpvCapability_ {
|
|||
SpvCapabilityGroupNonUniformShuffleRelative = 66,
|
||||
SpvCapabilityGroupNonUniformClustered = 67,
|
||||
SpvCapabilityGroupNonUniformQuad = 68,
|
||||
SpvCapabilityShaderLayer = 69,
|
||||
SpvCapabilityShaderViewportIndex = 70,
|
||||
SpvCapabilitySubgroupBallotKHR = 4423,
|
||||
SpvCapabilityDrawParameters = 4427,
|
||||
SpvCapabilitySubgroupVoteKHR = 4431,
|
||||
|
@ -813,6 +842,7 @@ typedef enum SpvCapability_ {
|
|||
SpvCapabilityFragmentMaskAMD = 5010,
|
||||
SpvCapabilityStencilExportEXT = 5013,
|
||||
SpvCapabilityImageReadWriteLodAMD = 5015,
|
||||
SpvCapabilityShaderClockKHR = 5055,
|
||||
SpvCapabilitySampleMaskOverrideCoverageNV = 5249,
|
||||
SpvCapabilityGeometryShaderPassthroughNV = 5251,
|
||||
SpvCapabilityShaderViewportIndexLayerEXT = 5254,
|
||||
|
@ -828,21 +858,36 @@ typedef enum SpvCapability_ {
|
|||
SpvCapabilityFragmentDensityEXT = 5291,
|
||||
SpvCapabilityShadingRateNV = 5291,
|
||||
SpvCapabilityGroupNonUniformPartitionedNV = 5297,
|
||||
SpvCapabilityShaderNonUniform = 5301,
|
||||
SpvCapabilityShaderNonUniformEXT = 5301,
|
||||
SpvCapabilityRuntimeDescriptorArray = 5302,
|
||||
SpvCapabilityRuntimeDescriptorArrayEXT = 5302,
|
||||
SpvCapabilityInputAttachmentArrayDynamicIndexing = 5303,
|
||||
SpvCapabilityInputAttachmentArrayDynamicIndexingEXT = 5303,
|
||||
SpvCapabilityUniformTexelBufferArrayDynamicIndexing = 5304,
|
||||
SpvCapabilityUniformTexelBufferArrayDynamicIndexingEXT = 5304,
|
||||
SpvCapabilityStorageTexelBufferArrayDynamicIndexing = 5305,
|
||||
SpvCapabilityStorageTexelBufferArrayDynamicIndexingEXT = 5305,
|
||||
SpvCapabilityUniformBufferArrayNonUniformIndexing = 5306,
|
||||
SpvCapabilityUniformBufferArrayNonUniformIndexingEXT = 5306,
|
||||
SpvCapabilitySampledImageArrayNonUniformIndexing = 5307,
|
||||
SpvCapabilitySampledImageArrayNonUniformIndexingEXT = 5307,
|
||||
SpvCapabilityStorageBufferArrayNonUniformIndexing = 5308,
|
||||
SpvCapabilityStorageBufferArrayNonUniformIndexingEXT = 5308,
|
||||
SpvCapabilityStorageImageArrayNonUniformIndexing = 5309,
|
||||
SpvCapabilityStorageImageArrayNonUniformIndexingEXT = 5309,
|
||||
SpvCapabilityInputAttachmentArrayNonUniformIndexing = 5310,
|
||||
SpvCapabilityInputAttachmentArrayNonUniformIndexingEXT = 5310,
|
||||
SpvCapabilityUniformTexelBufferArrayNonUniformIndexing = 5311,
|
||||
SpvCapabilityUniformTexelBufferArrayNonUniformIndexingEXT = 5311,
|
||||
SpvCapabilityStorageTexelBufferArrayNonUniformIndexing = 5312,
|
||||
SpvCapabilityStorageTexelBufferArrayNonUniformIndexingEXT = 5312,
|
||||
SpvCapabilityRayTracingNV = 5340,
|
||||
SpvCapabilityVulkanMemoryModel = 5345,
|
||||
SpvCapabilityVulkanMemoryModelKHR = 5345,
|
||||
SpvCapabilityVulkanMemoryModelDeviceScope = 5346,
|
||||
SpvCapabilityVulkanMemoryModelDeviceScopeKHR = 5346,
|
||||
SpvCapabilityPhysicalStorageBufferAddresses = 5347,
|
||||
SpvCapabilityPhysicalStorageBufferAddressesEXT = 5347,
|
||||
SpvCapabilityComputeDerivativeGroupLinearNV = 5350,
|
||||
SpvCapabilityCooperativeMatrixNV = 5357,
|
||||
|
@ -1223,6 +1268,7 @@ typedef enum SpvOp_ {
|
|||
SpvOpGroupSMaxNonUniformAMD = 5007,
|
||||
SpvOpFragmentMaskFetchAMD = 5011,
|
||||
SpvOpFragmentFetchAMD = 5012,
|
||||
SpvOpReadClockKHR = 5056,
|
||||
SpvOpImageSampleFootprintNV = 5283,
|
||||
SpvOpGroupNonUniformPartitionNV = 5296,
|
||||
SpvOpWritePackedPrimitiveIndices4x8NV = 5299,
|
||||
|
@ -1755,6 +1801,7 @@ inline void SpvHasResultAndType(SpvOp opcode, bool *hasResult, bool *hasResultTy
|
|||
case SpvOpGroupSMaxNonUniformAMD: *hasResult = true; *hasResultType = true; break;
|
||||
case SpvOpFragmentMaskFetchAMD: *hasResult = true; *hasResultType = true; break;
|
||||
case SpvOpFragmentFetchAMD: *hasResult = true; *hasResultType = true; break;
|
||||
case SpvOpReadClockKHR: *hasResult = true; *hasResultType = true; break;
|
||||
case SpvOpImageSampleFootprintNV: *hasResult = true; *hasResultType = true; break;
|
||||
case SpvOpGroupNonUniformPartitionNV: *hasResult = true; *hasResultType = true; break;
|
||||
case SpvOpWritePackedPrimitiveIndices4x8NV: *hasResult = false; *hasResultType = false; break;
|
||||
|
|
Loading…
Reference in New Issue