From c5c43fb2a4390dbf1de9a23a8cf18f1e4ca7768c Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Mon, 14 Oct 2019 01:43:47 +0200 Subject: [PATCH] [d3d11] Allow choosing type wrapper for D3D11DeviceChild base class Allows subclasses to replace ComObject with something else. --- src/d3d11/d3d11_device_child.h | 4 ++-- src/util/com/com_object.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/d3d11/d3d11_device_child.h b/src/d3d11/d3d11_device_child.h index facb901f..9e4a8a0e 100644 --- a/src/d3d11/d3d11_device_child.h +++ b/src/d3d11/d3d11_device_child.h @@ -6,8 +6,8 @@ namespace dxvk { - template - class D3D11DeviceChild : public ComObject { + template class Wrapper = ComObject> + class D3D11DeviceChild : public Wrapper { public: diff --git a/src/util/com/com_object.h b/src/util/com/com_object.h index ab8d8b6f..674927d4 100644 --- a/src/util/com/com_object.h +++ b/src/util/com/com_object.h @@ -8,6 +8,9 @@ namespace dxvk { + template + using NoWrapper = T; + /** * \brief Reference-counted COM object *