mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-15 07:29:17 +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 {
|
||||
|
||||
template<typename Base>
|
||||
class D3D11DeviceChild : public ComObject<Base> {
|
||||
template<typename Base, template<class> class Wrapper = ComObject>
|
||||
class D3D11DeviceChild : public Wrapper<Base> {
|
||||
|
||||
public:
|
||||
|
||||
|
@ -8,6 +8,9 @@
|
||||
|
||||
namespace dxvk {
|
||||
|
||||
template<typename T>
|
||||
using NoWrapper = T;
|
||||
|
||||
/**
|
||||
* \brief Reference-counted COM object
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user