1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-14 09:23:53 +01:00
dxvk/src/d3d11/d3d11_gdi.h

42 lines
708 B
C
Raw Normal View History

2019-06-15 10:28:34 +02:00
#pragma once
#include <vector>
#include "d3d11_include.h"
namespace dxvk {
class D3D11GDISurface {
public:
D3D11GDISurface(
ID3D11Resource* pResource,
UINT Subresource);
~D3D11GDISurface();
HRESULT Acquire(
BOOL Discard,
HDC* phdc);
HRESULT Release(
const RECT* pDirtyRect);
private:
ID3D11Resource* m_resource;
uint32_t m_subresource;
ID3D11Resource* m_readback;
HDC m_hdc;
HANDLE m_hbitmap;
bool m_acquired;
std::vector<uint32_t> m_data;
HRESULT CreateReadbackResource();
};
}