mirror of
https://github.com/libretro/glslang.git
synced 2024-12-11 18:03:32 +00:00
b07957cf22
• An array of arrays • An array of structures • A structure containing an array • A structure containing a structure git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@28745 e7fa87d3-cd2b-0410-9028-fcbf551c1848
24 lines
400 B
GLSL
24 lines
400 B
GLSL
#version 450 core
|
|
|
|
out gl_PerVertex {
|
|
float gl_CullDistance[3];
|
|
};
|
|
|
|
void main()
|
|
{
|
|
gl_CullDistance[2] = 4.5;
|
|
}
|
|
|
|
out bool outb; // ERROR
|
|
out sampler2D outo; // ERROR
|
|
out float outa[4];
|
|
out float outaa[4][2];
|
|
struct S { float f; };
|
|
out S outs;
|
|
out S[4] outasa;
|
|
out S outsa[4];
|
|
struct SA { float f[4]; };
|
|
out SA outSA;
|
|
struct SS { float f; S s; };
|
|
out SS outSS;
|