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
29619b23
Unverified
Commit
29619b23
authored
Aug 01, 2018
by
John Kessenich
Committed by
GitHub
Aug 01, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1459 from dgkoch/dgkoch_build_fixes4
Fix various build warnings/errors
parents
e99a2681
883607d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
Constant.cpp
glslang/MachineIndependent/Constant.cpp
+5
-5
reflection.h
glslang/MachineIndependent/reflection.h
+1
-1
No files found.
glslang/MachineIndependent/Constant.cpp
View file @
29619b23
...
...
@@ -184,7 +184,7 @@ TIntermTyped* TIntermConstantUnion::fold(TOperator op, const TIntermTyped* right
else
if
(
leftUnionArray
[
i
].
getDConst
()
>
0.0
)
newConstArray
[
i
].
setDConst
((
double
)
INFINITY
);
else
if
(
leftUnionArray
[
i
].
getDConst
()
<
0.0
)
newConstArray
[
i
].
setDConst
(
(
double
)
-
INFINITY
);
newConstArray
[
i
].
setDConst
(
-
(
double
)
INFINITY
);
else
newConstArray
[
i
].
setDConst
((
double
)
NAN
);
break
;
...
...
@@ -223,8 +223,8 @@ TIntermTyped* TIntermConstantUnion::fold(TOperator op, const TIntermTyped* right
case
EbtInt
:
if
(
rightUnionArray
[
i
]
==
0
)
newConstArray
[
i
].
setIConst
(
0x7FFFFFFF
);
else
if
(
rightUnionArray
[
i
].
getIConst
()
==
-
1
&&
leftUnionArray
[
i
].
getIConst
()
==
-
(
int
)
0x80000000
)
newConstArray
[
i
].
setIConst
(
-
(
int
)
0x80000000
);
else
if
(
rightUnionArray
[
i
].
getIConst
()
==
-
1
&&
leftUnionArray
[
i
].
getIConst
()
==
(
int
)
-
0x80000000ll
)
newConstArray
[
i
].
setIConst
(
(
int
)
-
0x80000000ll
);
else
newConstArray
[
i
].
setIConst
(
leftUnionArray
[
i
].
getIConst
()
/
rightUnionArray
[
i
].
getIConst
());
break
;
...
...
@@ -239,8 +239,8 @@ TIntermTyped* TIntermConstantUnion::fold(TOperator op, const TIntermTyped* right
case
EbtInt64
:
if
(
rightUnionArray
[
i
]
==
0ll
)
newConstArray
[
i
].
setI64Const
(
0x7FFFFFFFFFFFFFFFll
);
else
if
(
rightUnionArray
[
i
].
getI64Const
()
==
-
1
&&
leftUnionArray
[
i
].
getI64Const
()
==
-
0x8000000000000000ll
)
newConstArray
[
i
].
setI64Const
(
-
0x8000000000000000ll
);
else
if
(
rightUnionArray
[
i
].
getI64Const
()
==
-
1
&&
leftUnionArray
[
i
].
getI64Const
()
==
(
long
long
)
-
0x8000000000000000ll
)
newConstArray
[
i
].
setI64Const
(
(
long
long
)
-
0x8000000000000000ll
);
else
newConstArray
[
i
].
setI64Const
(
leftUnionArray
[
i
].
getI64Const
()
/
rightUnionArray
[
i
].
getI64Const
());
break
;
...
...
glslang/MachineIndependent/reflection.h
View file @
29619b23
...
...
@@ -57,7 +57,7 @@ class TObjectReflection {
public
:
TObjectReflection
(
const
TString
&
pName
,
const
TType
&
pType
,
int
pOffset
,
int
pGLDefineType
,
int
pSize
,
int
pIndex
)
:
name
(
pName
),
offset
(
pOffset
),
glDefineType
(
pGLDefineType
),
size
(
pSize
),
index
(
pIndex
),
counterIndex
(
-
1
),
type
(
pType
.
clone
()),
stages
(
EShLanguageMask
(
0
))
{
}
glDefineType
(
pGLDefineType
),
size
(
pSize
),
index
(
pIndex
),
counterIndex
(
-
1
),
stages
(
EShLanguageMask
(
0
)),
type
(
pType
.
clone
(
))
{
}
const
TType
*
const
getType
()
const
{
return
type
;
}
int
getBinding
()
const
...
...
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