Skip to content

Latest commit

 

History

History
77 lines (58 loc) · 3.05 KB

ns-d3dukmdt-d3dddi_evict_flags.md

File metadata and controls

77 lines (58 loc) · 3.05 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NS:d3dukmdt.D3DDDI_EVICT_FLAGS
D3DDDI_EVICT_FLAGS (d3dukmdt.h)
D3DDDI_EVICT_FLAGS specifies the eviction behavior.
display\d3dddi_evict_flags.htm
display
05/10/2018
D3DDDI_EVICT_FLAGS structure
D3DDDI_EVICT_FLAGS, D3DDDI_EVICT_FLAGS structure [Display Devices], d3dukmdt/D3DDDI_EVICT_FLAGS, display.d3dddi_evict_flags
d3dukmdt.h
D3dumddi.h, D3dkmddi.h
Windows
Windows 10
Windows Server 2016
Windows
D3DDDI_EVICT_FLAGS
D3DDDI_EVICT_FLAGS
d3dukmdt/D3DDDI_EVICT_FLAGS
APIRef
kbSyntax
HeaderDef
d3dukmdt.h
D3DDDI_EVICT_FLAGS

D3DDDI_EVICT_FLAGS structure

-description

D3DDDI_EVICT_FLAGS specifies the eviction behavior.

-struct-fields

-field EvictOnlyIfNecessary

When set, this indicates that the resource may be used again in the near future and instructs the OS to try to defer actual resource eviction from the GPU until low memory conditions. When not set, this instructs the OS that the resource will no longer be used and that the eviction should be performed at the earliest opportunity.

Note  This flag is ignored if the residency reference count does not hit zero because the allocation will not be evicted until that time.
 

-field NotWrittenTo

When set, this indicates that the resource has not been written to by the GPU since the time it was made resident. This allows the OS to optimize the eviction process by discarding the allocation contents instead of paging it out to the system memory. The driver must opt-in to use this flag. By default, the value is zero and the allocation is considered dirty during eviction. Unlike EvictOnlyIfNecessary, the driver does not need to defer setting this flag until the last call to Evict (pfnEvictCb or D3DKMTEvict), and the effects of specifying this flag take place immediately. In other words, if the driver calls MakeResident multiple times, it is valid for any one of the subsequent Evict operations to specify this flag. The driver is not expected to track this flag until the last call.

-field Reserved

This member is reserved and should be set to zero.

-field Value

The consolidated value of the flags in the structure.

-see-also

D3DKMTEvict

pfnEvictCb