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
075c8c11
Unverified
Commit
075c8c11
authored
Mar 14, 2018
by
John Kessenich
Committed by
GitHub
Mar 14, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1294 from dgkoch/dgkoch_build_fixes4
Fix build several build errors
parents
3e2a3c46
bfe09521
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
SpvBuilder.cpp
SPIRV/SpvBuilder.cpp
+1
-1
attribute.cpp
glslang/MachineIndependent/attribute.cpp
+1
-1
hlslParseHelper.cpp
hlsl/hlslParseHelper.cpp
+3
-3
No files found.
SPIRV/SpvBuilder.cpp
View file @
075c8c11
...
@@ -2530,7 +2530,7 @@ void Builder::remapDynamicSwizzle()
...
@@ -2530,7 +2530,7 @@ void Builder::remapDynamicSwizzle()
if
(
accessChain
.
component
!=
NoResult
&&
accessChain
.
swizzle
.
size
()
>
1
)
{
if
(
accessChain
.
component
!=
NoResult
&&
accessChain
.
swizzle
.
size
()
>
1
)
{
// build a vector of the swizzle for the component to map into
// build a vector of the swizzle for the component to map into
std
::
vector
<
Id
>
components
;
std
::
vector
<
Id
>
components
;
for
(
int
c
=
0
;
c
<
accessChain
.
swizzle
.
size
();
++
c
)
for
(
int
c
=
0
;
c
<
(
int
)
accessChain
.
swizzle
.
size
();
++
c
)
components
.
push_back
(
makeUintConstant
(
accessChain
.
swizzle
[
c
]));
components
.
push_back
(
makeUintConstant
(
accessChain
.
swizzle
[
c
]));
Id
mapType
=
makeVectorType
(
makeUintType
(
32
),
(
int
)
accessChain
.
swizzle
.
size
());
Id
mapType
=
makeVectorType
(
makeUintType
(
32
),
(
int
)
accessChain
.
swizzle
.
size
());
Id
map
=
makeCompositeConstant
(
mapType
,
components
);
Id
map
=
makeCompositeConstant
(
mapType
,
components
);
...
...
glslang/MachineIndependent/attribute.cpp
View file @
075c8c11
...
@@ -82,7 +82,7 @@ const TConstUnion* TAttributeArgs::getConstUnion(TBasicType basicType, int argNu
...
@@ -82,7 +82,7 @@ const TConstUnion* TAttributeArgs::getConstUnion(TBasicType basicType, int argNu
if
(
args
==
nullptr
)
if
(
args
==
nullptr
)
return
nullptr
;
return
nullptr
;
if
(
argNum
>=
args
->
getSequence
().
size
())
if
(
argNum
>=
(
int
)
args
->
getSequence
().
size
())
return
nullptr
;
return
nullptr
;
const
TConstUnion
*
constVal
=
&
args
->
getSequence
()[
argNum
]
->
getAsConstantUnion
()
->
getConstArray
()[
0
];
const
TConstUnion
*
constVal
=
&
args
->
getSequence
()[
argNum
]
->
getAsConstantUnion
()
->
getConstArray
()[
0
];
...
...
hlsl/hlslParseHelper.cpp
View file @
075c8c11
...
@@ -65,10 +65,10 @@ HlslParseContext::HlslParseContext(TSymbolTable& symbolTable, TIntermediate& int
...
@@ -65,10 +65,10 @@ HlslParseContext::HlslParseContext(TSymbolTable& symbolTable, TIntermediate& int
entryPointFunction
(
nullptr
),
entryPointFunction
(
nullptr
),
entryPointFunctionBody
(
nullptr
),
entryPointFunctionBody
(
nullptr
),
gsStreamOutput
(
nullptr
),
gsStreamOutput
(
nullptr
),
clipDistanceInput
(
nullptr
),
cullDistanceInput
(
nullptr
),
clipDistanceOutput
(
nullptr
),
clipDistanceOutput
(
nullptr
),
cullDistanceOutput
(
nullptr
)
cullDistanceOutput
(
nullptr
),
clipDistanceInput
(
nullptr
),
cullDistanceInput
(
nullptr
)
{
{
globalUniformDefaults
.
clear
();
globalUniformDefaults
.
clear
();
globalUniformDefaults
.
layoutMatrix
=
ElmRowMajor
;
globalUniformDefaults
.
layoutMatrix
=
ElmRowMajor
;
...
...
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