| 1 |
#version 450 |
| 2 |
|
| 3 |
layout(local_size_x = 1) in; |
| 4 |
|
| 5 |
struct S0 |
| 6 |
{ |
| 7 |
vec2 a[1]; |
| 8 |
float b; |
| 9 |
}; |
| 10 |
|
| 11 |
struct S1 |
| 12 |
{ |
| 13 |
vec3 a; |
| 14 |
float b; |
| 15 |
}; |
| 16 |
|
| 17 |
struct S2 |
| 18 |
{ |
| 19 |
vec3 a[1]; |
| 20 |
float b; |
| 21 |
}; |
| 22 |
|
| 23 |
struct S3 |
| 24 |
{ |
| 25 |
vec2 a; |
| 26 |
float b; |
| 27 |
}; |
| 28 |
|
| 29 |
struct S4 |
| 30 |
{ |
| 31 |
vec2 c; |
| 32 |
}; |
| 33 |
|
| 34 |
struct Content |
| 35 |
{ |
| 36 |
S0 m0s[1]; |
| 37 |
S1 m1s[1]; |
| 38 |
S2 m2s[1]; |
| 39 |
S0 m0; |
| 40 |
S1 m1; |
| 41 |
S2 m2; |
| 42 |
S3 m3; |
| 43 |
float m4; |
| 44 |
|
| 45 |
S4 m3s[8]; |
| 46 |
}; |
| 47 |
|
| 48 |
layout(binding = 1, std430) restrict buffer SSBO1 |
| 49 |
{ |
| 50 |
Content content; |
| 51 |
Content content1[2]; |
| 52 |
Content content2; |
| 53 |
|
| 54 |
layout(column_major) mat2 m0; |
| 55 |
layout(column_major) mat2 m1; |
| 56 |
layout(column_major) mat2x3 m2[4]; |
| 57 |
layout(column_major) mat3x2 m3; |
| 58 |
layout(row_major) mat2 m4; |
| 59 |
layout(row_major) mat2 m5[9]; |
| 60 |
layout(row_major) mat2x3 m6[4][2]; |
| 61 |
layout(row_major) mat3x2 m7; |
| 62 |
float array[]; |
| 63 |
} ssbo_430; |
| 64 |
|
| 65 |
layout(binding = 0, std140) restrict buffer SSBO0 |
| 66 |
{ |
| 67 |
Content content; |
| 68 |
Content content1[2]; |
| 69 |
Content content2; |
| 70 |
|
| 71 |
layout(column_major) mat2 m0; |
| 72 |
layout(column_major) mat2 m1; |
| 73 |
layout(column_major) mat2x3 m2[4]; |
| 74 |
layout(column_major) mat3x2 m3; |
| 75 |
layout(row_major) mat2 m4; |
| 76 |
layout(row_major) mat2 m5[9]; |
| 77 |
layout(row_major) mat2x3 m6[4][2]; |
| 78 |
layout(row_major) mat3x2 m7; |
| 79 |
|
| 80 |
float array[]; |
| 81 |
} ssbo_140; |
| 82 |
|
| 83 |
void main() |
| 84 |
{ |
| 85 |
ssbo_430.content = ssbo_140.content; |
| 86 |
} |
| 87 |
|