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
b1eaf82c
Commit
b1eaf82c
authored
Oct 20, 2017
by
John Kessenich
Committed by
GitHub
Oct 20, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1115 from LoopDawg/stdarray-binding-set
Nonfunctional: minor: use std::array for per-set shifts, fix warning.
parents
573cc9e9
2915da30
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
localintermediate.h
glslang/MachineIndependent/localintermediate.h
+1
-2
hlslParseHelper.cpp
hlsl/hlslParseHelper.cpp
+2
-2
No files found.
glslang/MachineIndependent/localintermediate.h
View file @
b1eaf82c
...
@@ -677,8 +677,7 @@ protected:
...
@@ -677,8 +677,7 @@ protected:
std
::
array
<
unsigned
int
,
EResCount
>
shiftBinding
;
std
::
array
<
unsigned
int
,
EResCount
>
shiftBinding
;
// Per-descriptor-set shift values
// Per-descriptor-set shift values
typedef
std
::
map
<
int
,
int
>
TDescriptorSetShift
;
std
::
array
<
std
::
map
<
int
,
int
>
,
EResCount
>
shiftBindingForSet
;
TDescriptorSetShift
shiftBindingForSet
[
EResCount
];
std
::
vector
<
std
::
string
>
resourceSetBinding
;
std
::
vector
<
std
::
string
>
resourceSetBinding
;
bool
autoMapBindings
;
bool
autoMapBindings
;
...
...
hlsl/hlslParseHelper.cpp
View file @
b1eaf82c
...
@@ -1157,8 +1157,8 @@ bool HlslParseContext::shouldFlatten(const TType& type, TStorageQualifier qualif
...
@@ -1157,8 +1157,8 @@ bool HlslParseContext::shouldFlatten(const TType& type, TStorageQualifier qualif
case
EvqVaryingOut
:
case
EvqVaryingOut
:
return
type
.
isStruct
()
||
type
.
isArray
();
return
type
.
isStruct
()
||
type
.
isArray
();
case
EvqUniform
:
case
EvqUniform
:
return
type
.
isArray
()
&&
intermediate
.
getFlattenUniformArrays
()
&&
topLevel
||
return
(
type
.
isArray
()
&&
intermediate
.
getFlattenUniformArrays
()
&&
topLevel
)
||
type
.
isStruct
()
&&
type
.
containsOpaque
(
);
(
type
.
isStruct
()
&&
type
.
containsOpaque
()
);
default
:
default
:
return
type
.
isStruct
()
&&
type
.
containsOpaque
();
return
type
.
isStruct
()
&&
type
.
containsOpaque
();
};
};
...
...
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