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
999d4fdc
Unverified
Commit
999d4fdc
authored
Jun 01, 2020
by
alelenv
Committed by
GitHub
Jun 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add default descriptorset decoration for acceleration structure (#2257)
variables.
parent
0cc27fb6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
GlslangToSpv.cpp
SPIRV/GlslangToSpv.cpp
+2
-1
spv.ext.RayGenShader.rgen
Test/spv.ext.RayGenShader.rgen
+1
-1
No files found.
SPIRV/GlslangToSpv.cpp
View file @
999d4fdc
...
...
@@ -1292,7 +1292,8 @@ bool IsDescriptorResource(const glslang::TType& type)
// basically samplerXXX/subpass/sampler/texture are all included
// if they are the global-scope-class, not the function parameter
// (or local, if they ever exist) class.
if
(
type
.
getBasicType
()
==
glslang
::
EbtSampler
)
if
(
type
.
getBasicType
()
==
glslang
::
EbtSampler
||
type
.
getBasicType
()
==
glslang
::
EbtAccStruct
)
return
type
.
getQualifier
().
isUniformOrBuffer
();
// None of the above.
...
...
Test/spv.ext.RayGenShader.rgen
View file @
999d4fdc
#version 460
#extension GL_EXT_ray_tracing : enable
#extension GL_EXT_ray_flags_primitive_culling : enable
layout(binding = 0
, set = 0
) uniform accelerationStructureEXT accEXT0;
layout(binding = 0) uniform accelerationStructureEXT accEXT0;
layout(binding = 1, set = 0) uniform accelerationStructureEXT accEXT1; // Unused
layout(binding = 2, r32ui) shadercallcoherent uniform uimage2D imageu;
layout(location = 0) rayPayloadEXT vec4 payload;
...
...
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