@@ -21,14 +21,14 @@ class ICommandPoolCache : public core::IReferenceCounted
21
21
public:
22
22
using CommandPoolAllocator = core::PoolAddressAllocatorST<uint32_t >;
23
23
24
- ICommandPoolCache (ILogicalDevice* device, const uint32_t queueFamilyIx, const IGPUCommandPool::E_CREATE_FLAGS _flags, const uint32_t capacity);
24
+ NBL_API2 ICommandPoolCache (ILogicalDevice* device, const uint32_t queueFamilyIx, const IGPUCommandPool::E_CREATE_FLAGS _flags, const uint32_t capacity);
25
25
26
26
//
27
27
inline uint32_t getCapacity () const {return m_cmdPoolAllocator.get_total_size ();}
28
28
29
29
//
30
30
constexpr static inline auto invalid_index = CommandPoolAllocator::invalid_address;
31
- IGPUCommandPool* getPool (uint32_t poolIx)
31
+ inline IGPUCommandPool* getPool (uint32_t poolIx)
32
32
{
33
33
if (poolIx<getCapacity ())
34
34
return m_cache[poolIx].get ();
@@ -71,7 +71,7 @@ class ICommandPoolCache : public core::IReferenceCounted
71
71
{
72
72
}
73
73
DeferredCommandPoolResetter (const DeferredCommandPoolResetter& other) = delete ;
74
- DeferredCommandPoolResetter (DeferredCommandPoolResetter&& other) : m_cache(nullptr ), m_poolIx(CommandPoolAllocator::invalid_address)
74
+ inline DeferredCommandPoolResetter (DeferredCommandPoolResetter&& other) : m_cache(nullptr ), m_poolIx(CommandPoolAllocator::invalid_address)
75
75
{
76
76
this ->operator =(std::forward<DeferredCommandPoolResetter>(other));
77
77
}
@@ -106,19 +106,19 @@ class ICommandPoolCache : public core::IReferenceCounted
106
106
return false ;
107
107
}
108
108
109
- void operator ()();
109
+ NBL_API2 void operator ()();
110
110
};
111
111
112
112
protected:
113
113
friend class DeferredCommandPoolResetter ;
114
- virtual ~ICommandPoolCache ()
114
+ inline virtual ~ICommandPoolCache ()
115
115
{
116
116
m_deferredResets.cullEvents (0u );
117
117
free (m_reserved);
118
118
delete[] m_cache;
119
119
}
120
120
121
- void releaseSet (const uint32_t poolIx);
121
+ NBL_API2 void releaseSet (const uint32_t poolIx);
122
122
123
123
core::smart_refctd_ptr<IGPUCommandPool>* m_cache;
124
124
void * m_reserved;
0 commit comments