mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-11-30 13:24:10 +01:00
[d3d11] Implement IDXGISurface2 for ID3D11Texture1D
This commit is contained in:
parent
586d0de7bb
commit
1bc0b51262
@ -758,6 +758,7 @@ namespace dxvk {
|
||||
const D3D11_COMMON_TEXTURE_DESC* pDesc)
|
||||
: m_texture (pDevice, pDesc, D3D11_RESOURCE_DIMENSION_TEXTURE1D),
|
||||
m_interop (this, &m_texture),
|
||||
m_surface (this, &m_texture),
|
||||
m_resource(this),
|
||||
m_d3d10 (this, pDevice->GetD3D10Interface()) {
|
||||
|
||||
@ -790,6 +791,14 @@ namespace dxvk {
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
if (m_surface.isSurfaceCompatible()
|
||||
&& (riid == __uuidof(IDXGISurface)
|
||||
|| riid == __uuidof(IDXGISurface1)
|
||||
|| riid == __uuidof(IDXGISurface2))) {
|
||||
*ppvObject = ref(&m_surface);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
if (riid == __uuidof(IDXGIObject)
|
||||
|| riid == __uuidof(IDXGIDeviceSubObject)
|
||||
|| riid == __uuidof(IDXGIResource)
|
||||
|
@ -402,6 +402,7 @@ namespace dxvk {
|
||||
|
||||
D3D11CommonTexture m_texture;
|
||||
D3D11VkInteropSurface m_interop;
|
||||
D3D11DXGISurface m_surface;
|
||||
D3D11DXGIResource m_resource;
|
||||
D3D10Texture1D m_d3d10;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user