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
1d923219
Commit
1d923219
authored
Apr 17, 2013
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some more qualifier helper functions.
git-svn-id:
https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@21173
e7fa87d3-cd2b-0410-9028-fcbf551c1848
parent
6e4d1087
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
3 deletions
+44
-3
Types.h
glslang/Include/Types.h
+44
-3
No files found.
glslang/Include/Types.h
View file @
1d923219
...
...
@@ -232,19 +232,60 @@ public:
bool
readonly
:
1
;
bool
writeonly
:
1
;
bool
isMemory
()
bool
isMemory
()
const
{
return
coherent
||
volatil
||
restrict
||
readonly
||
writeonly
;
}
bool
isInterpolation
()
bool
isInterpolation
()
const
{
return
flat
||
smooth
||
nopersp
;
}
bool
isAuxillary
()
bool
isAuxillary
()
const
{
return
centroid
||
patch
||
sample
;
}
bool
isPipeInput
()
const
{
switch
(
storage
)
{
case
EvqVaryingIn
:
case
EvqFragCoord
:
case
EvqPointCoord
:
case
EvqFace
:
case
EvqVertexId
:
case
EvqInstanceId
:
return
true
;
default
:
return
false
;
}
}
bool
isPipeOutput
()
const
{
switch
(
storage
)
{
case
EvqPosition
:
case
EvqPointSize
:
case
EvqClipVertex
:
case
EvqVaryingOut
:
case
EvqFragColor
:
case
EvqFragDepth
:
return
true
;
default
:
return
false
;
}
}
bool
isUniform
()
const
{
switch
(
storage
)
{
case
EvqUniform
:
case
EVqBuffer
:
return
true
;
default
:
return
false
;
}
}
// Implementing an embedded layout-qualifier class here, since C++ can't have a real class bitfield
void
clearLayout
()
{
...
...
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