File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ auto IQueue::submit(const std::span<const SSubmitInfo> _submits) -> RESULT
23
23
auto * sema = semaphoreInfo.semaphore ;
24
24
if (!sema || !sema->wasCreatedBy (m_originDevice))
25
25
{
26
- logger->log (" Why on earth are you trying to submit a nullptr command buffer or to a wrong device!?" , system::ILogger::ELL_ERROR);
26
+ logger->log (" Why on earth are you trying to submit a nullptr semaphore or to a wrong device!?" , system::ILogger::ELL_ERROR);
27
27
return true ;
28
28
}
29
29
}
@@ -81,7 +81,7 @@ auto IQueue::submit(const std::span<const SSubmitInfo> _submits) -> RESULT
81
81
// mark cmdbufs as done (wrongly but conservatively wrong)
82
82
for (const auto & submit : _submits)
83
83
for (const auto & commandBuffer : submit.commandBuffers )
84
- commandBuffer.cmdbuf ->m_state = commandBuffer.cmdbuf ->isResettable () ? IGPUCommandBuffer::STATE::EXECUTABLE :IGPUCommandBuffer::STATE::INVALID ;
84
+ commandBuffer.cmdbuf ->m_state = commandBuffer.cmdbuf ->getRecordingFlags (). hasFlags (IGPUCommandBuffer::USAGE::ONE_TIME_SUBMIT_BIT) ? IGPUCommandBuffer::STATE::INVALID :IGPUCommandBuffer::STATE::EXECUTABLE ;
85
85
return result;
86
86
}
87
87
You can’t perform that action at this time.
0 commit comments