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
318a379b
Commit
318a379b
authored
Jul 30, 2017
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Non-functional: HLSL further simplications to base I/O flattening on.
parent
8bcdf2ea
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
41 deletions
+35
-41
hlslParseHelper.cpp
hlsl/hlslParseHelper.cpp
+30
-36
hlslParseHelper.h
hlsl/hlslParseHelper.h
+5
-5
No files found.
hlsl/hlslParseHelper.cpp
View file @
318a379b
This diff is collapsed.
Click to expand it.
hlsl/hlslParseHelper.h
View file @
318a379b
...
...
@@ -249,7 +249,7 @@ protected:
bool
shouldFlatten
(
const
TType
&
)
const
;
bool
wasFlattened
(
const
TIntermTyped
*
node
)
const
;
bool
wasFlattened
(
int
id
)
const
{
return
flattenMap
.
find
(
id
)
!=
flattenMap
.
end
();
}
int
addFlattenedMember
(
const
T
SourceLoc
&
loc
,
const
T
Variable
&
,
const
TType
&
,
TFlattenData
&
,
const
TString
&
name
,
bool
track
);
int
addFlattenedMember
(
const
TVariable
&
,
const
TType
&
,
TFlattenData
&
,
const
TString
&
name
,
bool
track
);
bool
isFinalFlattening
(
const
TType
&
type
)
const
{
return
!
(
type
.
isStruct
()
||
type
.
isArray
());
}
// Structure splitting (splits interstage built-in types into its own struct)
...
...
@@ -266,10 +266,10 @@ protected:
void
fixBuiltInIoType
(
TType
&
);
void
flatten
(
const
T
SourceLoc
&
loc
,
const
T
Variable
&
variable
);
int
flatten
(
const
T
SourceLoc
&
loc
,
const
T
Variable
&
variable
,
const
TType
&
,
TFlattenData
&
,
TString
name
);
int
flattenStruct
(
const
T
SourceLoc
&
loc
,
const
T
Variable
&
variable
,
const
TType
&
,
TFlattenData
&
,
TString
name
);
int
flattenArray
(
const
T
SourceLoc
&
loc
,
const
T
Variable
&
variable
,
const
TType
&
,
TFlattenData
&
,
TString
name
);
void
flatten
(
const
TVariable
&
variable
);
int
flatten
(
const
TVariable
&
variable
,
const
TType
&
,
TFlattenData
&
,
TString
name
);
int
flattenStruct
(
const
TVariable
&
variable
,
const
TType
&
,
TFlattenData
&
,
TString
name
);
int
flattenArray
(
const
TVariable
&
variable
,
const
TType
&
,
TFlattenData
&
,
TString
name
);
bool
hasUniform
(
const
TQualifier
&
qualifier
)
const
;
void
clearUniform
(
TQualifier
&
qualifier
);
...
...
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