summaryrefslogtreecommitdiff
path: root/src/systems/grid.h
blob: d8bc567a46791ca846cba3d0d26e5d37030e37b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include "ral_impl.h"
#include "ral_types.h"

typedef struct Grid_Storage {
  GPU_Renderpass* renderpass;
  GPU_Pipeline* pipeline;
  BufferHandle plane_vertices;
  BufferHandle plane_indices;
} Grid_Storage;

// --- Public API
PUB void Grid_Init(Grid_Storage* storage);
// void Grid_Shutdown(Grid_Storage* storage);
PUB void Grid_Draw();

// --- Internal
void Grid_Execute(Grid_Storage* storage);
// typedef struct GridUniforms {} GridUniforms;
// ShaderDataLayout GridUniforms_GetLayout(void* data);