d2d1/effect: Implement offset transform object.
[wine.git] / include / d3d11on12.idl
blobfb9037cf2f3bb779d89772d846f71b9ca2788b4c
1 /*
2 * Copyright 2018 Józef Kucia
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 "oaidl.idl";
20 import "ocidl.idl";
21 import "d3d11.idl";
22 import "d3d12.idl";
24 typedef struct D3D11_RESOURCE_FLAGS
26 UINT BindFlags;
27 UINT MiscFlags;
28 UINT CPUAccessFlags;
29 UINT StructureByteStride;
30 } D3D11_RESOURCE_FLAGS;
33 uuid(85611e73-70a9-490e-9614-a9e302777904),
34 object,
35 local,
36 pointer_default(unique)
38 interface ID3D11On12Device : IUnknown
40 HRESULT CreateWrappedResource(IUnknown *d3d12_resource,
41 const D3D11_RESOURCE_FLAGS *flags,
42 D3D12_RESOURCE_STATES input_state,
43 D3D12_RESOURCE_STATES output_state,
44 REFIID iid, void **d3d11_resource);
46 void ReleaseWrappedResources(ID3D11Resource * const *resources, UINT count);
48 void AcquireWrappedResources(ID3D11Resource * const *resources, UINT count);
51 [local] HRESULT __stdcall D3D11On12CreateDevice(IUnknown *device, UINT flags,
52 const D3D_FEATURE_LEVEL *feature_levels, UINT feature_level_count,
53 IUnknown * const *queues, UINT queue_count, UINT node_mask,
54 ID3D11Device **d3d11_device, ID3D11DeviceContext **d3d11_immediate_context,
55 D3D_FEATURE_LEVEL *obtained_feature_level);
57 typedef HRESULT (__stdcall *PFN_D3D11ON12_CREATE_DEVICE)(IUnknown *device, UINT flags,
58 const D3D_FEATURE_LEVEL *feature_levels, UINT feature_level_count,
59 IUnknown * const *queues, UINT queue_count, UINT node_mask,
60 ID3D11Device **d3d11_device, ID3D11DeviceContext **d3d11_immediate_context,
61 D3D_FEATURE_LEVEL *obtained_feature_level);
64 uuid(bdb64df4-ea2f-4c70-b861-aaab1258bb5d),
65 object,
66 local,
67 pointer_default(unique)
69 interface ID3D11On12Device1 : ID3D11On12Device
71 HRESULT GetD3D12Device(REFIID iid, ID3D12Device **d3d12_device);
75 uuid(dc90f331-4740-43fa-866e-67f12cb58223),
76 object,
77 local,
78 pointer_default(unique)
80 interface ID3D11On12Device2 : ID3D11On12Device1
82 HRESULT UnwrapUnderlyingResource(ID3D11Resource *d3d11_resource,
83 ID3D12CommandQueue *d3d12_command_queue,
84 REFIID iid, void **d3d12_resource);
86 HRESULT ReturnUnderlyingResource(ID3D11Resource *d3d11_resource,
87 UINT num_sync,
88 UINT64 *signal_values,
89 ID3D12Fence **fences);