Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TResourceArray
Description
Called on non-UMA systems after the RHI has copied the resource data, and no longer needs the CPU's copy. Only discard the resource memory on clients, and if the CPU doesn't need access to it. Non-clients can't discard the data because they may need to serialize it.
Virtual Inheritance
- FResourceArrayUploadInterface::Discard → TResourceArray::Discard
| Name | Discard |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/DynamicRHIResourceArray.h |
| Include Path | #include "Containers/DynamicRHIResourceArray.h" |
virtual void Discard()