yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Saddamguard non-symbol l-value base in l/rValueErrorCheck0867e486

main
465 B20 linesraw
1#version 450
2
3#extension GL_EXT_buffer_reference : enable
4#extension GL_EXT_buffer_reference2 : enable
5
6layout(buffer_reference, std430) writeonly buffer Ref {
7    int a;
8};
9
10layout(set = 0, binding = 0, std430) buffer Root {
11    Ref r;
12} root;
13
14void main()
15{
16    // Reading a member of a writeonly buffer_reference through pointer
17    // arithmetic bottoms out on a non-symbol base, so the l-value base
18    // is not a TIntermSymbol.
19    int v = (root.r + 1).a;
20}