summaryrefslogtreecommitdiff
path: root/src/renderer/backends/opengl/backend_opengl.h
blob: 649bc7b000ef52f182c412018eae29c3c25c8d8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once

#ifdef CEL_REND_BACKEND_OPENGL

#include "defines.h"
#include "maths_types.h"

typedef struct gpu_swapchain {
  u32x2 dimensions;
} gpu_swapchain;
typedef struct gpu_device {} gpu_device;
typedef struct gpu_pipeline_layout {} gpu_pipeline_layout;
typedef struct gpu_pipeline {} gpu_pipeline;
typedef struct gpu_renderpass {} gpu_renderpass;
typedef struct gpu_cmd_encoder {} gpu_cmd_encoder;  // Recording
typedef struct gpu_cmd_buffer {} gpu_cmd_buffer;    // Ready for submission

typedef struct gpu_buffer {
  union {
    u32 vbo;
    u32 ibo;
  } id;
} gpu_buffer;
typedef struct gpu_texture {} gpu_texture;

#endif