Files
archived-glslang/Test/spv.atomicRvalue.error.vert
Nathaniel Cesario d4b7b7b77b Fix segfault with atomic arg check
Makes sure that we have an l-value before checking the storage type of
the mem argument passed to an atomic memory operation.

Fixes #3332.
2023-12-11 20:03:18 +00:00

8 lines
92 B
GLSL

#version 440
void main() {
uint a = 5;
atomicAdd(a * 2, 0);
atomicAdd(a, 0);
}