diff options
| author | Quentin LADEVIE <qladevie@wanadev.fr> | 2022-02-24 12:51:08 +0100 |
|---|---|---|
| committer | Quentin LADEVIE <qladevie@wanadev.fr> | 2022-02-24 12:51:08 +0100 |
| commit | 6d98e9d8b07d5c8aa0358780c38f29ffddfbf45f (patch) | |
| tree | 25e36cfd7a2917cb9ae14529239281dc157fd77f /src/compute-renderpass.cpp | |
| parent | b088d17e07dc68ff81830f40f4a49eda4f93dc13 (diff) | |
Make bindless descriptor a private member of vkapi
Diffstat (limited to 'src/compute-renderpass.cpp')
| -rw-r--r-- | src/compute-renderpass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
