Revert "fix"

This reverts commit f1584919fc40e609606c43ab1d23d6372fb4afde.
This commit is contained in:
Matthew 2026-06-14 14:14:13 +10:00
parent f1584919fc
commit b0202cfcea

View File

@ -1326,7 +1326,7 @@ CreateBufferView(Descriptor* desc)
} }
void void
PushConstants(T)(Pipeline pipeline_id, T* pc, bool compute = false) PushConstants(T)(Pipeline pipeline_id, T* pc)
{ {
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, bool compute = false)
VK_SHADER_STAGE_COMPUTE_BIT); VK_SHADER_STAGE_COMPUTE_BIT);
vkCmdPushConstants( vkCmdPushConstants(
compute ? g_vk.comp_cmd : g_vk.cmd, g_vk.cmd,
pipeline.layout, pipeline.layout,
stage, stage,
0, 0,