1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 10:24:12 +01:00

[d3d11] Use const ref pointer for device parameter

Closes #323.
This commit is contained in:
Philip Rebohle 2018-04-28 14:17:52 +02:00
parent 1784b8c44d
commit 99813a7778
6 changed files with 14 additions and 14 deletions

View File

@ -10,8 +10,8 @@
namespace dxvk { namespace dxvk {
D3D11DeviceContext::D3D11DeviceContext( D3D11DeviceContext::D3D11DeviceContext(
D3D11Device* pParent, D3D11Device* pParent,
Rc<DxvkDevice> Device) const Rc<DxvkDevice>& Device)
: m_parent (pParent), : m_parent (pParent),
m_device (Device), m_device (Device),
m_csChunk (new DxvkCsChunk()) { m_csChunk (new DxvkCsChunk()) {

View File

@ -16,8 +16,8 @@ namespace dxvk {
public: public:
D3D11DeviceContext( D3D11DeviceContext(
D3D11Device* pParent, D3D11Device* pParent,
Rc<DxvkDevice> Device); const Rc<DxvkDevice>& Device);
~D3D11DeviceContext(); ~D3D11DeviceContext();
HRESULT STDMETHODCALLTYPE QueryInterface( HRESULT STDMETHODCALLTYPE QueryInterface(

View File

@ -3,9 +3,9 @@
namespace dxvk { namespace dxvk {
D3D11DeferredContext::D3D11DeferredContext( D3D11DeferredContext::D3D11DeferredContext(
D3D11Device* pParent, D3D11Device* pParent,
Rc<DxvkDevice> Device, const Rc<DxvkDevice>& Device,
UINT ContextFlags) UINT ContextFlags)
: D3D11DeviceContext(pParent, Device), : D3D11DeviceContext(pParent, Device),
m_contextFlags(ContextFlags), m_contextFlags(ContextFlags),
m_commandList (CreateCommandList()) { m_commandList (CreateCommandList()) {

View File

@ -24,9 +24,9 @@ namespace dxvk {
public: public:
D3D11DeferredContext( D3D11DeferredContext(
D3D11Device* pParent, D3D11Device* pParent,
Rc<DxvkDevice> Device, const Rc<DxvkDevice>& Device,
UINT ContextFlags); UINT ContextFlags);
D3D11_DEVICE_CONTEXT_TYPE STDMETHODCALLTYPE GetType() final; D3D11_DEVICE_CONTEXT_TYPE STDMETHODCALLTYPE GetType() final;

View File

@ -6,8 +6,8 @@
namespace dxvk { namespace dxvk {
D3D11ImmediateContext::D3D11ImmediateContext( D3D11ImmediateContext::D3D11ImmediateContext(
D3D11Device* pParent, D3D11Device* pParent,
Rc<DxvkDevice> Device) const Rc<DxvkDevice>& Device)
: D3D11DeviceContext(pParent, Device), : D3D11DeviceContext(pParent, Device),
m_csThread(Device->createContext()) { m_csThread(Device->createContext()) {
EmitCs([cDevice = m_device] (DxvkContext* ctx) { EmitCs([cDevice = m_device] (DxvkContext* ctx) {

View File

@ -12,8 +12,8 @@ namespace dxvk {
public: public:
D3D11ImmediateContext( D3D11ImmediateContext(
D3D11Device* pParent, D3D11Device* pParent,
Rc<DxvkDevice> Device); const Rc<DxvkDevice>& Device);
~D3D11ImmediateContext(); ~D3D11ImmediateContext();
ULONG STDMETHODCALLTYPE AddRef() final; ULONG STDMETHODCALLTYPE AddRef() final;