Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
490eba59
Commit
490eba59
authored
Oct 20, 2020
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SPV: Update to the latest SPIR-V header, includes variable-rate shading
parent
3ead0119
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
spirv.hpp
SPIRV/spirv.hpp
+25
-0
No files found.
SPIRV/spirv.hpp
View file @
490eba59
...
...
@@ -274,6 +274,8 @@ enum ImageFormat {
ImageFormatRg8ui
=
37
,
ImageFormatR16ui
=
38
,
ImageFormatR8ui
=
39
,
ImageFormatR64ui
=
40
,
ImageFormatR64i
=
41
,
ImageFormatMax
=
0x7fffffff
,
};
...
...
@@ -558,8 +560,10 @@ enum BuiltIn {
BuiltInBaseVertex
=
4424
,
BuiltInBaseInstance
=
4425
,
BuiltInDrawIndex
=
4426
,
BuiltInPrimitiveShadingRateKHR
=
4432
,
BuiltInDeviceIndex
=
4438
,
BuiltInViewIndex
=
4440
,
BuiltInShadingRateKHR
=
4444
,
BuiltInBaryCoordNoPerspAMD
=
4992
,
BuiltInBaryCoordNoPerspCentroidAMD
=
4993
,
BuiltInBaryCoordNoPerspSampleAMD
=
4994
,
...
...
@@ -870,6 +874,7 @@ enum Capability {
CapabilityGroupNonUniformQuad
=
68
,
CapabilityShaderLayer
=
69
,
CapabilityShaderViewportIndex
=
70
,
CapabilityFragmentShadingRateKHR
=
4422
,
CapabilitySubgroupBallotKHR
=
4423
,
CapabilityDrawParameters
=
4427
,
CapabilitySubgroupVoteKHR
=
4431
,
...
...
@@ -900,6 +905,7 @@ enum Capability {
CapabilityFragmentMaskAMD
=
5010
,
CapabilityStencilExportEXT
=
5013
,
CapabilityImageReadWriteLodAMD
=
5015
,
CapabilityInt64ImageEXT
=
5016
,
CapabilityShaderClockKHR
=
5055
,
CapabilitySampleMaskOverrideCoverageNV
=
5249
,
CapabilityGeometryShaderPassthroughNV
=
5251
,
...
...
@@ -1024,6 +1030,22 @@ enum RayQueryCandidateIntersectionType {
RayQueryCandidateIntersectionTypeMax
=
0x7fffffff
,
};
enum
FragmentShadingRateShift
{
FragmentShadingRateVertical2PixelsShift
=
0
,
FragmentShadingRateVertical4PixelsShift
=
1
,
FragmentShadingRateHorizontal2PixelsShift
=
2
,
FragmentShadingRateHorizontal4PixelsShift
=
3
,
FragmentShadingRateMax
=
0x7fffffff
,
};
enum
FragmentShadingRateMask
{
FragmentShadingRateMaskNone
=
0
,
FragmentShadingRateVertical2PixelsMask
=
0x00000001
,
FragmentShadingRateVertical4PixelsMask
=
0x00000002
,
FragmentShadingRateHorizontal2PixelsMask
=
0x00000004
,
FragmentShadingRateHorizontal4PixelsMask
=
0x00000008
,
};
enum
Op
{
OpNop
=
0
,
OpUndef
=
1
,
...
...
@@ -1369,6 +1391,7 @@ enum Op {
OpPtrEqual
=
401
,
OpPtrNotEqual
=
402
,
OpPtrDiff
=
403
,
OpTerminateInvocation
=
4416
,
OpSubgroupBallotKHR
=
4421
,
OpSubgroupFirstInvocationKHR
=
4422
,
OpSubgroupAllKHR
=
4428
,
...
...
@@ -1939,6 +1962,7 @@ inline void HasResultAndType(Op opcode, bool *hasResult, bool *hasResultType) {
case
OpPtrEqual
:
*
hasResult
=
true
;
*
hasResultType
=
true
;
break
;
case
OpPtrNotEqual
:
*
hasResult
=
true
;
*
hasResultType
=
true
;
break
;
case
OpPtrDiff
:
*
hasResult
=
true
;
*
hasResultType
=
true
;
break
;
case
OpTerminateInvocation
:
*
hasResult
=
false
;
*
hasResultType
=
false
;
break
;
case
OpSubgroupBallotKHR
:
*
hasResult
=
true
;
*
hasResultType
=
true
;
break
;
case
OpSubgroupFirstInvocationKHR
:
*
hasResult
=
true
;
*
hasResultType
=
true
;
break
;
case
OpSubgroupAllKHR
:
*
hasResult
=
true
;
*
hasResultType
=
true
;
break
;
...
...
@@ -2164,6 +2188,7 @@ inline MemorySemanticsMask operator|(MemorySemanticsMask a, MemorySemanticsMask
inline
MemoryAccessMask
operator
|
(
MemoryAccessMask
a
,
MemoryAccessMask
b
)
{
return
MemoryAccessMask
(
unsigned
(
a
)
|
unsigned
(
b
));
}
inline
KernelProfilingInfoMask
operator
|
(
KernelProfilingInfoMask
a
,
KernelProfilingInfoMask
b
)
{
return
KernelProfilingInfoMask
(
unsigned
(
a
)
|
unsigned
(
b
));
}
inline
RayFlagsMask
operator
|
(
RayFlagsMask
a
,
RayFlagsMask
b
)
{
return
RayFlagsMask
(
unsigned
(
a
)
|
unsigned
(
b
));
}
inline
FragmentShadingRateMask
operator
|
(
FragmentShadingRateMask
a
,
FragmentShadingRateMask
b
)
{
return
FragmentShadingRateMask
(
unsigned
(
a
)
|
unsigned
(
b
));
}
}
// end namespace spv
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment