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
d4f48b8a
Commit
d4f48b8a
authored
Oct 01, 2016
by
John Kessenich
Committed by
GitHub
Oct 01, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #527 from steve-lunarg/array-flattening-fix
HLSL: Restrict uniform array flattening to sampler and texture arrays
parents
074ced3e
bc9b7656
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
StandAlone.cpp
StandAlone/StandAlone.cpp
+1
-1
hlslParseHelper.cpp
hlsl/hlslParseHelper.cpp
+3
-1
No files found.
StandAlone/StandAlone.cpp
View file @
d4f48b8a
...
...
@@ -941,7 +941,7 @@ void usage()
" explicit bindings.
\n
"
" --amb synonym for --auto-map-bindings
\n
"
"
\n
"
" --flatten-uniform-arrays flatten uniform
array reference
s to scalars
\n
"
" --flatten-uniform-arrays flatten uniform
texture & sampler array
s to scalars
\n
"
" --fua synonym for --flatten-uniform-arrays
\n
"
);
...
...
hlsl/hlslParseHelper.cpp
View file @
d4f48b8a
...
...
@@ -736,7 +736,9 @@ bool HlslParseContext::shouldFlattenUniform(const TType& type) const
return
type
.
isArray
()
&&
intermediate
.
getFlattenUniformArrays
()
&&
qualifier
==
EvqUniform
;
qualifier
==
EvqUniform
&&
// Testing the EbtSampler basic type covers samplers and textures
type
.
getBasicType
()
==
EbtSampler
;
}
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