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
22e0d414
Commit
22e0d414
authored
May 20, 2016
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SPV: Don't put locations on OpTypeStruct. Related to Issue #291.
parent
75ce8453
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
9 deletions
+0
-9
GlslangToSpv.cpp
SPIRV/GlslangToSpv.cpp
+0
-8
spv.430.vert.out
Test/baseResults/spv.430.vert.out
+0
-1
No files found.
SPIRV/GlslangToSpv.cpp
View file @
22e0d414
...
@@ -1961,14 +1961,6 @@ spv::Id TGlslangToSpvTraverser::convertGlslangToSpvType(const glslang::TType& ty
...
@@ -1961,14 +1961,6 @@ spv::Id TGlslangToSpvTraverser::convertGlslangToSpvType(const glslang::TType& ty
if
(
type
.
getQualifier
().
hasXfbBuffer
())
if
(
type
.
getQualifier
().
hasXfbBuffer
())
builder
.
addDecoration
(
spvType
,
spv
::
DecorationXfbBuffer
,
type
.
getQualifier
().
layoutXfbBuffer
);
builder
.
addDecoration
(
spvType
,
spv
::
DecorationXfbBuffer
,
type
.
getQualifier
().
layoutXfbBuffer
);
}
}
if
(
type
.
getBasicType
()
!=
glslang
::
EbtBlock
&&
(
type
.
getQualifier
().
storage
==
glslang
::
EvqVaryingIn
||
type
.
getQualifier
().
storage
==
glslang
::
EvqVaryingOut
))
{
// The layout of a structure type used as an Input or Output depends on whether it is also a Block (i.e. has a Block decoration).
// If it is a not a Block, then the structure type must have a Location decoration.
if
(
type
.
getQualifier
().
hasLocation
())
builder
.
addDecoration
(
spvType
,
spv
::
DecorationLocation
,
type
.
getQualifier
().
layoutLocation
);
}
}
}
break
;
break
;
default
:
default
:
...
...
Test/baseResults/spv.430.vert.out
View file @
22e0d414
...
@@ -65,7 +65,6 @@ Linked vertex stage:
...
@@ -65,7 +65,6 @@ Linked vertex stage:
MemberDecorate 60(SS) 0 Flat
MemberDecorate 60(SS) 0 Flat
MemberDecorate 60(SS) 1 Flat
MemberDecorate 60(SS) 1 Flat
MemberDecorate 60(SS) 2 Flat
MemberDecorate 60(SS) 2 Flat
Decorate 60(SS) Location 0
Decorate 62(var) Location 0
Decorate 62(var) Location 0
MemberDecorate 63(MS) 0 Location 17
MemberDecorate 63(MS) 0 Location 17
Decorate 63(MS) Block
Decorate 63(MS) Block
...
...
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