TResourceArray::Discard

Called on non-UMA systems after the RHI has copied the resource data, and no longer needs the CPU's copy.

Windows
MacOS
Linux

Override Hierarchy

FResourceArrayInterface::Discard()

TResourceArray::Discard()

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/DynamicRHIResourceArray.h

Include

#include "Containers/DynamicRHIResourceArray.h"

Syntax

virtual void Discard()

Remarks

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.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback