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:
parent
dd9a55ecc0
commit
c5c43fb2a4
@ -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:
|
||||||
|
|
||||||
|
@ -8,6 +8,9 @@
|
|||||||
|
|
||||||
namespace dxvk {
|
namespace dxvk {
|
||||||
|
|
||||||
|
template<typename T>
|
||||||
|
using NoWrapper = T;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Reference-counted COM object
|
* \brief Reference-counted COM object
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user