Updated Vulkan headers to 1.0.21.0
This commit is contained in:
parent
6c3a597002
commit
bbfc9c78cf
9 changed files with 171 additions and 44 deletions
36
external/vulkan/spirv.hpp11
vendored
36
external/vulkan/spirv.hpp11
vendored
|
|
@ -47,11 +47,11 @@ namespace spv {
|
|||
typedef unsigned int Id;
|
||||
|
||||
#define SPV_VERSION 0x10000
|
||||
#define SPV_REVISION 3
|
||||
#define SPV_REVISION 6
|
||||
|
||||
static const unsigned int MagicNumber = 0x07230203;
|
||||
static const unsigned int Version = 0x00010000;
|
||||
static const unsigned int Revision = 3;
|
||||
static const unsigned int Revision = 6;
|
||||
static const unsigned int OpCodeMask = 0xffff;
|
||||
static const unsigned int WordCountShift = 16;
|
||||
|
||||
|
|
@ -61,6 +61,7 @@ enum class SourceLanguage : unsigned {
|
|||
GLSL = 2,
|
||||
OpenCL_C = 3,
|
||||
OpenCL_CPP = 4,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
enum class ExecutionModel : unsigned {
|
||||
|
|
@ -71,18 +72,21 @@ enum class ExecutionModel : unsigned {
|
|||
Fragment = 4,
|
||||
GLCompute = 5,
|
||||
Kernel = 6,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
enum class AddressingModel : unsigned {
|
||||
Logical = 0,
|
||||
Physical32 = 1,
|
||||
Physical64 = 2,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
enum class MemoryModel : unsigned {
|
||||
Simple = 0,
|
||||
GLSL450 = 1,
|
||||
OpenCL = 2,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
enum class ExecutionMode : unsigned {
|
||||
|
|
@ -117,6 +121,7 @@ enum class ExecutionMode : unsigned {
|
|||
OutputTriangleStrip = 29,
|
||||
VecTypeHint = 30,
|
||||
ContractionOff = 31,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
enum class StorageClass : unsigned {
|
||||
|
|
@ -132,6 +137,7 @@ enum class StorageClass : unsigned {
|
|||
PushConstant = 9,
|
||||
AtomicCounter = 10,
|
||||
Image = 11,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
enum class Dim : unsigned {
|
||||
|
|
@ -142,6 +148,7 @@ enum class Dim : unsigned {
|
|||
Rect = 4,
|
||||
Buffer = 5,
|
||||
SubpassData = 6,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
enum class SamplerAddressingMode : unsigned {
|
||||
|
|
@ -150,11 +157,13 @@ enum class SamplerAddressingMode : unsigned {
|
|||
Clamp = 2,
|
||||
Repeat = 3,
|
||||
RepeatMirrored = 4,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
enum class SamplerFilterMode : unsigned {
|
||||
Nearest = 0,
|
||||
Linear = 1,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
enum class ImageFormat : unsigned {
|
||||
|
|
@ -198,6 +207,7 @@ enum class ImageFormat : unsigned {
|
|||
Rg8ui = 37,
|
||||
R16ui = 38,
|
||||
R8ui = 39,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
enum class ImageChannelOrder : unsigned {
|
||||
|
|
@ -220,6 +230,8 @@ enum class ImageChannelOrder : unsigned {
|
|||
sRGBx = 16,
|
||||
sRGBA = 17,
|
||||
sBGRA = 18,
|
||||
ABGR = 19,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
enum class ImageChannelDataType : unsigned {
|
||||
|
|
@ -240,6 +252,7 @@ enum class ImageChannelDataType : unsigned {
|
|||
Float = 14,
|
||||
UnormInt24 = 15,
|
||||
UnormInt101010_2 = 16,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
enum class ImageOperandsShift : unsigned {
|
||||
|
|
@ -251,6 +264,7 @@ enum class ImageOperandsShift : unsigned {
|
|||
ConstOffsets = 5,
|
||||
Sample = 6,
|
||||
MinLod = 7,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
enum class ImageOperandsMask : unsigned {
|
||||
|
|
@ -271,6 +285,7 @@ enum class FPFastMathModeShift : unsigned {
|
|||
NSZ = 2,
|
||||
AllowRecip = 3,
|
||||
Fast = 4,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
enum class FPFastMathModeMask : unsigned {
|
||||
|
|
@ -287,17 +302,20 @@ enum class FPRoundingMode : unsigned {
|
|||
RTZ = 1,
|
||||
RTP = 2,
|
||||
RTN = 3,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
enum class LinkageType : unsigned {
|
||||
Export = 0,
|
||||
Import = 1,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
enum class AccessQualifier : unsigned {
|
||||
ReadOnly = 0,
|
||||
WriteOnly = 1,
|
||||
ReadWrite = 2,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
enum class FunctionParameterAttribute : unsigned {
|
||||
|
|
@ -309,6 +327,7 @@ enum class FunctionParameterAttribute : unsigned {
|
|||
NoCapture = 5,
|
||||
NoWrite = 6,
|
||||
NoReadWrite = 7,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
enum class Decoration : unsigned {
|
||||
|
|
@ -355,6 +374,7 @@ enum class Decoration : unsigned {
|
|||
NoContraction = 42,
|
||||
InputAttachmentIndex = 43,
|
||||
Alignment = 44,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
enum class BuiltIn : unsigned {
|
||||
|
|
@ -399,11 +419,13 @@ enum class BuiltIn : unsigned {
|
|||
SubgroupLocalInvocationId = 41,
|
||||
VertexIndex = 42,
|
||||
InstanceIndex = 43,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
enum class SelectionControlShift : unsigned {
|
||||
Flatten = 0,
|
||||
DontFlatten = 1,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
enum class SelectionControlMask : unsigned {
|
||||
|
|
@ -415,6 +437,7 @@ enum class SelectionControlMask : unsigned {
|
|||
enum class LoopControlShift : unsigned {
|
||||
Unroll = 0,
|
||||
DontUnroll = 1,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
enum class LoopControlMask : unsigned {
|
||||
|
|
@ -428,6 +451,7 @@ enum class FunctionControlShift : unsigned {
|
|||
DontInline = 1,
|
||||
Pure = 2,
|
||||
Const = 3,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
enum class FunctionControlMask : unsigned {
|
||||
|
|
@ -449,6 +473,7 @@ enum class MemorySemanticsShift : unsigned {
|
|||
CrossWorkgroupMemory = 9,
|
||||
AtomicCounterMemory = 10,
|
||||
ImageMemory = 11,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
enum class MemorySemanticsMask : unsigned {
|
||||
|
|
@ -469,6 +494,7 @@ enum class MemoryAccessShift : unsigned {
|
|||
Volatile = 0,
|
||||
Aligned = 1,
|
||||
Nontemporal = 2,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
enum class MemoryAccessMask : unsigned {
|
||||
|
|
@ -484,22 +510,26 @@ enum class Scope : unsigned {
|
|||
Workgroup = 2,
|
||||
Subgroup = 3,
|
||||
Invocation = 4,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
enum class GroupOperation : unsigned {
|
||||
Reduce = 0,
|
||||
InclusiveScan = 1,
|
||||
ExclusiveScan = 2,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
enum class KernelEnqueueFlags : unsigned {
|
||||
NoWait = 0,
|
||||
WaitKernel = 1,
|
||||
WaitWorkGroup = 2,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
enum class KernelProfilingInfoShift : unsigned {
|
||||
CmdExecTime = 0,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
enum class KernelProfilingInfoMask : unsigned {
|
||||
|
|
@ -564,6 +594,7 @@ enum class Capability : unsigned {
|
|||
StorageImageReadWithoutFormat = 55,
|
||||
StorageImageWriteWithoutFormat = 56,
|
||||
MultiViewport = 57,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
enum class Op : unsigned {
|
||||
|
|
@ -861,6 +892,7 @@ enum class Op : unsigned {
|
|||
OpAtomicFlagTestAndSet = 318,
|
||||
OpAtomicFlagClear = 319,
|
||||
OpImageSparseRead = 320,
|
||||
Max = 0x7fffffff,
|
||||
};
|
||||
|
||||
// Overload operator| for mask bit combining
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue