mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-06-02 11:57:09 +02:00
[vk] Fix identation
Signed-off-by: Caio Oliveira <caiooliveirafarias0@gmail.com>
This commit is contained in:
parent
e0c49d1035
commit
1f09d9053b
1 changed files with 8 additions and 13 deletions
|
|
@ -518,19 +518,14 @@ void GraphicsPipeline::ConfigureDraw(const RescalingPushConstant& rescaling,
|
||||||
// allocate/bind descriptor set and only update if needed
|
// allocate/bind descriptor set and only update if needed
|
||||||
VkDescriptorSet descriptor_set = VK_NULL_HANDLE;
|
VkDescriptorSet descriptor_set = VK_NULL_HANDLE;
|
||||||
bool needs_update = false;
|
bool needs_update = false;
|
||||||
if (descriptor_set_layout) {
|
if (descriptor_set_layout && !uses_push_descriptor) {
|
||||||
if (uses_push_descriptor) {
|
descriptor_set = descriptor_allocator.CommitWithTracking(current_frame_number, descriptor_data);
|
||||||
// handled below via push descriptor
|
needs_update = descriptor_allocator.NeedsUpdate(descriptor_set, current_frame_number, descriptor_data);
|
||||||
} else {
|
if (needs_update) {
|
||||||
descriptor_set = descriptor_allocator.CommitWithTracking(current_frame_number, descriptor_data);
|
const vk::Device& dev{device.GetLogical()};
|
||||||
needs_update = descriptor_allocator.NeedsUpdate(descriptor_set, current_frame_number, descriptor_data);
|
dev.UpdateDescriptorSet(descriptor_set, *descriptor_update_template, descriptor_data);
|
||||||
if (needs_update) {
|
|
||||||
const vk::Device& dev{device.GetLogical()};
|
|
||||||
dev.UpdateDescriptorSet(descriptor_set, *descriptor_update_template, descriptor_data);
|
|
||||||
} else {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
scheduler.Record([this, descriptor_data, descriptor_set, bind_pipeline, rescaling_data = rescaling.Data(),
|
scheduler.Record([this, descriptor_data, descriptor_set, bind_pipeline, rescaling_data = rescaling.Data(),
|
||||||
is_rescaling, update_rescaling,
|
is_rescaling, update_rescaling,
|
||||||
|
|
@ -558,7 +553,7 @@ void GraphicsPipeline::ConfigureDraw(const RescalingPushConstant& rescaling,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (uses_push_descriptor) {
|
if (uses_push_descriptor) {
|
||||||
cmdbuf.PushDescriptorSetWithTemplateKHR(*descriptor_update_template, *pipeline_layout, 0, descriptor_data);
|
cmdbuf.PushDescriptorSetWithTemplateKHR(*descriptor_update_template, *pipeline_layout, 0, descriptor_data);
|
||||||
} else {
|
} else {
|
||||||
cmdbuf.BindDescriptorSets(VK_PIPELINE_BIND_POINT_GRAPHICS, *pipeline_layout, 0,
|
cmdbuf.BindDescriptorSets(VK_PIPELINE_BIND_POINT_GRAPHICS, *pipeline_layout, 0,
|
||||||
descriptor_set, nullptr);
|
descriptor_set, nullptr);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue