Home -> IResourceArray -> DataPersistenceFlags

Description

The DataPersistenceFlags enumeration describes how long existing resource array contents must remain valid. These flags are supplied through SetDataPersistenceFlags before allocation.

Members

Name Description
Public Enum PersistAlways
Requires existing resource contents to remain valid until explicitly overwritten or the resource is destroyed.
Public Enum InvalidateExistingDataOnWrite
Allows the renderer to discard previous contents when new data is written, which can reduce synchronization or copy costs when old contents are no longer needed.
Public Enum InvalidateExistingDataAfterDrawComplete
Allows the renderer to discard resource contents after draw work that uses the data has completed, which can reduce memory pressure for transient data.

See also