-
Notifications
You must be signed in to change notification settings - Fork 167
Closed
Description
- Seems there is no way to override the
g_pRawAllocatorfrom Archiver dll?
I am getting crash on RefCountedObject dtor now as RenderStateCacheImpl was created with DefaultRawAllocator from Archiver dll (ms crt malloc in this case) instead of mi_malloc override.
A potential fix would be adding virtual SetRawAlloctor(IMemoryAllocator *) = 0; as a new interface in Archiver Factory.
- I was playing with
StringDataBlobImpl:
char shaderName[256]{};
//snprintf...
auto ShaderName = Diligent::StringDataBlobImpl::Create(shaderName);
however I found no MemoryAllocator override for StringDataBlobImpl, I have to go with DataBlobImpl as a workaround:
char shaderName[256]{};
//snprintf...
auto ShaderName = Diligent::DataBlobImpl::Create(&DiligentRenderer()->GetDefaultAllocator(), strlen(shaderName), shaderName);\

Metadata
Metadata
Assignees
Labels
No labels