ID3D12Device1::SetResidencyPriority method (d3d12.h)

This method sets residency priorities of a specified list of objects.

Syntax

HRESULT SetResidencyPriority(
       UINT                           NumObjects,
  [in] ID3D12Pageable                 * const *ppObjects,
  [in] const D3D12_RESIDENCY_PRIORITY *pPriorities
);

Parameters

NumObjects

Type: UINT

Specifies the number of objects in the ppObjects and pPriorities arrays.

[in] ppObjects

Type: ID3D12Pageable*

Specifies an array, of length NumObjects, containing references to ID3D12Pageable objects.

[in] pPriorities

Type: const D3D12_RESIDENCY_PRIORITY*

Specifies an array, of length NumObjects, of D3D12_RESIDENCY_PRIORITY values for the list of objects.

Return value

Type: HRESULT

This method returns an HRESULT success or error code.

Remarks

For more information, refer to Residency.

Requirements

   
Target Platform Windows
Header d3d12.h
Library D3d12.lib
DLL D3d12.dll

See also

ID3D12Device1