fix
This commit is contained in:
parent
23753dcc45
commit
f1584919fc
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user