This commit is contained in:
Matthew 2026-06-14 12:04:47 +10:00
parent 23753dcc45
commit f1584919fc

View File

@ -1326,7 +1326,7 @@ CreateBufferView(Descriptor* desc)
} }
void void
PushConstants(T)(Pipeline pipeline_id, T* pc) PushConstants(T)(Pipeline pipeline_id, T* pc, bool compute = false)
{ {
assert(pipeline_id > 0, "PushConstants pipeline_id == 0"); assert(pipeline_id > 0, "PushConstants pipeline_id == 0");
PipelineHandles* pipeline = g_vk.pipeline_handles.ptr + pipeline_id; PipelineHandles* pipeline = g_vk.pipeline_handles.ptr + pipeline_id;
@ -1335,7 +1335,7 @@ PushConstants(T)(Pipeline pipeline_id, T* pc)
VK_SHADER_STAGE_COMPUTE_BIT); VK_SHADER_STAGE_COMPUTE_BIT);
vkCmdPushConstants( vkCmdPushConstants(
g_vk.cmd, compute ? g_vk.comp_cmd : g_vk.cmd,
pipeline.layout, pipeline.layout,
stage, stage,
0, 0,