From 6d98e9d8b07d5c8aa0358780c38f29ffddfbf45f Mon Sep 17 00:00:00 2001 From: Quentin LADEVIE Date: Thu, 24 Feb 2022 12:51:08 +0100 Subject: Make bindless descriptor a private member of vkapi --- src/compute-renderpass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compute-renderpass.cpp') diff --git a/src/compute-renderpass.cpp b/src/compute-renderpass.cpp index 87a2810..c680bac 100644 --- a/src/compute-renderpass.cpp +++ b/src/compute-renderpass.cpp @@ -37,7 +37,7 @@ void ComputeRenderpass::set_constant(off_t offset, Buffer* buffer) { } void ComputeRenderpass::execute(VkCommandBuffer command_buffer) { - vkCmdPushConstants(command_buffer, api.bindless_descriptor.pipeline_layout, VK_SHADER_STAGE_COMPUTE_BIT, 0, 64, (void*)&constants); + api.update_constants(command_buffer, VK_SHADER_STAGE_COMPUTE_BIT, 0, 64, (void*)&constants); for (auto& texture: input_textures) { api.image_barrier(command_buffer, VK_IMAGE_LAYOUT_GENERAL, VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, VK_ACCESS_SHADER_READ_BIT, texture->device_image); -- cgit v1.3