Skip to content

Commit 3ac2a89

Browse files
author
devsh
committed
added renderdoc detection to IAPIConnection
1 parent afdee05 commit 3ac2a89

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

include/nbl/video/IAPIConnection.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ class NBL_API2 IAPIConnection : public core::IReferenceCounted
5959

6060
std::span<IPhysicalDevice* const> getPhysicalDevices() const;
6161

62-
const SFeatures& getEnabledFeatures() const { return m_enabledFeatures; };
62+
const SFeatures& getEnabledFeatures() const { return m_enabledFeatures; }
63+
64+
const bool isRunningInRenderdoc() const { return m_rdoc_api; }
6365

6466
protected:
6567
IAPIConnection(const SFeatures& enabledFeatures);

include/nbl/video/utilities/SIntendedSubmitInfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@ struct SIntendedSubmitInfo final : core::Uncopyable
210210
return IQueue::RESULT::OTHER_ERROR;
211211

212212
// First, submit the already buffered up work
213-
recordingCmdBuf->cmdbuf->end();
213+
if (!recordingCmdBuf->cmdbuf->end())
214+
return IQueue::RESULT::OTHER_ERROR;
214215

215216
// we only signal the scratch semaphore when overflowing
216217
const auto submit = popSubmit(recordingCmdBuf->cmdbuf,signalSemaphores);

0 commit comments

Comments
 (0)