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
c24cc29d
Commit
c24cc29d
authored
Jun 08, 2016
by
Jason Ekstrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GlslangToSpv: Properly handle opaque types in TranslateStorageClass
parent
5022d681
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
GlslangToSpv.cpp
SPIRV/GlslangToSpv.cpp
+4
-2
No files found.
SPIRV/GlslangToSpv.cpp
View file @
c24cc29d
...
@@ -227,13 +227,15 @@ spv::StorageClass TranslateStorageClass(const glslang::TType& type)
...
@@ -227,13 +227,15 @@ spv::StorageClass TranslateStorageClass(const glslang::TType& type)
return
spv
::
StorageClassInput
;
return
spv
::
StorageClassInput
;
else
if
(
type
.
getQualifier
().
isPipeOutput
())
else
if
(
type
.
getQualifier
().
isPipeOutput
())
return
spv
::
StorageClassOutput
;
return
spv
::
StorageClassOutput
;
else
if
(
type
.
getBasicType
()
==
glslang
::
EbtSampler
)
return
spv
::
StorageClassUniformConstant
;
else
if
(
type
.
getBasicType
()
==
glslang
::
EbtAtomicUint
)
return
spv
::
StorageClassAtomicCounter
;
else
if
(
type
.
getQualifier
().
isUniformOrBuffer
())
{
else
if
(
type
.
getQualifier
().
isUniformOrBuffer
())
{
if
(
type
.
getQualifier
().
layoutPushConstant
)
if
(
type
.
getQualifier
().
layoutPushConstant
)
return
spv
::
StorageClassPushConstant
;
return
spv
::
StorageClassPushConstant
;
if
(
type
.
getBasicType
()
==
glslang
::
EbtBlock
)
if
(
type
.
getBasicType
()
==
glslang
::
EbtBlock
)
return
spv
::
StorageClassUniform
;
return
spv
::
StorageClassUniform
;
else
if
(
type
.
getBasicType
()
==
glslang
::
EbtAtomicUint
)
return
spv
::
StorageClassAtomicCounter
;
else
else
return
spv
::
StorageClassUniformConstant
;
return
spv
::
StorageClassUniformConstant
;
// TODO: how are we distuingishing between default and non-default non-writable uniforms? Do default uniforms even exist?
// TODO: how are we distuingishing between default and non-default non-writable uniforms? Do default uniforms even exist?
...
...
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