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