mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-07 16:54:14 +01:00
[d3d8] Remove superfluous methods from D3D8Surface
This commit is contained in:
parent
e2a078d534
commit
e757170211
@ -20,10 +20,6 @@ namespace dxvk {
|
|||||||
: D3D8Surface (pDevice, nullptr, std::move(pSurface)) {
|
: D3D8Surface (pDevice, nullptr, std::move(pSurface)) {
|
||||||
}
|
}
|
||||||
|
|
||||||
D3DRESOURCETYPE STDMETHODCALLTYPE D3D8Surface::GetType() {
|
|
||||||
return D3DRESOURCETYPE(GetD3D9()->GetType());
|
|
||||||
}
|
|
||||||
|
|
||||||
HRESULT STDMETHODCALLTYPE D3D8Surface::GetDesc(D3DSURFACE_DESC* pDesc) {
|
HRESULT STDMETHODCALLTYPE D3D8Surface::GetDesc(D3DSURFACE_DESC* pDesc) {
|
||||||
if (unlikely(pDesc == nullptr))
|
if (unlikely(pDesc == nullptr))
|
||||||
return D3DERR_INVALIDCALL;
|
return D3DERR_INVALIDCALL;
|
||||||
@ -48,14 +44,6 @@ namespace dxvk {
|
|||||||
return GetD3D9()->UnlockRect();
|
return GetD3D9()->UnlockRect();
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT STDMETHODCALLTYPE D3D8Surface::GetDC(HDC* phDC) {
|
|
||||||
return GetD3D9()->GetDC(phDC);
|
|
||||||
}
|
|
||||||
|
|
||||||
HRESULT STDMETHODCALLTYPE D3D8Surface::ReleaseDC(HDC hDC) {
|
|
||||||
return GetD3D9()->ReleaseDC(hDC);
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: Consider creating only one texture to
|
// TODO: Consider creating only one texture to
|
||||||
// encompass all surface levels of a texture.
|
// encompass all surface levels of a texture.
|
||||||
Com<d3d9::IDirect3DSurface9> D3D8Surface::GetBlitImage() {
|
Com<d3d9::IDirect3DSurface9> D3D8Surface::GetBlitImage() {
|
||||||
|
@ -5,8 +5,9 @@
|
|||||||
|
|
||||||
namespace dxvk {
|
namespace dxvk {
|
||||||
|
|
||||||
// TODO: all inherited methods in D3D8Surface should be final like in d9vk
|
// Note: IDirect3DSurface8 does not actually inherit from IDirect3DResource8,
|
||||||
|
// however it does expose serveral of the methods typically found part of
|
||||||
|
// IDirect3DResource8, such as Set/Get/FreePrivateData, so model it as such.
|
||||||
using D3D8SurfaceBase = D3D8Subresource<d3d9::IDirect3DSurface9, IDirect3DSurface8>;
|
using D3D8SurfaceBase = D3D8Subresource<d3d9::IDirect3DSurface9, IDirect3DSurface8>;
|
||||||
class D3D8Surface final : public D3D8SurfaceBase {
|
class D3D8Surface final : public D3D8SurfaceBase {
|
||||||
|
|
||||||
@ -21,20 +22,14 @@ namespace dxvk {
|
|||||||
D3D8Device* pDevice,
|
D3D8Device* pDevice,
|
||||||
Com<d3d9::IDirect3DSurface9>&& pSurface);
|
Com<d3d9::IDirect3DSurface9>&& pSurface);
|
||||||
|
|
||||||
D3DRESOURCETYPE STDMETHODCALLTYPE GetType();
|
HRESULT STDMETHODCALLTYPE GetDesc(D3DSURFACE_DESC* pDesc) final;
|
||||||
|
|
||||||
HRESULT STDMETHODCALLTYPE GetDesc(D3DSURFACE_DESC* pDesc);
|
|
||||||
|
|
||||||
HRESULT STDMETHODCALLTYPE LockRect(
|
HRESULT STDMETHODCALLTYPE LockRect(
|
||||||
D3DLOCKED_RECT* pLockedRect,
|
D3DLOCKED_RECT* pLockedRect,
|
||||||
CONST RECT* pRect,
|
CONST RECT* pRect,
|
||||||
DWORD Flags);
|
DWORD Flags) final;
|
||||||
|
|
||||||
HRESULT STDMETHODCALLTYPE UnlockRect();
|
HRESULT STDMETHODCALLTYPE UnlockRect() final;
|
||||||
|
|
||||||
HRESULT STDMETHODCALLTYPE GetDC(HDC* phDC);
|
|
||||||
|
|
||||||
HRESULT STDMETHODCALLTYPE ReleaseDC(HDC hDC);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Allocate or reuse an image of the same size
|
* \brief Allocate or reuse an image of the same size
|
||||||
|
Loading…
x
Reference in New Issue
Block a user