Decorate accesschain operand for nonuniform UBO loads
This is conservative and still also decorates the loaded value.
This commit is contained in:
parent
39ffdaf2ab
commit
b57af2f5ad
9 changed files with 110 additions and 3 deletions
15
Test/spv.nonuniform5.frag
Normal file
15
Test/spv.nonuniform5.frag
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#version 450
|
||||
#extension GL_EXT_nonuniform_qualifier : require
|
||||
|
||||
layout(location = 0) flat in int Index;
|
||||
layout(location = 0) out vec4 FragColor;
|
||||
|
||||
layout(set = 0, binding = 0) uniform UBO
|
||||
{
|
||||
vec4 v;
|
||||
} ubos[];
|
||||
|
||||
void main()
|
||||
{
|
||||
FragColor = ubos[nonuniformEXT(Index)].v;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue