Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
D3DDDI_TRIMRESIDENCYSET_FLAGS is used with pfnTrimResidencySet to trim the residency list for a given device.
Syntax
typedef struct D3DDDI_TRIMRESIDENCYSET_FLAGS {
union {
struct {
UINT PeriodicTrim : 1;
UINT RestartPeriodicTrim : 1;
UINT TrimToBudget : 1;
UINT Reserved : 29;
};
UINT Value;
};
} D3DDDI_TRIMRESIDENCYSET_FLAGS;
Members
PeriodicTrim
When PeriodicTrim flag is set, the driver is required to performed the following operations:
- Trim all allocations that were not referenced since the previous periodic trim request by comparing the allocation last referenced fence with the last periodic trim context fence.
- Refresh the last periodic trim context fence with the last completed context fence.
RestartPeriodicTrim
May not be set together with PeriodicTrim flag. Reset the last periodic trim context fence to the last completed context fence.
TrimToBudget
Indicates that the application usage is over the memory budget and that NumBytesToTrim bytes should be trimmed to fit in the new memory budget.
Reserved
This member is reserved and should be set to zero.
Value
The consolidated value of the bit-fields in the structure.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 10 |
| Minimum supported server | Windows Server 2016 |
| Header | d3dukmdt.h (include D3dumddi.h, D3dkmddi.h) |