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
092b7d2e
Commit
092b7d2e
authored
Sep 30, 2017
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build: Fix a couple build issues.
parent
77ea30bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
hlslParseHelper.cpp
hlsl/hlslParseHelper.cpp
+3
-4
hlslParseHelper.h
hlsl/hlslParseHelper.h
+1
-1
No files found.
hlsl/hlslParseHelper.cpp
View file @
092b7d2e
...
@@ -1826,7 +1826,7 @@ void HlslParseContext::transferTypeAttributes(const TAttributeMap& attributes, T
...
@@ -1826,7 +1826,7 @@ void HlslParseContext::transferTypeAttributes(const TAttributeMap& attributes, T
if
(
argNum
>=
attrAgg
->
getSequence
().
size
())
if
(
argNum
>=
attrAgg
->
getSequence
().
size
())
return
false
;
return
false
;
const
TConstUnion
&
intConst
=
attrAgg
->
getSequence
()[
argNum
]
->
getAsConstantUnion
()
->
getConstArray
()[
0
];
const
TConstUnion
&
intConst
=
attrAgg
->
getSequence
()[
argNum
]
->
getAsConstantUnion
()
->
getConstArray
()[
0
];
if
(
intConst
==
nullptr
)
if
(
intConst
.
getType
()
!=
EbtInt
)
return
false
;
return
false
;
value
=
intConst
.
getIConst
();
value
=
intConst
.
getIConst
();
return
true
;
return
true
;
...
@@ -7420,7 +7420,7 @@ TIntermNode* HlslParseContext::declareVariable(const TSourceLoc& loc, const TStr
...
@@ -7420,7 +7420,7 @@ TIntermNode* HlslParseContext::declareVariable(const TSourceLoc& loc, const TStr
error
(
loc
,
"initializer requires a variable, not a member"
,
identifier
.
c_str
(),
""
);
error
(
loc
,
"initializer requires a variable, not a member"
,
identifier
.
c_str
(),
""
);
return
nullptr
;
return
nullptr
;
}
}
return
executeInitializer
(
loc
,
initializer
,
variable
,
flattenVar
);
return
executeInitializer
(
loc
,
initializer
,
variable
);
}
}
// Pick up global defaults from the provide global defaults into dst.
// Pick up global defaults from the provide global defaults into dst.
...
@@ -7488,8 +7488,7 @@ TVariable* HlslParseContext::declareNonArray(const TSourceLoc& loc, const TStrin
...
@@ -7488,8 +7488,7 @@ TVariable* HlslParseContext::declareNonArray(const TSourceLoc& loc, const TStrin
// Returning nullptr just means there is no code to execute to handle the
// Returning nullptr just means there is no code to execute to handle the
// initializer, which will, for example, be the case for constant initializers.
// initializer, which will, for example, be the case for constant initializers.
//
//
TIntermNode
*
HlslParseContext
::
executeInitializer
(
const
TSourceLoc
&
loc
,
TIntermTyped
*
initializer
,
TVariable
*
variable
,
TIntermNode
*
HlslParseContext
::
executeInitializer
(
const
TSourceLoc
&
loc
,
TIntermTyped
*
initializer
,
TVariable
*
variable
)
bool
flattened
)
{
{
//
//
// Identifier must be of type constant, a global, or a temporary, and
// Identifier must be of type constant, a global, or a temporary, and
...
...
hlsl/hlslParseHelper.h
View file @
092b7d2e
...
@@ -234,7 +234,7 @@ protected:
...
@@ -234,7 +234,7 @@ protected:
TIntermSymbol
*
makeInternalVariableNode
(
const
TSourceLoc
&
,
const
char
*
name
,
const
TType
&
)
const
;
TIntermSymbol
*
makeInternalVariableNode
(
const
TSourceLoc
&
,
const
char
*
name
,
const
TType
&
)
const
;
TVariable
*
declareNonArray
(
const
TSourceLoc
&
,
const
TString
&
identifier
,
const
TType
&
,
bool
track
);
TVariable
*
declareNonArray
(
const
TSourceLoc
&
,
const
TString
&
identifier
,
const
TType
&
,
bool
track
);
void
declareArray
(
const
TSourceLoc
&
,
const
TString
&
identifier
,
const
TType
&
,
TSymbol
*&
,
bool
track
);
void
declareArray
(
const
TSourceLoc
&
,
const
TString
&
identifier
,
const
TType
&
,
TSymbol
*&
,
bool
track
);
TIntermNode
*
executeInitializer
(
const
TSourceLoc
&
,
TIntermTyped
*
initializer
,
TVariable
*
variable
,
bool
flattened
);
TIntermNode
*
executeInitializer
(
const
TSourceLoc
&
,
TIntermTyped
*
initializer
,
TVariable
*
variable
);
TIntermTyped
*
convertInitializerList
(
const
TSourceLoc
&
,
const
TType
&
,
TIntermTyped
*
initializer
,
TIntermTyped
*
scalarInit
);
TIntermTyped
*
convertInitializerList
(
const
TSourceLoc
&
,
const
TType
&
,
TIntermTyped
*
initializer
,
TIntermTyped
*
scalarInit
);
bool
isScalarConstructor
(
const
TIntermNode
*
);
bool
isScalarConstructor
(
const
TIntermNode
*
);
TOperator
mapAtomicOp
(
const
TSourceLoc
&
loc
,
TOperator
op
,
bool
isImage
);
TOperator
mapAtomicOp
(
const
TSourceLoc
&
loc
,
TOperator
op
,
bool
isImage
);
...
...
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