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
d72f488c
Commit
d72f488c
authored
Jan 16, 2019
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build: fix warnings. Fixes #1653.
parent
28982233
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
GlslangToSpv.cpp
SPIRV/GlslangToSpv.cpp
+1
-1
ParseHelper.cpp
glslang/MachineIndependent/ParseHelper.cpp
+1
-1
No files found.
SPIRV/GlslangToSpv.cpp
100644 → 100755
View file @
d72f488c
...
@@ -3232,7 +3232,7 @@ spv::Id TGlslangToSpvTraverser::convertGlslangStructToSpvType(const glslang::TTy
...
@@ -3232,7 +3232,7 @@ spv::Id TGlslangToSpvTraverser::convertGlslangStructToSpvType(const glslang::TTy
// Decorate it
// Decorate it
decorateStructType
(
type
,
glslangMembers
,
explicitLayout
,
qualifier
,
spvType
);
decorateStructType
(
type
,
glslangMembers
,
explicitLayout
,
qualifier
,
spvType
);
for
(
int
i
=
0
;
i
<
deferredForwardPointers
.
size
();
++
i
)
{
for
(
int
i
=
0
;
i
<
(
int
)
deferredForwardPointers
.
size
();
++
i
)
{
auto
it
=
deferredForwardPointers
[
i
];
auto
it
=
deferredForwardPointers
[
i
];
convertGlslangToSpvType
(
*
it
.
first
,
explicitLayout
,
it
.
second
,
false
);
convertGlslangToSpvType
(
*
it
.
first
,
explicitLayout
,
it
.
second
,
false
);
}
}
...
...
glslang/MachineIndependent/ParseHelper.cpp
View file @
d72f488c
...
@@ -5062,7 +5062,7 @@ void TParseContext::setLayoutQualifier(const TSourceLoc& loc, TPublicType& publi
...
@@ -5062,7 +5062,7 @@ void TParseContext::setLayoutQualifier(const TSourceLoc& loc, TPublicType& publi
if
(
!
IsPow2
(
value
))
if
(
!
IsPow2
(
value
))
error
(
loc
,
"must be a power of 2"
,
"buffer_reference_align"
,
""
);
error
(
loc
,
"must be a power of 2"
,
"buffer_reference_align"
,
""
);
else
else
publicType
.
qualifier
.
layoutBufferReferenceAlign
=
std
::
log2
(
value
);
publicType
.
qualifier
.
layoutBufferReferenceAlign
=
(
unsigned
int
)
std
::
log2
(
value
);
return
;
return
;
}
}
...
...
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