| 1 |
/* |
| 2 |
* Copyright (C) 2023 Mohamad Al-Jaf |
| 3 |
* |
| 4 |
* This library is free software; you can redistribute it and/or |
| 5 |
* modify it under the terms of the GNU Lesser General Public |
| 6 |
* License as published by the Free Software Foundation; either |
| 7 |
* version 2.1 of the License, or (at your option) any later version. |
| 8 |
* |
| 9 |
* This library is distributed in the hope that it will be useful, |
| 10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 |
* Lesser General Public License for more details. |
| 13 |
* |
| 14 |
* You should have received a copy of the GNU Lesser General Public |
| 15 |
* License along with this library; if not, write to the Free Software |
| 16 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA |
| 17 |
*/ |
| 18 |
|
| 19 |
#ifdef __WIDL__ |
| 20 |
#pragma winrt ns_prefix |
| 21 |
#endif |
| 22 |
|
| 23 |
import "inspectable.idl"; |
| 24 |
import "asyncinfo.idl"; |
| 25 |
import "eventtoken.idl"; |
| 26 |
import "windowscontracts.idl"; |
| 27 |
import "windows.foundation.idl"; |
| 28 |
import "windows.graphics.directx.idl"; |
| 29 |
|
| 30 |
namespace Windows.Graphics.DirectX.Direct3D11 { |
| 31 |
typedef struct Direct3DMultisampleDescription Direct3DMultisampleDescription; |
| 32 |
typedef struct Direct3DSurfaceDescription Direct3DSurfaceDescription; |
| 33 |
|
| 34 |
interface IDirect3DDevice; |
| 35 |
interface IDirect3DSurface; |
| 36 |
|
| 37 |
declare { |
| 38 |
interface Windows.Foundation.Collections.IIterable<Windows.Graphics.DirectX.Direct3D11.IDirect3DSurface *>; |
| 39 |
interface Windows.Foundation.Collections.IIterator<Windows.Graphics.DirectX.Direct3D11.IDirect3DSurface *>; |
| 40 |
interface Windows.Foundation.Collections.IVectorView<Windows.Graphics.DirectX.Direct3D11.IDirect3DSurface *>; |
| 41 |
} |
| 42 |
|
| 43 |
[ |
| 44 |
contract(Windows.Foundation.UniversalApiContract, 1.0) |
| 45 |
] |
| 46 |
struct Direct3DMultisampleDescription |
| 47 |
{ |
| 48 |
INT32 Count; |
| 49 |
INT32 Quality; |
| 50 |
}; |
| 51 |
|
| 52 |
[ |
| 53 |
contract(Windows.Foundation.UniversalApiContract, 1.0) |
| 54 |
] |
| 55 |
struct Direct3DSurfaceDescription |
| 56 |
{ |
| 57 |
INT32 Width; |
| 58 |
INT32 Height; |
| 59 |
Windows.Graphics.DirectX.DirectXPixelFormat Format; |
| 60 |
Windows.Graphics.DirectX.Direct3D11.Direct3DMultisampleDescription MultisampleDescription; |
| 61 |
}; |
| 62 |
|
| 63 |
[ |
| 64 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 65 |
uuid(a37624ab-8d5f-4650-9d3e-9eae3d9bc670) |
| 66 |
] |
| 67 |
interface IDirect3DDevice : IInspectable |
| 68 |
requires Windows.Foundation.IClosable |
| 69 |
{ |
| 70 |
HRESULT Trim(); |
| 71 |
} |
| 72 |
|
| 73 |
[ |
| 74 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 75 |
uuid(0bf4a146-13c1-4694-bee3-7abf15eaf586) |
| 76 |
] |
| 77 |
interface IDirect3DSurface : IInspectable |
| 78 |
requires Windows.Foundation.IClosable |
| 79 |
{ |
| 80 |
[propget] HRESULT Description( |
| 81 |
[out, retval] Windows.Graphics.DirectX.Direct3D11.Direct3DSurfaceDescription *value); |
| 82 |
} |
| 83 |
} |