mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-24 11:50:06 +00:00
41 lines
641 B
GLSL
41 lines
641 B
GLSL
#version 450
|
|
|
|
#extension GL_EXT_buffer_reference : enable
|
|
|
|
layout(buffer_reference, std430, buffer_reference_align = 4) buffer T1 {
|
|
int i;
|
|
int j;
|
|
int k;
|
|
};
|
|
|
|
layout(buffer_reference, std430, buffer_reference_align = 8) buffer T2 {
|
|
int i;
|
|
int j;
|
|
int k;
|
|
};
|
|
|
|
layout(buffer_reference, std430) buffer T3 {
|
|
int i;
|
|
int j;
|
|
int k;
|
|
};
|
|
|
|
layout(buffer_reference, std430, buffer_reference_align = 32) buffer T4 {
|
|
int i;
|
|
int j;
|
|
int k;
|
|
};
|
|
|
|
void main()
|
|
{
|
|
T1 t1;
|
|
T2 t2;
|
|
T3 t3;
|
|
T4 t4;
|
|
|
|
t1.i = t1.k;
|
|
t2.i = t2.k;
|
|
t3.i = t3.k;
|
|
t4.i = t4.k;
|
|
}
|