Home -> ITextureBuffer -> DataPersistenceFlags
Description
The DataPersistenceFlags enumeration describes how long existing texture contents must remain valid. These flags are supplied through SetDataPersistenceFlags before allocation.
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.
|