mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-07 16:54:14 +01:00
[util] Add convenience method to return public/private references
This commit is contained in:
parent
af8e1a3d47
commit
21a2ce045f
@ -122,6 +122,9 @@ namespace dxvk {
|
|||||||
return m_ptr;
|
return m_ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Com<T, true> pubRef() const { return m_ptr; }
|
||||||
|
Com<T, false> prvRef() const { return m_ptr; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
T* m_ptr = nullptr;
|
T* m_ptr = nullptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user