Space Sim
Toggle main menu visibility
Loading...
Searching...
No Matches
src
mesh
chunk_zero.comp
Go to the documentation of this file.
1
#version 440
2
3
layout
(local_size_x = 1) in;
4
5
#define LODMAX 4
6
#define MAX_CHUNKS 1000
7
struct
VertexInfo
8
{
9
int
vcnt
;
10
uint
uid
;
11
uint
pad0
;
12
uint
pad1
;
13
};
14
layout
(std430, binding=12) buffer
ChunkData
{
15
float
lod_dist[3];
16
uint
emitted_chunks
;
17
VertexInfo
vertex_counts[];
18
};
19
20
void
main
()
21
{
22
if
(gl_GlobalInvocationID.x >= 1)
return
;
23
emitted_chunks
= 0;
24
25
}
26
27
layout
layout(local_size_x=16, local_size_y=16, local_size_z=1) in
VertexInfo::uid
uint32_t uid
Definition
types.h:487
VertexInfo::vcnt
int vcnt
Definition
types.h:486
VertexInfo::pad1
uint32_t pad1
Definition
types.h:489
VertexInfo::pad0
uint32_t pad0
Definition
types.h:488
VertexInfo
Definition
types.h:485
main
int main(int argc, char *argv[])
Definition
main.c:1726
emitted_chunks
int emitted_chunks
Definition
mesh.c:879
ChunkData
Definition
types.h:320
Generated by
1.18.0