mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 06:20:56 +00:00
dxgi: Add the IDXGISurface interface.
This commit is contained in:
parent
a304358e7b
commit
9cdbffcce4
|
@ -18,6 +18,18 @@
|
|||
|
||||
import "dxgitype.idl";
|
||||
|
||||
typedef struct DXGI_SURFACE_DESC {
|
||||
UINT Width;
|
||||
UINT Height;
|
||||
DXGI_FORMAT Format;
|
||||
DXGI_SAMPLE_DESC SampleDesc;
|
||||
} DXGI_SURFACE_DESC;
|
||||
|
||||
typedef struct DXGI_MAPPED_RECT {
|
||||
INT Pitch;
|
||||
BYTE *pBits;
|
||||
} DXGI_MAPPED_RECT;
|
||||
|
||||
[
|
||||
object,
|
||||
local,
|
||||
|
@ -57,3 +69,21 @@ interface IDXGIDeviceSubObject : IDXGIObject
|
|||
[out] void **device
|
||||
);
|
||||
}
|
||||
|
||||
[
|
||||
object,
|
||||
local,
|
||||
uuid(cafcb56c-6ac3-4889-bf47-9e23bbd260ec)
|
||||
]
|
||||
interface IDXGISurface : IDXGIDeviceSubObject
|
||||
{
|
||||
HRESULT GetDesc(
|
||||
[out] DXGI_SURFACE_DESC *desc
|
||||
);
|
||||
HRESULT Map(
|
||||
[out] DXGI_MAPPED_RECT *mapped_rect,
|
||||
[in] UINT flags
|
||||
);
|
||||
HRESULT Unmap(
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue