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
549c2932
Commit
549c2932
authored
Jul 11, 2015
by
John Kessenich
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5 from floooh/fix-clang-warnings
Fix for most Xcode/clang warnings on OSX
parents
73fcdefa
a5ade513
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
7 deletions
+9
-7
SpvBuilder.cpp
SPIRV/SpvBuilder.cpp
+1
-1
doc.h
SPIRV/doc.h
+3
-3
Initialize.cpp
glslang/MachineIndependent/Initialize.cpp
+1
-1
Scan.cpp
glslang/MachineIndependent/Scan.cpp
+1
-1
Versions.cpp
glslang/MachineIndependent/Versions.cpp
+2
-0
PpContext.h
glslang/MachineIndependent/preprocessor/PpContext.h
+1
-1
No files found.
SPIRV/SpvBuilder.cpp
View file @
549c2932
...
...
@@ -1175,7 +1175,7 @@ Id Builder::createTextureCall(Decoration precision, Id resultType, bool proj, co
Id
Builder
::
createTextureQueryCall
(
Op
opCode
,
const
TextureParameters
&
parameters
)
{
// Figure out the result type
Id
resultType
;
Id
resultType
=
NoType
;
switch
(
opCode
)
{
case
OpTextureQuerySize
:
case
OpTextureQuerySizeLod
:
...
...
SPIRV/doc.h
View file @
549c2932
...
...
@@ -213,10 +213,10 @@ public:
class
InstructionParameters
{
public
:
InstructionParameters
()
:
typePresent
(
true
),
// most normal, only exceptions have to be spelled out
resultPresent
(
true
),
// most normal, only exceptions have to be spelled out
opDesc
(
0
),
opClass
(
OpClassMisc
)
opClass
(
OpClassMisc
),
typePresent
(
true
),
// most normal, only exceptions have to be spelled out
resultPresent
(
true
)
// most normal, only exceptions have to be spelled out
{
}
void
setResultAndType
(
bool
r
,
bool
t
)
...
...
glslang/MachineIndependent/Initialize.cpp
View file @
549c2932
...
...
@@ -1054,7 +1054,7 @@ void TBuiltIns::initialize(int version, EProfile profile)
//
//============================================================================
bool
esBarrier
=
(
profile
==
EEsProfile
&&
version
>=
310
);
if
(
profile
!=
EEsProfile
&&
version
>=
150
||
esBarrier
)
if
(
(
profile
!=
EEsProfile
&&
version
>=
150
)
||
esBarrier
)
stageBuiltins
[
EShLangTessControl
].
append
(
"void barrier();"
);
...
...
glslang/MachineIndependent/Scan.cpp
View file @
549c2932
...
...
@@ -685,7 +685,7 @@ int TScanContext::tokenizeIdentifier()
return
keyword
;
case
ATOMIC_UINT
:
if
(
parseContext
.
profile
==
EEsProfile
&&
parseContext
.
version
>=
310
||
if
(
(
parseContext
.
profile
==
EEsProfile
&&
parseContext
.
version
>=
310
)
||
parseContext
.
extensionsTurnedOn
(
1
,
&
E_GL_ARB_shader_atomic_counters
))
return
keyword
;
return
es30ReservedFromGLSL
(
420
);
...
...
glslang/MachineIndependent/Versions.cpp
View file @
549c2932
...
...
@@ -457,6 +457,8 @@ bool TParseContext::extensionsTurnedOn(int numExtensions, const char* const exte
case
EBhRequire
:
case
EBhWarn
:
return
true
;
default
:
break
;
}
}
...
...
glslang/MachineIndependent/preprocessor/PpContext.h
View file @
549c2932
...
...
@@ -86,7 +86,7 @@ namespace glslang {
class
TPpToken
{
public
:
TPpToken
()
:
token
(
0
),
ival
(
0
),
space
(
false
),
dval
(
0
.
0
),
atom
(
0
)
TPpToken
()
:
token
(
0
),
space
(
false
),
ival
(
0
),
dval
(
0
.
0
),
atom
(
0
)
{
loc
.
init
();
name
[
0
]
=
0
;
...
...
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