#include <iostream>
using namespace std;

const int N_FORMATS = 100;

struct pixel { float r, g, b, a; };

typedef pixel (*get_pixel_func)(void* data, int x, int y);

struct format_info_struct
{
	uint8_t channels;
	get_pixel_func get_pixel;
};

format_info_struct format_info_AoS[N_FORMATS];

struct
{
	uint8_t channels[N_FORMATS];
	get_pixel_func get_pixel[N_FORMATS];
} format_info_SoA;

int main() {
	cout << "Размер AoS: " << sizeof(format_info_AoS) << endl;
	cout << "Размер SoA: " << sizeof(format_info_SoA) << endl;
	return 0;
}