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
c008fcb8
Unverified
Commit
c008fcb8
authored
Feb 19, 2020
by
John Kessenich
Committed by
GitHub
Feb 19, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2089 from Roy-AMD/Fix-iomapper-issue
Fix iomapper issue
parents
ed0da37d
615ae258
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
5 deletions
+20
-5
iomapper.cpp
glslang/MachineIndependent/iomapper.cpp
+20
-5
No files found.
glslang/MachineIndependent/iomapper.cpp
View file @
c008fcb8
...
...
@@ -579,7 +579,10 @@ TDefaultGlslIoResolver::TDefaultGlslIoResolver(const TIntermediate& intermediate
int
TDefaultGlslIoResolver
::
resolveInOutLocation
(
EShLanguage
stage
,
TVarEntryInfo
&
ent
)
{
const
TType
&
type
=
ent
.
symbol
->
getType
();
const
TString
&
name
=
ent
.
symbol
->
getName
();
const
TString
&
name
=
IsAnonymous
(
ent
.
symbol
->
getName
())
?
ent
.
symbol
->
getType
().
getTypeName
()
:
ent
.
symbol
->
getName
();
if
(
currentStage
!=
stage
)
{
preStage
=
currentStage
;
currentStage
=
stage
;
...
...
@@ -663,7 +666,10 @@ int TDefaultGlslIoResolver::resolveInOutLocation(EShLanguage stage, TVarEntryInf
int
TDefaultGlslIoResolver
::
resolveUniformLocation
(
EShLanguage
/*stage*/
,
TVarEntryInfo
&
ent
)
{
const
TType
&
type
=
ent
.
symbol
->
getType
();
const
TString
&
name
=
ent
.
symbol
->
getName
();
const
TString
&
name
=
IsAnonymous
(
ent
.
symbol
->
getName
())
?
ent
.
symbol
->
getType
().
getTypeName
()
:
ent
.
symbol
->
getName
();
// kick out of not doing this
if
(
!
doAutoLocationMapping
())
{
return
ent
.
newLocation
=
-
1
;
...
...
@@ -734,7 +740,10 @@ int TDefaultGlslIoResolver::resolveUniformLocation(EShLanguage /*stage*/, TVarEn
int
TDefaultGlslIoResolver
::
resolveBinding
(
EShLanguage
/*stage*/
,
TVarEntryInfo
&
ent
)
{
const
TType
&
type
=
ent
.
symbol
->
getType
();
const
TString
&
name
=
ent
.
symbol
->
getName
();
const
TString
&
name
=
IsAnonymous
(
ent
.
symbol
->
getName
())
?
ent
.
symbol
->
getType
().
getTypeName
()
:
ent
.
symbol
->
getName
();
// On OpenGL arrays of opaque types take a seperate binding for each element
int
numBindings
=
intermediate
.
getSpv
().
openGl
!=
0
&&
type
.
isSizedArray
()
?
type
.
getCumulativeArraySize
()
:
1
;
TResourceType
resource
=
getResourceType
(
type
);
...
...
@@ -809,7 +818,10 @@ void TDefaultGlslIoResolver::endCollect(EShLanguage /*stage*/) {
void
TDefaultGlslIoResolver
::
reserverStorageSlot
(
TVarEntryInfo
&
ent
,
TInfoSink
&
infoSink
)
{
const
TType
&
type
=
ent
.
symbol
->
getType
();
const
TString
&
name
=
ent
.
symbol
->
getName
();
const
TString
&
name
=
IsAnonymous
(
ent
.
symbol
->
getName
())
?
ent
.
symbol
->
getType
().
getTypeName
()
:
ent
.
symbol
->
getName
();
TStorageQualifier
storage
=
type
.
getQualifier
().
storage
;
EShLanguage
stage
(
EShLangCount
);
switch
(
storage
)
{
...
...
@@ -869,7 +881,10 @@ void TDefaultGlslIoResolver::reserverStorageSlot(TVarEntryInfo& ent, TInfoSink&
void
TDefaultGlslIoResolver
::
reserverResourceSlot
(
TVarEntryInfo
&
ent
,
TInfoSink
&
infoSink
)
{
const
TType
&
type
=
ent
.
symbol
->
getType
();
const
TString
&
name
=
ent
.
symbol
->
getName
();
const
TString
&
name
=
IsAnonymous
(
ent
.
symbol
->
getName
())
?
ent
.
symbol
->
getType
().
getTypeName
()
:
ent
.
symbol
->
getName
();
int
resource
=
getResourceType
(
type
);
if
(
type
.
getQualifier
().
hasBinding
())
{
TVarSlotMap
&
varSlotMap
=
resourceSlotMap
[
resource
];
...
...
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