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
34e56891
Commit
34e56891
authored
Jul 18, 2018
by
John Kessenich
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jeffbolznv-missing_descriptor_indexing_extension'
parents
806af25f
4137241a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
GlslangToSpv.cpp
SPIRV/GlslangToSpv.cpp
+8
-3
No files found.
SPIRV/GlslangToSpv.cpp
View file @
34e56891
...
@@ -911,6 +911,7 @@ void TGlslangToSpvTraverser::addIndirectionIndexCapabilities(const glslang::TTyp
...
@@ -911,6 +911,7 @@ void TGlslangToSpvTraverser::addIndirectionIndexCapabilities(const glslang::TTyp
{
{
if
(
indexType
.
getQualifier
().
isNonUniform
())
{
if
(
indexType
.
getQualifier
().
isNonUniform
())
{
// deal with an asserted non-uniform index
// deal with an asserted non-uniform index
// SPV_EXT_descriptor_indexing already added in TranslateNonUniformDecoration
if
(
baseType
.
getBasicType
()
==
glslang
::
EbtSampler
)
{
if
(
baseType
.
getBasicType
()
==
glslang
::
EbtSampler
)
{
if
(
baseType
.
getQualifier
().
hasAttachment
())
if
(
baseType
.
getQualifier
().
hasAttachment
())
builder
.
addCapability
(
spv
::
CapabilityInputAttachmentArrayNonUniformIndexingEXT
);
builder
.
addCapability
(
spv
::
CapabilityInputAttachmentArrayNonUniformIndexingEXT
);
...
@@ -931,12 +932,16 @@ void TGlslangToSpvTraverser::addIndirectionIndexCapabilities(const glslang::TTyp
...
@@ -931,12 +932,16 @@ void TGlslangToSpvTraverser::addIndirectionIndexCapabilities(const glslang::TTyp
}
else
{
}
else
{
// assume a dynamically uniform index
// assume a dynamically uniform index
if
(
baseType
.
getBasicType
()
==
glslang
::
EbtSampler
)
{
if
(
baseType
.
getBasicType
()
==
glslang
::
EbtSampler
)
{
if
(
baseType
.
getQualifier
().
hasAttachment
())
if
(
baseType
.
getQualifier
().
hasAttachment
())
{
builder
.
addExtension
(
"SPV_EXT_descriptor_indexing"
);
builder
.
addCapability
(
spv
::
CapabilityInputAttachmentArrayDynamicIndexingEXT
);
builder
.
addCapability
(
spv
::
CapabilityInputAttachmentArrayDynamicIndexingEXT
);
else
if
(
baseType
.
isImage
()
&&
baseType
.
getSampler
().
dim
==
glslang
::
EsdBuffer
)
}
else
if
(
baseType
.
isImage
()
&&
baseType
.
getSampler
().
dim
==
glslang
::
EsdBuffer
)
{
builder
.
addExtension
(
"SPV_EXT_descriptor_indexing"
);
builder
.
addCapability
(
spv
::
CapabilityStorageTexelBufferArrayDynamicIndexingEXT
);
builder
.
addCapability
(
spv
::
CapabilityStorageTexelBufferArrayDynamicIndexingEXT
);
else
if
(
baseType
.
isTexture
()
&&
baseType
.
getSampler
().
dim
==
glslang
::
EsdBuffer
)
}
else
if
(
baseType
.
isTexture
()
&&
baseType
.
getSampler
().
dim
==
glslang
::
EsdBuffer
)
{
builder
.
addExtension
(
"SPV_EXT_descriptor_indexing"
);
builder
.
addCapability
(
spv
::
CapabilityUniformTexelBufferArrayDynamicIndexingEXT
);
builder
.
addCapability
(
spv
::
CapabilityUniformTexelBufferArrayDynamicIndexingEXT
);
}
}
}
}
}
}
}
...
...
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