We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 606ea55 commit 070d518Copy full SHA for 070d518
include/nbl/video/IDeviceMemoryBacked.h
@@ -44,6 +44,17 @@ class IDeviceMemoryBacked : public IBackendObject
44
{
45
return queueFamilyIndexCount>1u;
46
}
47
+
48
+ //! Note that this will return false for the special foreign and external families
49
+ inline bool canBeUsedByQueueFamily(const uint32_t family) const
50
+ {
51
+ if (!isConcurrentSharing())
52
+ return true;
53
+ for (uint8_t f=0; f<queueFamilyIndexCount; f++)
54
+ if (queueFamilyIndices[f]==family)
55
56
+ return false;
57
+ }
58
};
59
// TODO: change name later on, but right now too much code to refactor
60
inline const SCreationParams& getCachedCreationParams() const {return m_cachedCreationParams;}
0 commit comments