Load bone matrices for each frame
This commit is contained in:
1 parent
74309be52c
commit
8bd595989d
3 files changed
+13
-5
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user