[]
Gets the residency status of an array of resources.
public Residency[] QueryResourceResidency(params ComObject[] comObjects)
Type | Name | Description |
---|---|---|
ComObject[] | comObjects | An array of Resource interfaces. |
Type | Description |
---|---|
Residency[] | Returns an array of Residency flags. Each element describes the residency status for corresponding element in the ppResources argument array. |
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.
HRESULT IDXGIDevice::QueryResourceResidency([In, Buffer] const IUnknown** ppResources,[Out, Buffer] DXGI_RESIDENCY* pResidencyStatus,[In] unsigned int NumResources)
public void QueryResourceResidency(ComObject[] resourcesOut, Residency[] residencyStatusRef, int numResources)
Type | Name | Description |
---|---|---|
ComObject[] | resourcesOut | |
Residency[] | residencyStatusRef | |
int | numResources |
HRESULT IDXGIDevice::QueryResourceResidency([In, Buffer] const IUnknown** ppResources,[Out, Buffer] DXGI_RESIDENCY* pResidencyStatus,[In] unsigned int NumResources)
public void QueryResourceResidency(ComArray<ComObject> resourcesOut, Residency[] residencyStatusRef, int numResources)
Type | Name | Description |
---|---|---|
ComArray<ComObject> | resourcesOut | |
Residency[] | residencyStatusRef | |
int | numResources |