@@ -39,7 +39,7 @@ class IAssetManager;
39
39
@see IReferenceCounted
40
40
*/
41
41
42
- class NBL_API2 IAsset : virtual public core::IReferenceCounted
42
+ class IAsset : virtual public core::IReferenceCounted
43
43
{
44
44
public:
45
45
enum E_MUTABILITY : uint32_t
@@ -159,7 +159,7 @@ class NBL_API2 IAsset : virtual public core::IReferenceCounted
159
159
}
160
160
161
161
// !
162
- IAsset () : isDummyObjectForCacheAliasing{false }, m_mutability{EM_MUTABLE} {}
162
+ inline IAsset () : isDummyObjectForCacheAliasing{false }, m_mutability{EM_MUTABLE} {}
163
163
164
164
// ! Returns correct size reserved associated with an Asset and its data
165
165
/* *
@@ -175,7 +175,7 @@ class NBL_API2 IAsset : virtual public core::IReferenceCounted
175
175
// ! creates a copy of the asset, duplicating dependant resources up to a certain depth (default duplicate everything)
176
176
virtual core::smart_refctd_ptr<IAsset> clone (uint32_t _depth = ~0u ) const = 0;
177
177
178
- bool restoreFromDummy (IAsset* _other, uint32_t _levelsBelow = (~0u ))
178
+ inline bool restoreFromDummy (IAsset* _other, uint32_t _levelsBelow = (~0u ))
179
179
{
180
180
assert (getAssetType () == _other->getAssetType ());
181
181
@@ -187,7 +187,7 @@ class NBL_API2 IAsset : virtual public core::IReferenceCounted
187
187
return true ;
188
188
}
189
189
190
- bool willBeRestoredFrom (const IAsset* _other) const
190
+ inline bool willBeRestoredFrom (const IAsset* _other) const
191
191
{
192
192
assert (getAssetType () == _other->getAssetType ());
193
193
@@ -211,7 +211,7 @@ class NBL_API2 IAsset : virtual public core::IReferenceCounted
211
211
virtual bool canBeRestoredFrom (const IAsset* _other) const = 0;
212
212
213
213
// returns if `this` is dummy or any of its dependencies up to `_levelsBelow` levels below
214
- bool isAnyDependencyDummy (uint32_t _levelsBelow = ~0u ) const
214
+ inline bool isAnyDependencyDummy (uint32_t _levelsBelow = ~0u ) const
215
215
{
216
216
if (isADummyObjectForCache ())
217
217
return true ;
@@ -270,7 +270,7 @@ class NBL_API2 IAsset : virtual public core::IReferenceCounted
270
270
*/
271
271
virtual void convertToDummyObject (uint32_t referenceLevelsBelowToConvert=0u ) = 0;
272
272
273
- void convertToDummyObject_common (uint32_t referenceLevelsBelowToConvert)
273
+ inline void convertToDummyObject_common (uint32_t referenceLevelsBelowToConvert)
274
274
{
275
275
if (canBeConvertedToDummy ())
276
276
isDummyObjectForCacheAliasing = true ;
@@ -280,7 +280,7 @@ class NBL_API2 IAsset : virtual public core::IReferenceCounted
280
280
inline bool isInValidState () { return !isDummyObjectForCacheAliasing /* || !isCached TODO*/ ; }
281
281
282
282
// ! Pure virtual destructor to ensure no instantiation
283
- virtual ~IAsset () = 0 ;
283
+ NBL_API2 virtual ~IAsset () = 0 ;
284
284
285
285
public:
286
286
// ! To be implemented by derived classes. Returns a type of an Asset
0 commit comments