windowscodecs: Fix interlaced PNG writing.
[wine.git] / include / dxgi1_2.idl
blob27dc34c876c54ba0cfafcd86d90d5cf52f2e8198
1 /*
2 * Copyright 2014 Jacek Caban for CodeWeavers
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.
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.
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
19 import "dxgi.idl";
21 typedef enum _DXGI_OFFER_RESOURCE_PRIORITY {
22 DXGI_OFFER_RESOURCE_PRIORITY_LOW = 1,
23 DXGI_OFFER_RESOURCE_PRIORITY_NORMAL,
24 DXGI_OFFER_RESOURCE_PRIORITY_HIGH
25 } DXGI_OFFER_RESOURCE_PRIORITY;
28 object,
29 uuid(05008617-fbfd-4051-a790-144884b4f6a9),
30 local,
31 pointer_default(unique)
33 interface IDXGIDevice2 : IDXGIDevice1
35 HRESULT OfferResources(
36 [in] UINT NumResources,
37 [in, size_is(NumResources)] IDXGIResource *const *ppResources,
38 [in] DXGI_OFFER_RESOURCE_PRIORITY Priority);
40 HRESULT ReclaimResources(
41 [in] UINT NumResources,
42 [in, size_is(NumResources)] IDXGIResource *const *ppResources,
43 [out, size_is(NumResources)] BOOL *pDiscarded);
45 HRESULT EnqueueSetEvent(
46 [in] HANDLE hEvent);