engine/assets/shaders/global.glsl
sergeypdev 4fd797c048 Slowly building out the rendering framework
- Ditch VMA for per frame data
- Add basic global descriptor set and all the boilerplate to manage that
- Add global uniform buffer that only has camera matrices right now
- Implement a per frame GPU memory arena, one large buffer that wraps around holding data for all frames in flight
- Get free look camera working again
2024-12-08 21:39:09 +04:00

16 lines
222 B
GLSL

#ifndef GLOBAL_GLSL
#define GLOBAL_GLSL
struct View
{
mat4 world_to_clip;
mat4 view_to_clip;
mat4 world_to_view;
};
layout(binding = 0, std430) uniform GlobalUniform {
View view;
} Global;
#endif // GLOBAL_GLSL