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

[d3d10] Remove unused copies of device ptr in D3D10 wrappers

Silences a warning when building with Clang, and removes duplicate unused data.
This commit is contained in:
Joshua Ashton 2019-10-05 22:42:45 +01:00 committed by Philip Rebohle
parent 6d0757520b
commit 19fa1c405c
6 changed files with 15 additions and 20 deletions

View File

@ -12,8 +12,8 @@ namespace dxvk {
public:
D3D10Buffer(D3D11Buffer* pParent, D3D10Device* pDevice)
: m_device(pDevice), m_d3d11(pParent) { }
D3D10Buffer(D3D11Buffer* pParent)
: m_d3d11(pParent) { }
HRESULT STDMETHODCALLTYPE QueryInterface(
REFIID riid,
@ -64,7 +64,6 @@ namespace dxvk {
private:
D3D10Device* m_device;
D3D11Buffer* m_d3d11;
};

View File

@ -13,8 +13,8 @@ namespace dxvk {
public:
D3D10Query(D3D11Query* pParent, D3D10Device* pDevice)
: m_device(pDevice), m_d3d11(pParent) { }
D3D10Query(D3D11Query* pParent)
: m_d3d11(pParent) { }
HRESULT STDMETHODCALLTYPE QueryInterface(
REFIID riid,
@ -61,7 +61,6 @@ namespace dxvk {
private:
D3D10Device* m_device;
D3D11Query* m_d3d11;
};

View File

@ -16,8 +16,8 @@ namespace dxvk {
public:
D3D10Texture1D(D3D11Texture1D* pParent, D3D10Device* pDevice)
: m_device(pDevice), m_d3d11(pParent) { }
D3D10Texture1D(D3D11Texture1D* pParent)
: m_d3d11(pParent) { }
HRESULT STDMETHODCALLTYPE QueryInterface(
REFIID riid,
@ -70,7 +70,6 @@ namespace dxvk {
private:
D3D10Device* m_device;
D3D11Texture1D* m_d3d11;
};
@ -82,8 +81,8 @@ namespace dxvk {
public:
D3D10Texture2D(D3D11Texture2D* pParent, D3D10Device* pDevice)
: m_device(pDevice), m_d3d11(pParent) { }
D3D10Texture2D(D3D11Texture2D* pParent)
: m_d3d11(pParent) { }
HRESULT STDMETHODCALLTYPE QueryInterface(
REFIID riid,
@ -136,7 +135,6 @@ namespace dxvk {
private:
D3D10Device* m_device;
D3D11Texture2D* m_d3d11;
};
@ -148,8 +146,8 @@ namespace dxvk {
public:
D3D10Texture3D(D3D11Texture3D* pParent, D3D10Device* pDevice)
: m_device(pDevice), m_d3d11(pParent) { }
D3D10Texture3D(D3D11Texture3D* pParent)
: m_d3d11(pParent) { }
HRESULT STDMETHODCALLTYPE QueryInterface(
REFIID riid,
@ -202,7 +200,6 @@ namespace dxvk {
private:
D3D10Device* m_device;
D3D11Texture3D* m_d3d11;
};

View File

@ -12,7 +12,7 @@ namespace dxvk {
: m_device (pDevice),
m_desc (*pDesc),
m_resource (this),
m_d3d10 (this, pDevice->GetD3D10Interface()) {
m_d3d10 (this) {
DxvkBufferCreateInfo info;
info.size = pDesc->ByteWidth;
info.usage = VK_BUFFER_USAGE_TRANSFER_SRC_BIT

View File

@ -8,7 +8,7 @@ namespace dxvk {
const D3D11_QUERY_DESC1& desc)
: m_device(device), m_desc(desc),
m_state(D3D11_VK_QUERY_INITIAL),
m_d3d10(this, device->GetD3D10Interface()) {
m_d3d10(this) {
Rc<DxvkDevice> dxvkDevice = m_device->GetDXVKDevice();
switch (m_desc.Query) {

View File

@ -788,7 +788,7 @@ namespace dxvk {
m_interop (this, &m_texture),
m_surface (this, &m_texture),
m_resource(this),
m_d3d10 (this, pDevice->GetD3D10Interface()) {
m_d3d10 (this) {
}
@ -890,7 +890,7 @@ namespace dxvk {
m_interop (this, &m_texture),
m_surface (this, &m_texture),
m_resource(this),
m_d3d10 (this, pDevice->GetD3D10Interface()) {
m_d3d10 (this) {
}
@ -1009,7 +1009,7 @@ namespace dxvk {
: m_texture (pDevice, pDesc, D3D11_RESOURCE_DIMENSION_TEXTURE3D),
m_interop (this, &m_texture),
m_resource(this),
m_d3d10 (this, pDevice->GetD3D10Interface()) {
m_d3d10 (this) {
}