1
0
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:
Philip Rebohle 2019-07-17 19:59:50 +02:00
parent af8e1a3d47
commit 21a2ce045f
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -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;