1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-30 04:24:11 +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 {
D3D11DeviceContext::D3D11DeviceContext(
D3D11Device* pParent,
Rc<DxvkDevice> Device)
D3D11Device* pParent,
const Rc<DxvkDevice>& Device)
: m_parent (pParent),
m_device (Device),
m_csChunk (new DxvkCsChunk()) {

View File

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

View File

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

View File

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

View File

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

View File

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