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
8268a355
Commit
8268a355
authored
Aug 25, 2017
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build: Attempt better support for VS 2012.
Fix #1020. Fix #1021. Fix #1022.
parent
74c5f711
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
+10
-6
hex_float.h
SPIRV/hex_float.h
+1
-1
Common.h
glslang/Include/Common.h
+1
-1
ParseHelper.h
glslang/MachineIndependent/ParseHelper.h
+2
-1
localintermediate.h
glslang/MachineIndependent/localintermediate.h
+6
-3
No files found.
SPIRV/hex_float.h
View file @
8268a355
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
#include <limits>
#include <limits>
#include <sstream>
#include <sstream>
#if defined(_MSC_VER) && _MSC_VER < 1
7
00
#if defined(_MSC_VER) && _MSC_VER < 1
8
00
namespace
std
{
namespace
std
{
bool
isnan
(
double
f
)
bool
isnan
(
double
f
)
{
{
...
...
glslang/Include/Common.h
View file @
8268a355
...
@@ -63,7 +63,7 @@ std::string to_string(const T& val) {
...
@@ -63,7 +63,7 @@ std::string to_string(const T& val) {
}
}
#endif
#endif
#if defined(_MSC_VER) && _MSC_VER < 1
7
00
#if defined(_MSC_VER) && _MSC_VER < 1
8
00
inline
long
long
int
strtoll
(
const
char
*
str
,
char
**
endptr
,
int
base
)
inline
long
long
int
strtoll
(
const
char
*
str
,
char
**
endptr
,
int
base
)
{
{
return
_strtoi64
(
str
,
endptr
,
base
);
return
_strtoi64
(
str
,
endptr
,
base
);
...
...
glslang/MachineIndependent/ParseHelper.h
View file @
8268a355
...
@@ -76,6 +76,7 @@ public:
...
@@ -76,6 +76,7 @@ public:
EProfile
profile
,
const
SpvVersion
&
spvVersion
,
EShLanguage
language
,
EProfile
profile
,
const
SpvVersion
&
spvVersion
,
EShLanguage
language
,
TInfoSink
&
infoSink
,
bool
forwardCompatible
,
EShMessages
messages
)
TInfoSink
&
infoSink
,
bool
forwardCompatible
,
EShMessages
messages
)
:
TParseVersions
(
interm
,
version
,
profile
,
spvVersion
,
language
,
infoSink
,
forwardCompatible
,
messages
),
:
TParseVersions
(
interm
,
version
,
profile
,
spvVersion
,
language
,
infoSink
,
forwardCompatible
,
messages
),
scopeMangler
(
"::"
),
symbolTable
(
symbolTable
),
symbolTable
(
symbolTable
),
statementNestingLevel
(
0
),
loopNestingLevel
(
0
),
structNestingLevel
(
0
),
controlFlowNestingLevel
(
0
),
statementNestingLevel
(
0
),
loopNestingLevel
(
0
),
structNestingLevel
(
0
),
controlFlowNestingLevel
(
0
),
postEntryPointReturn
(
false
),
postEntryPointReturn
(
false
),
...
@@ -143,7 +144,7 @@ public:
...
@@ -143,7 +144,7 @@ public:
virtual
bool
lValueErrorCheck
(
const
TSourceLoc
&
,
const
char
*
op
,
TIntermTyped
*
);
virtual
bool
lValueErrorCheck
(
const
TSourceLoc
&
,
const
char
*
op
,
TIntermTyped
*
);
virtual
void
rValueErrorCheck
(
const
TSourceLoc
&
,
const
char
*
op
,
TIntermTyped
*
);
virtual
void
rValueErrorCheck
(
const
TSourceLoc
&
,
const
char
*
op
,
TIntermTyped
*
);
const
char
*
const
scopeMangler
=
"::"
;
const
char
*
const
scopeMangler
;
// Basic parsing state, easily accessible to the grammar
// Basic parsing state, easily accessible to the grammar
...
...
glslang/MachineIndependent/localintermediate.h
View file @
8268a355
...
@@ -208,11 +208,14 @@ class TVariable;
...
@@ -208,11 +208,14 @@ class TVariable;
class
TIntermediate
{
class
TIntermediate
{
public
:
public
:
explicit
TIntermediate
(
EShLanguage
l
,
int
v
=
0
,
EProfile
p
=
ENoProfile
)
:
explicit
TIntermediate
(
EShLanguage
l
,
int
v
=
0
,
EProfile
p
=
ENoProfile
)
:
implicitThisName
(
"@this"
),
language
(
l
),
source
(
EShSourceNone
),
profile
(
p
),
version
(
v
),
treeRoot
(
0
),
language
(
l
),
source
(
EShSourceNone
),
profile
(
p
),
version
(
v
),
treeRoot
(
0
),
numEntryPoints
(
0
),
numErrors
(
0
),
numPushConstants
(
0
),
recursive
(
false
),
numEntryPoints
(
0
),
numErrors
(
0
),
numPushConstants
(
0
),
recursive
(
false
),
invocations
(
TQualifier
::
layoutNotSet
),
vertices
(
TQualifier
::
layoutNotSet
),
inputPrimitive
(
ElgNone
),
outputPrimitive
(
ElgNone
),
invocations
(
TQualifier
::
layoutNotSet
),
vertices
(
TQualifier
::
layoutNotSet
),
inputPrimitive
(
ElgNone
),
outputPrimitive
(
ElgNone
),
pixelCenterInteger
(
false
),
originUpperLeft
(
false
),
pixelCenterInteger
(
false
),
originUpperLeft
(
false
),
vertexSpacing
(
EvsNone
),
vertexOrder
(
EvoNone
),
pointMode
(
false
),
earlyFragmentTests
(
false
),
postDepthCoverage
(
false
),
depthLayout
(
EldNone
),
depthReplacing
(
false
),
vertexSpacing
(
EvsNone
),
vertexOrder
(
EvoNone
),
pointMode
(
false
),
earlyFragmentTests
(
false
),
postDepthCoverage
(
false
),
depthLayout
(
EldNone
),
depthReplacing
(
false
),
blendEquations
(
0
),
xfbMode
(
false
),
multiStream
(
false
),
blendEquations
(
0
),
xfbMode
(
false
),
multiStream
(
false
),
#ifdef NV_EXTENSIONS
#ifdef NV_EXTENSIONS
layoutOverrideCoverage
(
false
),
layoutOverrideCoverage
(
false
),
...
@@ -607,7 +610,7 @@ public:
...
@@ -607,7 +610,7 @@ public:
void
addProcessArgument
(
const
std
::
string
&
arg
)
{
processes
.
addArgument
(
arg
);
}
void
addProcessArgument
(
const
std
::
string
&
arg
)
{
processes
.
addArgument
(
arg
);
}
const
std
::
vector
<
std
::
string
>&
getProcesses
()
const
{
return
processes
.
getProcesses
();
}
const
std
::
vector
<
std
::
string
>&
getProcesses
()
const
{
return
processes
.
getProcesses
();
}
const
char
*
const
implicitThisName
=
"@this"
;
const
char
*
const
implicitThisName
;
protected
:
protected
:
TIntermSymbol
*
addSymbol
(
int
Id
,
const
TString
&
,
const
TType
&
,
const
TConstUnionArray
&
,
TIntermTyped
*
subtree
,
const
TSourceLoc
&
);
TIntermSymbol
*
addSymbol
(
int
Id
,
const
TString
&
,
const
TType
&
,
const
TConstUnionArray
&
,
TIntermTyped
*
subtree
,
const
TSourceLoc
&
);
...
...
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