IDMLDevice::Evict method (directml.h)

Evicts one or more pageable objects from GPU memory. Also see IDMLDevice::MakeResident.

Syntax

HRESULT Evict(
       UINT         count,
  [in] IDMLPageable * const *ppObjects
);

Parameters

count

Type: UINT

This parameter determines the number of elements in the array passed in the ppObjects parameter.

[in] ppObjects

Type: IDMLPageable*

A pointer to a constant array of IDMLPageable pointers containing the pageable objects to evict from GPU memory.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Target Platform Windows
Header directml.h
Library DirectML.lib
DLL DirectML.dll

See also

IDMLDevice

IDMLDevice::MakeResident