Skip to content

Commit 2230be1

Browse files
committed
Adapted to changes in Auto-Vk, which now require the syntax: stage >> sem >> value
1 parent 2d00de1 commit 2230be1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

auto_vk_toolkit/src/context_vulkan.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,14 +465,13 @@ namespace avk
465465

466466
avk::semaphore context_vulkan::record_and_submit_with_timeline_semaphore(std::vector<avk::recorded_commands_t> aRecordedCommandsAndSyncInstructions, const avk::queue& aQueue, avk::stage::pipeline_stage_flags aSrcSignalStage, uint64_t aSignalValue, uint64_t aInitialValue, vk::CommandBufferUsageFlags aUsageFlags) {
467467
auto sem = create_timeline_semaphore(aInitialValue);
468-
record_and_submit_with_timeline_semaphore(aRecordedCommandsAndSyncInstructions, aQueue, (aSrcSignalStage >> sem).to_value(aSignalValue) , aUsageFlags);
468+
record_and_submit_with_timeline_semaphore(std::move(aRecordedCommandsAndSyncInstructions), aQueue, aSrcSignalStage >> sem >> aSignalValue, aUsageFlags);
469469
return sem;
470470
}
471471

472472
void context_vulkan::record_and_submit_with_timeline_semaphore(std::vector<avk::recorded_commands_t> aRecordedCommandsAndSyncInstructions, const avk::queue& aQueue, avk::semaphore_signal_info aSignalInfo, vk::CommandBufferUsageFlags aUsageFlags) {
473473
auto& cmdPool = get_command_pool_for_single_use_command_buffers(aQueue);
474474
auto cmdBfr = cmdPool->alloc_command_buffer(aUsageFlags);
475-
476475

477476
record(std::move(aRecordedCommandsAndSyncInstructions))
478477
.into_command_buffer(cmdBfr)

0 commit comments

Comments
 (0)