Signed-off-by: hmz007 <hmz007@gmail.com> Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
15 lines
135 B
GLSL
15 lines
135 B
GLSL
#version 460
|
|
|
|
struct A {
|
|
float x;
|
|
};
|
|
|
|
A test() {
|
|
return A(1.0);
|
|
}
|
|
|
|
void main() {
|
|
test().z; // A.z does not exist, causes a crash
|
|
}
|
|
|