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
c3a370db
Unverified
Commit
c3a370db
authored
Apr 10, 2018
by
John Kessenich
Committed by
GitHub
Apr 10, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1341 from St0fF-NPL-ToM/master
fix VS2012 compile issues
parents
619dc896
1aaa3567
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
15 deletions
+17
-15
GlslangToSpv.cpp
SPIRV/GlslangToSpv.cpp
+3
-3
Common.h
glslang/Include/Common.h
+13
-12
Intermediate.cpp
glslang/MachineIndependent/Intermediate.cpp
+1
-0
No files found.
SPIRV/GlslangToSpv.cpp
View file @
c3a370db
...
@@ -3638,7 +3638,7 @@ spv::Id TGlslangToSpvTraverser::createImageTextureFunctionCall(glslang::TIntermO
...
@@ -3638,7 +3638,7 @@ spv::Id TGlslangToSpvTraverser::createImageTextureFunctionCall(glslang::TIntermO
if
(
builder
.
getImageTypeFormat
(
builder
.
getImageType
(
operands
.
front
()))
==
spv
::
ImageFormatUnknown
)
if
(
builder
.
getImageTypeFormat
(
builder
.
getImageType
(
operands
.
front
()))
==
spv
::
ImageFormatUnknown
)
builder
.
addCapability
(
spv
::
CapabilityStorageImageReadWithoutFormat
);
builder
.
addCapability
(
spv
::
CapabilityStorageImageReadWithoutFormat
);
std
::
vector
<
spv
::
Id
>
result
=
{
builder
.
createOp
(
spv
::
OpImageRead
,
resultType
(),
operands
)
}
;
std
::
vector
<
spv
::
Id
>
result
(
1
,
builder
.
createOp
(
spv
::
OpImageRead
,
resultType
(),
operands
)
)
;
builder
.
setPrecision
(
result
[
0
],
precision
);
builder
.
setPrecision
(
result
[
0
],
precision
);
// If needed, add a conversion constructor to the proper size.
// If needed, add a conversion constructor to the proper size.
...
@@ -3926,9 +3926,9 @@ spv::Id TGlslangToSpvTraverser::createImageTextureFunctionCall(glslang::TIntermO
...
@@ -3926,9 +3926,9 @@ spv::Id TGlslangToSpvTraverser::createImageTextureFunctionCall(glslang::TIntermO
}
}
}
}
std
::
vector
<
spv
::
Id
>
result
=
{
std
::
vector
<
spv
::
Id
>
result
(
1
,
builder
.
createTextureCall
(
precision
,
resultType
(),
sparse
,
cracked
.
fetch
,
cracked
.
proj
,
cracked
.
gather
,
noImplicitLod
,
params
)
builder
.
createTextureCall
(
precision
,
resultType
(),
sparse
,
cracked
.
fetch
,
cracked
.
proj
,
cracked
.
gather
,
noImplicitLod
,
params
)
}
;
)
;
if
(
components
!=
node
->
getType
().
getVectorSize
())
if
(
components
!=
node
->
getType
().
getVectorSize
())
result
[
0
]
=
builder
.
createConstructor
(
precision
,
result
,
convertGlslangToSpvType
(
node
->
getType
()));
result
[
0
]
=
builder
.
createConstructor
(
precision
,
result
,
convertGlslangToSpvType
(
node
->
getType
()));
...
...
glslang/Include/Common.h
View file @
c3a370db
...
@@ -67,18 +67,19 @@ std::string to_string(const T& val) {
...
@@ -67,18 +67,19 @@ std::string to_string(const T& val) {
#endif
#endif
#if defined(_MSC_VER) && _MSC_VER < 1800
#if defined(_MSC_VER) && _MSC_VER < 1800
inline
long
long
int
strtoll
(
const
char
*
str
,
char
**
endptr
,
int
base
)
#include <stdlib.h>
{
inline
long
long
int
strtoll
(
const
char
*
str
,
char
**
endptr
,
int
base
)
return
_strtoi64
(
str
,
endptr
,
base
);
{
}
return
_strtoi64
(
str
,
endptr
,
base
);
inline
unsigned
long
long
int
strtoull
(
const
char
*
str
,
char
**
endptr
,
int
base
)
}
{
inline
unsigned
long
long
int
strtoull
(
const
char
*
str
,
char
**
endptr
,
int
base
)
return
_strtoui64
(
str
,
endptr
,
base
);
{
}
return
_strtoui64
(
str
,
endptr
,
base
);
inline
long
long
int
atoll
(
const
char
*
str
)
}
{
inline
long
long
int
atoll
(
const
char
*
str
)
return
strtoll
(
str
,
NULL
,
10
);
{
}
return
strtoll
(
str
,
NULL
,
10
);
}
#endif
#endif
#if defined(_MSC_VER)
#if defined(_MSC_VER)
...
...
glslang/MachineIndependent/Intermediate.cpp
View file @
c3a370db
...
@@ -47,6 +47,7 @@
...
@@ -47,6 +47,7 @@
#include <cfloat>
#include <cfloat>
#include <utility>
#include <utility>
#include <tuple>
namespace
glslang
{
namespace
glslang
{
...
...
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