Home -> IndexAttribute -> DataPersistenceFlags

Description

The DataPersistenceFlags enumeration describes how long existing index attribute data must remain valid after writes or draws. The flags are supplied when an index attribute object is constructed.

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