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
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");
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);
vkCmdPushConstants(
g_vk.cmd,
compute ? g_vk.comp_cmd : g_vk.cmd,
pipeline.layout,
stage,
0,