Load bone matrices for each frame

This commit is contained in:
Camden Dixie O'Brien committed 2025-10-02 03:59:16 +01:00
1 parent 74309be52c
commit 8bd595989d
3 files changed
+13 -5

No files matched your search

+3 -1
View File
@@ -53,6 +53,7 @@ typedef struct {
VkBuffer index_buf;
VkDeviceMemory index_buf_mem;
size_t index_count;
size_t bone_count;
} gpu_ctx_t;
typedef struct {
@@ -62,6 +63,7 @@ typedef struct {
void gpu_init(gpu_ctx_t *ctx, const gpu_config_t *config, model_t model);
void gpu_cleanup(const gpu_ctx_t *ctx);
void gpu_render(const gpu_ctx_t *ctx, const mvp_t *mvp);
void gpu_render(
const gpu_ctx_t *ctx, const mvp_t *mvp, const mat4_t *bone_matrices);
#endif