2024-10-30 17:36:53 -06:00
|
|
|
#ifndef HEX_H
|
|
|
|
#define HEX_H
|
|
|
|
|
|
|
|
#include "gpu.h"
|
|
|
|
|
2024-10-30 21:24:03 -06:00
|
|
|
typedef struct GPUHexContextStruct {
|
|
|
|
mat4 proj;
|
|
|
|
mat4 view;
|
|
|
|
} GPUHexContext;
|
|
|
|
|
|
|
|
typedef struct HexPushConstantStruct {
|
2024-10-30 17:36:53 -06:00
|
|
|
VkDeviceAddress context;
|
2024-10-30 21:24:03 -06:00
|
|
|
double time;
|
|
|
|
} HexPushConstant;
|
2024-10-30 17:36:53 -06:00
|
|
|
|
|
|
|
VkResult create_hex_pipeline(
|
|
|
|
VkDevice device,
|
|
|
|
VkRenderPass render_pass,
|
|
|
|
GraphicsPipeline* graphics,
|
|
|
|
ComputePipeline* compute);
|
|
|
|
|
|
|
|
#endif
|