Skip to content

Commit e0fe7ed

Browse files
author
devsh
committed
Start work on fixing orphan GPU objects due to parent failures in CAssetConverter::reserve
TODO: make the staging cache refcounted with heterogenous (non-refcounted) lookup
1 parent bbce9f5 commit e0fe7ed

File tree

2 files changed

+170
-110
lines changed

2 files changed

+170
-110
lines changed

include/nbl/video/utilities/CAssetConverter.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1083,6 +1083,7 @@ class CAssetConverter : public core::IReferenceCounted
10831083

10841084
// we don't insert into the writeCache until conversions are successful
10851085
core::tuple_transform_t<staging_cache_t,supported_asset_types> m_stagingCaches;
1086+
10861087
// need a more explicit list of GPU objects that need device-assisted conversion
10871088
template<asset::Asset AssetType>
10881089
struct SConversionRequestBase
@@ -1141,7 +1142,7 @@ class CAssetConverter : public core::IReferenceCounted
11411142
IGPUDescriptorSet* dstSet;
11421143
uint32_t binding;
11431144
uint32_t arrayElement;
1144-
core::smart_refctd_ptr<IGPUTopLevelAccelerationStructure> tlas;
1145+
const IGPUTopLevelAccelerationStructure* tlas;
11451146
};
11461147
struct SDeferredTLASWriteHasher
11471148
{

0 commit comments

Comments
 (0)