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:
parent
6d0757520b
commit
19fa1c405c
@ -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;
|
||||
|
||||
};
|
||||
|
@ -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;
|
||||
|
||||
};
|
||||
|
@ -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;
|
||||
|
||||
};
|
||||
|
@ -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
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user