diff --git a/include/QF/Vulkan/render.h b/include/QF/Vulkan/render.h index 3df588a41..94aa46a5d 100644 --- a/include/QF/Vulkan/render.h +++ b/include/QF/Vulkan/render.h @@ -381,6 +381,7 @@ typedef struct qfv_renderctx_s { typedef struct qfv_taskctx_s { struct vulkan_ctx_s *ctx; qfv_pipeline_t *pipeline; + VkCommandBuffer cmd; } qfv_taskctx_t; VkCommandBuffer QFV_GetCmdBufffer (struct vulkan_ctx_s *ctx, bool secondary); diff --git a/libs/video/renderer/vulkan/render.c b/libs/video/renderer/vulkan/render.c index c2b98814c..7c0f583ed 100644 --- a/libs/video/renderer/vulkan/render.c +++ b/libs/video/renderer/vulkan/render.c @@ -99,6 +99,7 @@ run_pipeline (qfv_pipeline_t *pipeline, VkCommandBuffer cmd, vulkan_ctx_t *ctx) qfv_taskctx_t taskctx = { .ctx = ctx, .pipeline = pipeline, + .cmd = cmd, }; run_tasks (pipeline->task_count, pipeline->tasks, &taskctx); @@ -187,6 +188,7 @@ run_compute_pipeline (qfv_pipeline_t *pipeline, VkCommandBuffer cmd, qfv_taskctx_t taskctx = { .ctx = ctx, .pipeline = pipeline, + .cmd = cmd, }; run_tasks (pipeline->task_count, pipeline->tasks, &taskctx);