From 47df545fbb84e9ddcfb0621b3734c52342d42b39 Mon Sep 17 00:00:00 2001 From: Nielsbishere Date: Tue, 26 Mar 2024 02:26:57 +0100 Subject: [PATCH 1/2] Added C support for some NV_D3D12 functions --- nvapi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvapi.h b/nvapi.h index 846ca2f..c03abaf 100644 --- a/nvapi.h +++ b/nvapi.h @@ -18263,7 +18263,7 @@ NVAPI_INTERFACE NvAPI_D3D11_GetResourceGPUVirtualAddress(__in ID3D11Device* #endif //defined(__cplusplus) && defined(__d3d11_h__) -#if defined(__cplusplus) && defined(__d3d12_h__) +#if defined(__d3d12_h__) //! Flags specifying raytracing thread reordering hardware support. //! Additional flags will be added as support becomes available. //! @@ -18339,7 +18339,7 @@ NVAPI_INTERFACE NvAPI_D3D12_GetRaytracingCaps( __in size_t dataSize); #endif // defined(__cplusplus) && defined(__d3d12_h__) -#if defined(__cplusplus) && defined(__d3d12_h__) && defined(__ID3D12Device5_INTERFACE_DEFINED__) && defined(__ID3D12GraphicsCommandList4_INTERFACE_DEFINED__) +#if defined(__d3d12_h__) && defined(__ID3D12Device5_INTERFACE_DEFINED__) && defined(__ID3D12GraphicsCommandList4_INTERFACE_DEFINED__) //! Flags specifying validation behaviour for raytracing operations. //! \ingroup dx From 2c57ac708b5eaa62c382edeca024ac07c3c85858 Mon Sep 17 00:00:00 2001 From: Nielsbishere Date: Fri, 5 Apr 2024 23:05:54 +0200 Subject: [PATCH 2/2] Added support for NvAPI_D3D12_SetNvShaderExtnSlot --- nvapi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvapi.h b/nvapi.h index c03abaf..74dd923 100644 --- a/nvapi.h +++ b/nvapi.h @@ -11080,7 +11080,7 @@ NVAPI_INTERFACE NvAPI_D3D11_SetNvShaderExtnSlot(__in IUnknown *pDev, #endif //defined (__cplusplus) && (defined(__d3d11_h__) || defined(__d3d11_1_h__)) -#if defined (__cplusplus) && defined (__d3d12_h__) +#if defined (__d3d12_h__) /////////////////////////////////////////////////////////////////////////////// //