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
229a6f7f
Commit
229a6f7f
authored
Mar 09, 2017
by
John Kessenich
Committed by
GitHub
Mar 09, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #761 from baldurk/vs2010-compile-fixes
Compile fixes for VS2010
parents
79f8bf0d
5d5db80d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
hlslParseHelper.cpp
hlsl/hlslParseHelper.cpp
+7
-6
No files found.
hlsl/hlslParseHelper.cpp
View file @
229a6f7f
...
...
@@ -1892,7 +1892,7 @@ void HlslParseContext::remapEntryPointIO(TFunction& function, TVariable*& return
{
// Do the actual work to make a type be a shader input or output variable,
// and clear the original to be non-IO (for use as a normal function parameter/return).
const
auto
makeIoVariable
=
[
this
](
const
char
*
name
,
TType
&
type
,
TStorageQualifier
storage
)
{
const
auto
makeIoVariable
=
[
this
](
const
char
*
name
,
TType
&
type
,
TStorageQualifier
storage
)
->
TVariable
*
{
TVariable
*
ioVariable
=
makeInternalVariable
(
name
,
type
);
clearUniformInputOutput
(
type
.
getQualifier
());
if
(
type
.
getStruct
()
!=
nullptr
)
{
...
...
@@ -2078,7 +2078,7 @@ TIntermTyped* HlslParseContext::handleAssign(const TSourceLoc& loc, TOperator op
if
(
split
&&
derefType
.
isBuiltInInterstageIO
(
language
))
{
// copy from interstage IO builtin if needed
subTree
=
intermediate
.
addSymbol
(
*
interstageBuiltInIo
.
find
(
tInterstageIoData
(
derefType
,
outer
->
getType
()))
->
second
);
subTree
=
intermediate
.
addSymbol
(
*
interstageBuiltInIo
.
find
(
HlslParseContext
::
tInterstageIoData
(
derefType
,
outer
->
getType
()))
->
second
);
// Arrayness of builtIn symbols isn't handled by the normal recursion: it's been extracted and moved to the builtin.
if
(
subTree
->
getType
().
isArray
()
&&
!
arrayElement
.
empty
())
{
...
...
@@ -7475,9 +7475,9 @@ void HlslParseContext::addPatchConstantInvocation()
const
TStorageQualifier
storage
=
function
[
p
].
type
->
getQualifier
().
storage
;
if
(
function
[
p
].
declaredBuiltIn
!=
EbvNone
)
builtIns
.
insert
(
tInterstageIoData
(
function
[
p
].
declaredBuiltIn
,
storage
));
builtIns
.
insert
(
HlslParseContext
::
tInterstageIoData
(
function
[
p
].
declaredBuiltIn
,
storage
));
else
builtIns
.
insert
(
tInterstageIoData
(
function
[
p
].
type
->
getQualifier
().
builtIn
,
storage
));
builtIns
.
insert
(
HlslParseContext
::
tInterstageIoData
(
function
[
p
].
type
->
getQualifier
().
builtIn
,
storage
));
}
};
...
...
@@ -7563,8 +7563,9 @@ void HlslParseContext::addPatchConstantInvocation()
notInEntryPoint
=
pcfBuiltIns
;
for
(
auto
bi
:
epfBuiltIns
)
// std::set_difference not usable on unordered containers
notInEntryPoint
.
erase
(
bi
);
// std::set_difference not usable on unordered containers
for
(
auto
bi
=
epfBuiltIns
.
begin
();
bi
!=
epfBuiltIns
.
end
();
++
bi
)
notInEntryPoint
.
erase
(
*
bi
);
// Now we'll add those to the entry and to the linkage.
for
(
int
p
=
0
;
p
<
pcfParamCount
;
++
p
)
{
...
...
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