aboutsummaryrefslogtreecommitdiff
path: root/src/dx/context/Device.h
diff options
context:
space:
mode:
authorMiles Macklin <[email protected]>2017-06-09 13:41:15 +1200
committerMiles Macklin <[email protected]>2017-06-09 13:41:15 +1200
commit688b5f42e9bfe498d7af7075d4d8f4429867f3a3 (patch)
tree7e0d0e7c95298f0418723abd92f61ac6e16b055e /src/dx/context/Device.h
parentUpdate README.md (diff)
downloadflex-688b5f42e9bfe498d7af7075d4d8f4429867f3a3.tar.xz
flex-688b5f42e9bfe498d7af7075d4d8f4429867f3a3.zip
1.2.0.beta.11.2.0.beta.1
Diffstat (limited to 'src/dx/context/Device.h')
-rw-r--r--src/dx/context/Device.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/dx/context/Device.h b/src/dx/context/Device.h
index c3685a9..69499ad 100644
--- a/src/dx/context/Device.h
+++ b/src/dx/context/Device.h
@@ -2,6 +2,9 @@
#include "Context.h"
+// For NvFlexErrorCallback
+#include "../../include/NvFlex.h"
+
#include <d3d11.h>
#include <d3d11_1.h>
@@ -16,17 +19,20 @@
#include <vector>
#define ENABLE_LIVE_DEVICE_OBJECTS_REPORTING 0 // Provides detailed report of D3D object reference counts
-#define USE_NVAPI_DEVICE 0 // Enable this for D3D11 SCG
+#define USE_NVAPI_DEVICE 1 // Enable this for D3D11 SCG
struct FlexDeviceDesc
{
- FlexDeviceDesc() : mDeviceNumber(-1), mDevice(nullptr), mCommandQueue(nullptr), useComputeQueue(false), enablePresent(false) {}
+ FlexDeviceDesc() : mDeviceNumber(-1), mDevice(nullptr), mComputeCommandQueue(nullptr), mRenderCommandQueue(nullptr), useComputeQueue(false), enablePresent(false) {}
virtual ~FlexDeviceDesc() {}
unsigned int mDeviceNumber; //!< Compute device number
void * mDevice; //!< pointer to existing device
- void * mCommandQueue; //!< pointer to existing command queue for DX12
+ void * mComputeCommandQueue; //!< pointer to existing command queue for DX12
+ void * mRenderCommandQueue; //!< pointer to existing command queue for DX12
bool useComputeQueue; //!< Use the compute queue instead of the graphics queue for DX12
bool enablePresent; //!< Present after each frame to that APIC and PB dump work
+
+ NvFlexErrorCallback mErrorFunc;
};
namespace NvFlex