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

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

View File

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

View File

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

View File

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

View File

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

View File

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