mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[d3d11] Handle subresource field in copy/move operations
Derp.
This commit is contained in:
parent
e70f9f92a6
commit
d45f5a8d79
@ -188,13 +188,14 @@ namespace dxvk {
|
|||||||
}
|
}
|
||||||
|
|
||||||
D3D11ResourceRef(D3D11ResourceRef&& other)
|
D3D11ResourceRef(D3D11ResourceRef&& other)
|
||||||
: m_type(other.m_type), m_resource(other.m_resource) {
|
: m_type(other.m_type), m_subresource(other.m_subresource), m_resource(other.m_resource) {
|
||||||
other.m_type = D3D11_RESOURCE_DIMENSION_UNKNOWN;
|
other.m_type = D3D11_RESOURCE_DIMENSION_UNKNOWN;
|
||||||
|
other.m_subresource = 0;
|
||||||
other.m_resource = nullptr;
|
other.m_resource = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
D3D11ResourceRef(const D3D11ResourceRef& other)
|
D3D11ResourceRef(const D3D11ResourceRef& other)
|
||||||
: m_type(other.m_type), m_resource(other.m_resource) {
|
: m_type(other.m_type), m_subresource(other.m_subresource), m_resource(other.m_resource) {
|
||||||
if (m_resource)
|
if (m_resource)
|
||||||
ResourceAddRefPrivate(m_resource, m_type);
|
ResourceAddRefPrivate(m_resource, m_type);
|
||||||
}
|
}
|
||||||
@ -209,9 +210,11 @@ namespace dxvk {
|
|||||||
ResourceReleasePrivate(m_resource, m_type);
|
ResourceReleasePrivate(m_resource, m_type);
|
||||||
|
|
||||||
m_type = other.m_type;
|
m_type = other.m_type;
|
||||||
|
m_subresource = other.m_subresource;
|
||||||
m_resource = other.m_resource;
|
m_resource = other.m_resource;
|
||||||
|
|
||||||
other.m_type = D3D11_RESOURCE_DIMENSION_UNKNOWN;
|
other.m_type = D3D11_RESOURCE_DIMENSION_UNKNOWN;
|
||||||
|
other.m_subresource = 0;
|
||||||
other.m_resource = nullptr;
|
other.m_resource = nullptr;
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
@ -224,6 +227,7 @@ namespace dxvk {
|
|||||||
ResourceReleasePrivate(m_resource, m_type);
|
ResourceReleasePrivate(m_resource, m_type);
|
||||||
|
|
||||||
m_type = other.m_type;
|
m_type = other.m_type;
|
||||||
|
m_subresource = other.m_subresource;
|
||||||
m_resource = other.m_resource;
|
m_resource = other.m_resource;
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user