Skip to content

Commit 2fafa6d

Browse files
author
devsh
committed
Refactored the memory allocation from CAssetConverter::reserve so that it can be used during the conversion as well (needed for Acceleration Structure compactions)
Finalize the TLAS compaction Also: - made the allocator used during `reserve` overridable (no longer are using plain device) - remembered that Overflow Submit can break a commandbuffer, so if we want to use debug markers, we need to use them differently.
1 parent fb5bd47 commit 2fafa6d

File tree

3 files changed

+386
-331
lines changed

3 files changed

+386
-331
lines changed

examples_tests

include/nbl/video/utilities/CAssetConverter.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -891,6 +891,8 @@ class CAssetConverter : public core::IReferenceCounted
891891
asset::IShaderCompiler::CCache* readShaderCache = nullptr;
892892
asset::IShaderCompiler::CCache* writeShaderCache = nullptr;
893893
IGPUPipelineCache* pipelineCache = nullptr;
894+
// optional, defaults to the device
895+
IDeviceMemoryAllocator* allocator = nullptr;
894896
};
895897
// Split off from inputs because only assets that build on IPreHashed need uploading
896898
struct SConvertParams

0 commit comments

Comments
 (0)