summaryrefslogtreecommitdiff
path: root/src/renderer/ral.c
blob: 25c29095701245842580ca3366577cfdf045823b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "ral.h"

/* typedef struct foo { */
/*   u32 a; */
/*   f32 b; */
/*   char c; */
/* } foo; */

/* TYPED_POOL(gpu_buffer, buffer); */

/* typedef struct buffer_handle { */
/*   u32 raw; */
/* } buffer_handle; */

/* typedef struct gpu_buffer gpu_buffer; */
TYPED_POOL(gpu_buffer, buffer);
TYPED_POOL(gpu_texture, texture);

struct resource_pools {
  buffer_pool buffers;
  texture_pool textures;
};