You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
641 B
41 lines
641 B
#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;
|
|
}
|