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
f571d0c0
Commit
f571d0c0
authored
Oct 01, 2016
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Non-functional: Use isOpaque() instead of compare against EbtSampler.
parent
47e6fa1c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
revision.h
glslang/Include/revision.h
+2
-2
hlslGrammar.cpp
hlsl/hlslGrammar.cpp
+1
-1
hlslParseHelper.cpp
hlsl/hlslParseHelper.cpp
+1
-2
No files found.
glslang/Include/revision.h
View file @
f571d0c0
...
...
@@ -2,5 +2,5 @@
// For the version, it uses the latest git tag followed by the number of commits.
// For the date, it uses the current date (when then script is run).
#define GLSLANG_REVISION "Overload400-PrecQual.15
28
"
#define GLSLANG_DATE "
29-Sep
-2016"
#define GLSLANG_REVISION "Overload400-PrecQual.15
41
"
#define GLSLANG_DATE "
01-Oct
-2016"
hlsl/hlslGrammar.cpp
View file @
f571d0c0
...
...
@@ -366,7 +366,7 @@ bool HlslGrammar::acceptDeclaration(TIntermNode*& node)
else
if
(
variableType
.
getBasicType
()
==
EbtBlock
)
parseContext
.
declareBlock
(
idToken
.
loc
,
variableType
,
idToken
.
string
);
else
{
if
(
variableType
.
getQualifier
().
storage
==
EvqUniform
&&
variableType
.
getBasicType
()
!=
EbtSampler
)
{
if
(
variableType
.
getQualifier
().
storage
==
EvqUniform
&&
!
variableType
.
isOpaque
()
)
{
// this isn't really an individual variable, but a member of the $Global buffer
parseContext
.
growGlobalUniformBlock
(
idToken
.
loc
,
variableType
,
*
idToken
.
string
);
}
else
{
...
...
hlsl/hlslParseHelper.cpp
View file @
f571d0c0
...
...
@@ -737,8 +737,7 @@ bool HlslParseContext::shouldFlattenUniform(const TType& type) const
return
type
.
isArray
()
&&
intermediate
.
getFlattenUniformArrays
()
&&
qualifier
==
EvqUniform
&&
// Testing the EbtSampler basic type covers samplers and textures
type
.
getBasicType
()
==
EbtSampler
;
type
.
isOpaque
();
}
void
HlslParseContext
::
flatten
(
const
TSourceLoc
&
loc
,
const
TVariable
&
variable
)
...
...
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