[]
        
(Showing Draft Content)

C1.Util.DX.DXGI.Device.QueryResourceResidency

QueryResourceResidency Method

QueryResourceResidency(params ComObject[])

Gets the residency status of an array of resources.

Declaration
public Residency[] QueryResourceResidency(params ComObject[] comObjects)
Parameters
Type Name Description
ComObject[] comObjects

An array of Resource interfaces.

Returns
Type Description
Residency[]

Returns an array of Residency flags. Each element describes the residency status for corresponding element in the ppResources argument array.

Remarks

The information returned by the pResidencyStatus argument array describes the residency status at the time that the QueryResourceResidency method was called. Note that the residency status will constantly change. If you call the QueryResourceResidency method during a device removed state, the pResidencyStatus argument will return the DXGI_RESIDENCY_EVICTED_TO_DISK flag. Note??This method should not be called every frame as it incurs a non-trivial amount of overhead.

QueryResourceResidency(ComObject[], Residency[], int)

HRESULT IDXGIDevice::QueryResourceResidency([In, Buffer] const IUnknown** ppResources,[Out, Buffer] DXGI_RESIDENCY* pResidencyStatus,[In] unsigned int NumResources)

Declaration
public void QueryResourceResidency(ComObject[] resourcesOut, Residency[] residencyStatusRef, int numResources)
Parameters
Type Name Description
ComObject[] resourcesOut
Residency[] residencyStatusRef
int numResources

QueryResourceResidency(ComArray<ComObject>, Residency[], int)

HRESULT IDXGIDevice::QueryResourceResidency([In, Buffer] const IUnknown** ppResources,[Out, Buffer] DXGI_RESIDENCY* pResidencyStatus,[In] unsigned int NumResources)

Declaration
public void QueryResourceResidency(ComArray<ComObject> resourcesOut, Residency[] residencyStatusRef, int numResources)
Parameters
Type Name Description
ComArray<ComObject> resourcesOut
Residency[] residencyStatusRef
int numResources