diff options
Diffstat (limited to 'src/vulkan/pipeline.cc')
-rw-r--r-- | src/vulkan/pipeline.cc | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/vulkan/pipeline.cc b/src/vulkan/pipeline.cc index b01d636..c5cd9c5 100644 --- a/src/vulkan/pipeline.cc +++ b/src/vulkan/pipeline.cc @@ -355,6 +355,9 @@ Result Pipeline::SendDescriptorDataToDeviceIfNeeded() { } } + r = command_->SubmitAndReset(GetFenceTimeout()); + if (!r.IsSuccess()) + return r; return {}; } @@ -408,13 +411,5 @@ const char* Pipeline::GetEntryPointName(VkShaderStageFlagBits stage) const { return kDefaultEntryPointName; } -Result Pipeline::ProcessCommands() { - Result r = command_->BeginIfNotInRecording(); - if (!r.IsSuccess()) - return r; - - return command_->SubmitAndReset(GetFenceTimeout()); -} - } // namespace vulkan } // namespace amber |