1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-14 22:29:15 +01:00

[d3d11] Allow choosing type wrapper for D3D11DeviceChild base class

Allows subclasses to replace ComObject with something else.
This commit is contained in:
Philip Rebohle 2019-10-14 01:43:47 +02:00
parent dd9a55ecc0
commit c5c43fb2a4
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 5 additions and 2 deletions

View File

@ -6,8 +6,8 @@
namespace dxvk { namespace dxvk {
template<typename Base> template<typename Base, template<class> class Wrapper = ComObject>
class D3D11DeviceChild : public ComObject<Base> { class D3D11DeviceChild : public Wrapper<Base> {
public: public:

View File

@ -8,6 +8,9 @@
namespace dxvk { namespace dxvk {
template<typename T>
using NoWrapper = T;
/** /**
* \brief Reference-counted COM object * \brief Reference-counted COM object
* *