NVAPI Reference Documentation
NVIDIA - Open Source
Release 590
Thu Feb 19 2026

Functions
Nsight APIs

Functions

NVAPI_INTERFACE NvAPI_D3D11_GetResourceHandle (ID3D11Device *pDev, ID3D11Resource *pResource, NVDX_ObjectHandle *phObject)
 

Detailed Description

These APIs support the Parallel Nsight development-environment program.

Function Documentation

◆ NvAPI_D3D11_GetResourceHandle()

NVAPI_INTERFACE NvAPI_D3D11_GetResourceHandle ( ID3D11Device *  pDev,
ID3D11Resource *  pResource,
NVDX_ObjectHandle *  phObject 
)
DESCRIPTION: This function retrieves a driver handle to a DX10 resource
INPUT: pDev The device on which the resource was created
pResource The resource for which we want to retrieve a
driver handle.
SUPPORTED OS: Windows 10 and higher
OUTPUT: phObject Pointer to an NvAPI handle to be populated
on success
RETURN STATUS: NVAPI_OK if and only if phObject was populated with a valid
driver handle
error use NvAPI_GPU_GetMemoryInfoEx use NvAPI_GPU_GetMemoryInfoEx use NvAPI_GPU_GetMemoryInfoEx is not use NvAPI_DISP_GetDisplayConfig use NvAPI_DISP_GetDisplayConfig use NvAPI_DISP_GetDisplayConfig use NvAPI_DISP_GetDisplayConfig use NvAPI_DISP_GetDisplayConfig use NvAPI_DISP_GetDisplayConfig use NvAPI_DISP_GetDisplayConfig use NvAPI_DISP_GetDisplayConfig use NvAPI_DISP_GetDisplayConfig is not __inout NvU64 *pDisplaySourceHandle __inout NvU64 *pDisplaySourceHandle __inout NvU64 *pDisplaySourceHandle is not __inout NV_GET_VRR_INFO *pVrrInfo is not NvU32 *pOutputId NvU32 *pOutputId is not use NvAPI_GPU_GetLogicalGpuInfo use NvAPI_GPU_GetLogicalGpuInfo use NvAPI_GPU_GetLogicalGpuInfo is not __inout NV_MANAGED_DEDICATED_DISPLAY_INFO *pDedicatedDisplays __inout NV_MANAGED_DEDICATED_DISPLAY_INFO *pDedicatedDisplays __inout NV_MANAGED_DEDICATED_DISPLAY_INFO *pDedicatedDisplays __inout NV_MANAGED_DEDICATED_DISPLAY_INFO *pDedicatedDisplays __inout NV_MANAGED_DEDICATED_DISPLAY_INFO *pDedicatedDisplays are not __inout_ecount_part_opt *pDisplayIdCount NV_GPU_DISPLAYIDS __inout NvU32 *pDisplayIdCount __inout_ecount_part_opt *pDisplayIdCount NV_GPU_DISPLAYIDS __inout NvU32 *pDisplayIdCount is not NV_BOARD_INFO *pBoardInfo NV_BOARD_INFO *pBoardInfo is not __inout NV_GPU_INFO *pGpuInfo is not NvU32 NvU32 NvU32 NvU32 *pExtDeviceId NvU32 NvU32 NvU32 NvU32 *pExtDeviceId NvU32 NvU32 NvU32 NvU32 *pExtDeviceId NvU32 NvU32 NvU32 NvU32 *pExtDeviceId NvU32 NvU32 NvU32 NvU32 *pExtDeviceId are not __inout NV_GPU_VIRTUALIZATION_INFO *pVirtualizationInfo is not __inout NV_GPU_VR_READY *pGpuVrReadyData is not NV_SCANOUT_INTENSITY_DATA int *pbSticky NV_SCANOUT_WARPING_DATA int int *pbSticky is not __inout NvU32 *pPerfDecrInfo __inout NvU32 *pPerfDecrInfo is not NvU32 NV_GPU_THERMAL_SETTINGS *pThermalSettings NvU32 NV_GPU_THERMAL_SETTINGS *pThermalSettings is not use NvAPI_GPU_GetPstates20 use NvAPI_GPU_GetPstates20 use NvAPI_GPU_GetPstates20 is not NV_GPU_PERF_PSTATE_ID *pCurrentPstate NV_GPU_PERF_PSTATE_ID *pCurrentPstate is not __inout NV_GPU_PERF_PSTATES20_INFO *pPstatesInfo __inout NV_GPU_PERF_PSTATES20_INFO *pPstatesInfo is not NvU32 *pValue NvU32 *pValue is not use NvAPI_VIO_GetConfig use NvAPI_VIO_GetConfig use NvAPI_VIO_GetConfig use NvAPI_VIO_GetConfig use NvAPI_VIO_GetConfig use NvAPI_VIO_GetConfig use NvAPI_VIO_GetConfig is not use NvAPI_VIO_SetConfig use NvAPI_VIO_SetConfig use NvAPI_VIO_SetConfig use NvAPI_VIO_SetConfig use NvAPI_VIO_SetConfig use NvAPI_VIO_SetConfig use NvAPI_VIO_SetConfig is not __in ID3D11Resource __in NV_D3D11_SHADING_RATE_RESOURCE_VIEW_DESC __out ID3D11NvShadingRateResourceView **ppShadingRateResourceView __in ID3D11Resource __in NV_D3D11_SHADING_RATE_RESOURCE_VIEW_DESC __out ID3D11NvShadingRateResourceView **ppShadingRateResourceView is not __in ID3D12GraphicsCommandList __in NVAPI_CONVERT_COOPERATIVE_VECTOR_MATRIX_DESC const *const __in NvU32 descCount __in ID3D12GraphicsCommandList __in NVAPI_CONVERT_COOPERATIVE_VECTOR_MATRIX_DESC const *const __in NvU32 descCount is not __in NvU32 __out NvPresentBarrierClientHandle *pPresentBarrierClient __in NvU32 __out NvPresentBarrierClientHandle *pPresentBarrierClient is not __in IDXGISwapChain __out NvPresentBarrierClientHandle *pPresentBarrierClient __in IDXGISwapChain __out NvPresentBarrierClientHandle *pPresentBarrierClient is not __inout NvU32 __inout NVAPI_COOPERATIVE_VECTOR_PROPERTIES *pProperties __inout NvU32 __inout NVAPI_COOPERATIVE_VECTOR_PROPERTIES *pProperties is not __in NvU32 __out bool *pSupported __in NvU32 __out bool *pSupported is not __in NvU32 __in NvU32 __in NvU8 independentViewportMaskEnable __in NvU32 __in NvU32 __in NvU8 independentViewportMaskEnable __in NvU32 __in NvU32 __in NvU8 independentViewportMaskEnable are not IDirect3DResource9 CONST RECT IDirect3DResource9 CONST RECT D3DTEXTUREFILTERTYPE Filter IDirect3DResource9 CONST RECT IDirect3DResource9 CONST RECT D3DTEXTUREFILTERTYPE Filter IDirect3DResource9 CONST RECT IDirect3DResource9 CONST RECT D3DTEXTUREFILTERTYPE Filter are not NVDX_ObjectHandle NvU32 Flags NVDX_ObjectHandle NvU32 Flags is not NVDX_ObjectHandle NvU32 Flags NVDX_ObjectHandle NvU32 Flags is not IUnknown * pResource
Definition doxygen_log.txt:396
@ NVAPI_OK
Success. Request is completed.
Definition nvapi_lite_common.h:264