Combine render functions into single gpu_render()
This commit is contained in:
1 parent
bf2e49a1eb
commit
e7f4f4b51d
3 files changed
+62
-74
No files matched your search
@@ -47,7 +47,6 @@ typedef struct {
|
||||
VkDeviceMemory staging_mem;
|
||||
void *staging_ptr;
|
||||
VkCommandPool transient_cmd_pool;
|
||||
uint32_t active_img_index;
|
||||
} gpu_ctx_t;
|
||||
|
||||
typedef struct {
|
||||
@@ -73,10 +72,9 @@ void gpu_model_load(
|
||||
const gpu_ctx_t *ctx, const model_t *model, gpu_model_t *out);
|
||||
void gpu_model_cleanup(const gpu_ctx_t *ctx, const gpu_model_t *model);
|
||||
|
||||
void gpu_render_begin(gpu_ctx_t *ctx, vp_t vp);
|
||||
void gpu_render_model(
|
||||
const gpu_ctx_t *ctx, const gpu_model_t *model,
|
||||
const mat4_t *bone_matrices, mat4_t transform);
|
||||
void gpu_render_submit(gpu_ctx_t *ctx);
|
||||
void gpu_render(
|
||||
const gpu_ctx_t *ctx, vp_t vp, size_t model_count,
|
||||
const gpu_model_t *models, const mat4_t **bone_matrices,
|
||||
const mat4_t *model_transforms);
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user