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 | |
|---|---|---|
| PersistAlways |
Requires existing resource contents to remain valid until explicitly overwritten or the resource is destroyed.
|
|
| 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.
|
|
| 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.
|