| 1 | /*** Autogenerated by WIDL 11.6 from include/mfd3d12.idl - Do not edit ***/ |
| 2 | |
| 3 | #ifdef _WIN32 |
| 4 | #ifndef __REQUIRED_RPCNDR_H_VERSION__ |
| 5 | #define __REQUIRED_RPCNDR_H_VERSION__ 475 |
| 6 | #endif |
| 7 | #include <rpc.h> |
| 8 | #include <rpcndr.h> |
| 9 | #endif |
| 10 | |
| 11 | #ifndef COM_NO_WINDOWS_H |
| 12 | #include <windows.h> |
| 13 | #include <ole2.h> |
| 14 | #endif |
| 15 | |
| 16 | #ifndef __mfd3d12_h__ |
| 17 | #define __mfd3d12_h__ |
| 18 | |
| 19 | /* Forward declarations */ |
| 20 | |
| 21 | #ifndef __IMFD3D12SynchronizationObjectCommands_FWD_DEFINED__ |
| 22 | #define __IMFD3D12SynchronizationObjectCommands_FWD_DEFINED__ |
| 23 | typedef interface IMFD3D12SynchronizationObjectCommands IMFD3D12SynchronizationObjectCommands; |
| 24 | #ifdef __cplusplus |
| 25 | interface IMFD3D12SynchronizationObjectCommands; |
| 26 | #endif /* __cplusplus */ |
| 27 | #endif |
| 28 | |
| 29 | #ifndef __IMFD3D12SynchronizationObject_FWD_DEFINED__ |
| 30 | #define __IMFD3D12SynchronizationObject_FWD_DEFINED__ |
| 31 | typedef interface IMFD3D12SynchronizationObject IMFD3D12SynchronizationObject; |
| 32 | #ifdef __cplusplus |
| 33 | interface IMFD3D12SynchronizationObject; |
| 34 | #endif /* __cplusplus */ |
| 35 | #endif |
| 36 | |
| 37 | /* Headers for imported files */ |
| 38 | |
| 39 | #include <mfidl.h> |
| 40 | #include <d3d12.h> |
| 41 | |
| 42 | #ifdef __cplusplus |
| 43 | extern "C" { |
| 44 | #endif |
| 45 | |
| 46 | #include <winapifamily.h> |
| 47 | #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) |
| 48 | /***************************************************************************** |
| 49 | * IMFD3D12SynchronizationObjectCommands interface |
| 50 | */ |
| 51 | #ifndef __IMFD3D12SynchronizationObjectCommands_INTERFACE_DEFINED__ |
| 52 | #define __IMFD3D12SynchronizationObjectCommands_INTERFACE_DEFINED__ |
| 53 | |
| 54 | DEFINE_GUID(IID_IMFD3D12SynchronizationObjectCommands, 0x09d0f835, 0x92ff, 0x4e53, 0x8e,0xfa, 0x40,0xfa,0xa5,0x51,0xf2,0x33); |
| 55 | #if defined(__cplusplus) && !defined(CINTERFACE) |
| 56 | MIDL_INTERFACE("09d0f835-92ff-4e53-8efa-40faa551f233") |
| 57 | IMFD3D12SynchronizationObjectCommands : public IUnknown |
| 58 | { |
| 59 | virtual HRESULT STDMETHODCALLTYPE EnqueueResourceReady( |
| 60 | ID3D12CommandQueue *pProducerCommandQueue) = 0; |
| 61 | |
| 62 | virtual HRESULT STDMETHODCALLTYPE EnqueueResourceReadyWait( |
| 63 | ID3D12CommandQueue *pConsumerCommandQueue) = 0; |
| 64 | |
| 65 | virtual HRESULT STDMETHODCALLTYPE SignalEventOnResourceReady( |
| 66 | HANDLE hEvent) = 0; |
| 67 | |
| 68 | virtual HRESULT STDMETHODCALLTYPE EnqueueResourceRelease( |
| 69 | ID3D12CommandQueue *pConsumerCommandQueue) = 0; |
| 70 | |
| 71 | }; |
| 72 | #ifdef __CRT_UUID_DECL |
| 73 | __CRT_UUID_DECL(IMFD3D12SynchronizationObjectCommands, 0x09d0f835, 0x92ff, 0x4e53, 0x8e,0xfa, 0x40,0xfa,0xa5,0x51,0xf2,0x33) |
| 74 | #endif |
| 75 | #else |
| 76 | typedef struct IMFD3D12SynchronizationObjectCommandsVtbl { |
| 77 | BEGIN_INTERFACE |
| 78 | |
| 79 | /*** IUnknown methods ***/ |
| 80 | HRESULT (STDMETHODCALLTYPE *QueryInterface)( |
| 81 | IMFD3D12SynchronizationObjectCommands *This, |
| 82 | REFIID riid, |
| 83 | void **ppvObject); |
| 84 | |
| 85 | ULONG (STDMETHODCALLTYPE *AddRef)( |
| 86 | IMFD3D12SynchronizationObjectCommands *This); |
| 87 | |
| 88 | ULONG (STDMETHODCALLTYPE *Release)( |
| 89 | IMFD3D12SynchronizationObjectCommands *This); |
| 90 | |
| 91 | /*** IMFD3D12SynchronizationObjectCommands methods ***/ |
| 92 | HRESULT (STDMETHODCALLTYPE *EnqueueResourceReady)( |
| 93 | IMFD3D12SynchronizationObjectCommands *This, |
| 94 | ID3D12CommandQueue *pProducerCommandQueue); |
| 95 | |
| 96 | HRESULT (STDMETHODCALLTYPE *EnqueueResourceReadyWait)( |
| 97 | IMFD3D12SynchronizationObjectCommands *This, |
| 98 | ID3D12CommandQueue *pConsumerCommandQueue); |
| 99 | |
| 100 | HRESULT (STDMETHODCALLTYPE *SignalEventOnResourceReady)( |
| 101 | IMFD3D12SynchronizationObjectCommands *This, |
| 102 | HANDLE hEvent); |
| 103 | |
| 104 | HRESULT (STDMETHODCALLTYPE *EnqueueResourceRelease)( |
| 105 | IMFD3D12SynchronizationObjectCommands *This, |
| 106 | ID3D12CommandQueue *pConsumerCommandQueue); |
| 107 | |
| 108 | END_INTERFACE |
| 109 | } IMFD3D12SynchronizationObjectCommandsVtbl; |
| 110 | |
| 111 | interface IMFD3D12SynchronizationObjectCommands { |
| 112 | CONST_VTBL IMFD3D12SynchronizationObjectCommandsVtbl* lpVtbl; |
| 113 | }; |
| 114 | |
| 115 | #ifdef COBJMACROS |
| 116 | #ifndef WIDL_C_INLINE_WRAPPERS |
| 117 | /*** IUnknown methods ***/ |
| 118 | #define IMFD3D12SynchronizationObjectCommands_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) |
| 119 | #define IMFD3D12SynchronizationObjectCommands_AddRef(This) (This)->lpVtbl->AddRef(This) |
| 120 | #define IMFD3D12SynchronizationObjectCommands_Release(This) (This)->lpVtbl->Release(This) |
| 121 | /*** IMFD3D12SynchronizationObjectCommands methods ***/ |
| 122 | #define IMFD3D12SynchronizationObjectCommands_EnqueueResourceReady(This,pProducerCommandQueue) (This)->lpVtbl->EnqueueResourceReady(This,pProducerCommandQueue) |
| 123 | #define IMFD3D12SynchronizationObjectCommands_EnqueueResourceReadyWait(This,pConsumerCommandQueue) (This)->lpVtbl->EnqueueResourceReadyWait(This,pConsumerCommandQueue) |
| 124 | #define IMFD3D12SynchronizationObjectCommands_SignalEventOnResourceReady(This,hEvent) (This)->lpVtbl->SignalEventOnResourceReady(This,hEvent) |
| 125 | #define IMFD3D12SynchronizationObjectCommands_EnqueueResourceRelease(This,pConsumerCommandQueue) (This)->lpVtbl->EnqueueResourceRelease(This,pConsumerCommandQueue) |
| 126 | #else |
| 127 | /*** IUnknown methods ***/ |
| 128 | static inline HRESULT IMFD3D12SynchronizationObjectCommands_QueryInterface(IMFD3D12SynchronizationObjectCommands* This,REFIID riid,void **ppvObject) { |
| 129 | return This->lpVtbl->QueryInterface(This,riid,ppvObject); |
| 130 | } |
| 131 | static inline ULONG IMFD3D12SynchronizationObjectCommands_AddRef(IMFD3D12SynchronizationObjectCommands* This) { |
| 132 | return This->lpVtbl->AddRef(This); |
| 133 | } |
| 134 | static inline ULONG IMFD3D12SynchronizationObjectCommands_Release(IMFD3D12SynchronizationObjectCommands* This) { |
| 135 | return This->lpVtbl->Release(This); |
| 136 | } |
| 137 | /*** IMFD3D12SynchronizationObjectCommands methods ***/ |
| 138 | static inline HRESULT IMFD3D12SynchronizationObjectCommands_EnqueueResourceReady(IMFD3D12SynchronizationObjectCommands* This,ID3D12CommandQueue *pProducerCommandQueue) { |
| 139 | return This->lpVtbl->EnqueueResourceReady(This,pProducerCommandQueue); |
| 140 | } |
| 141 | static inline HRESULT IMFD3D12SynchronizationObjectCommands_EnqueueResourceReadyWait(IMFD3D12SynchronizationObjectCommands* This,ID3D12CommandQueue *pConsumerCommandQueue) { |
| 142 | return This->lpVtbl->EnqueueResourceReadyWait(This,pConsumerCommandQueue); |
| 143 | } |
| 144 | static inline HRESULT IMFD3D12SynchronizationObjectCommands_SignalEventOnResourceReady(IMFD3D12SynchronizationObjectCommands* This,HANDLE hEvent) { |
| 145 | return This->lpVtbl->SignalEventOnResourceReady(This,hEvent); |
| 146 | } |
| 147 | static inline HRESULT IMFD3D12SynchronizationObjectCommands_EnqueueResourceRelease(IMFD3D12SynchronizationObjectCommands* This,ID3D12CommandQueue *pConsumerCommandQueue) { |
| 148 | return This->lpVtbl->EnqueueResourceRelease(This,pConsumerCommandQueue); |
| 149 | } |
| 150 | #endif |
| 151 | #endif |
| 152 | |
| 153 | #endif |
| 154 | |
| 155 | |
| 156 | #endif /* __IMFD3D12SynchronizationObjectCommands_INTERFACE_DEFINED__ */ |
| 157 | |
| 158 | /***************************************************************************** |
| 159 | * IMFD3D12SynchronizationObject interface |
| 160 | */ |
| 161 | #ifndef __IMFD3D12SynchronizationObject_INTERFACE_DEFINED__ |
| 162 | #define __IMFD3D12SynchronizationObject_INTERFACE_DEFINED__ |
| 163 | |
| 164 | DEFINE_GUID(IID_IMFD3D12SynchronizationObject, 0x802302b0, 0x82de, 0x45e1, 0xb4,0x21, 0xf1,0x9e,0xe5,0xbd,0xaf,0x23); |
| 165 | #if defined(__cplusplus) && !defined(CINTERFACE) |
| 166 | MIDL_INTERFACE("802302b0-82de-45e1-b421-f19ee5bdaf23") |
| 167 | IMFD3D12SynchronizationObject : public IUnknown |
| 168 | { |
| 169 | virtual HRESULT STDMETHODCALLTYPE SignalEventOnFinalResourceRelease( |
| 170 | HANDLE hEvent) = 0; |
| 171 | |
| 172 | virtual HRESULT STDMETHODCALLTYPE Reset( |
| 173 | ) = 0; |
| 174 | |
| 175 | }; |
| 176 | #ifdef __CRT_UUID_DECL |
| 177 | __CRT_UUID_DECL(IMFD3D12SynchronizationObject, 0x802302b0, 0x82de, 0x45e1, 0xb4,0x21, 0xf1,0x9e,0xe5,0xbd,0xaf,0x23) |
| 178 | #endif |
| 179 | #else |
| 180 | typedef struct IMFD3D12SynchronizationObjectVtbl { |
| 181 | BEGIN_INTERFACE |
| 182 | |
| 183 | /*** IUnknown methods ***/ |
| 184 | HRESULT (STDMETHODCALLTYPE *QueryInterface)( |
| 185 | IMFD3D12SynchronizationObject *This, |
| 186 | REFIID riid, |
| 187 | void **ppvObject); |
| 188 | |
| 189 | ULONG (STDMETHODCALLTYPE *AddRef)( |
| 190 | IMFD3D12SynchronizationObject *This); |
| 191 | |
| 192 | ULONG (STDMETHODCALLTYPE *Release)( |
| 193 | IMFD3D12SynchronizationObject *This); |
| 194 | |
| 195 | /*** IMFD3D12SynchronizationObject methods ***/ |
| 196 | HRESULT (STDMETHODCALLTYPE *SignalEventOnFinalResourceRelease)( |
| 197 | IMFD3D12SynchronizationObject *This, |
| 198 | HANDLE hEvent); |
| 199 | |
| 200 | HRESULT (STDMETHODCALLTYPE *Reset)( |
| 201 | IMFD3D12SynchronizationObject *This); |
| 202 | |
| 203 | END_INTERFACE |
| 204 | } IMFD3D12SynchronizationObjectVtbl; |
| 205 | |
| 206 | interface IMFD3D12SynchronizationObject { |
| 207 | CONST_VTBL IMFD3D12SynchronizationObjectVtbl* lpVtbl; |
| 208 | }; |
| 209 | |
| 210 | #ifdef COBJMACROS |
| 211 | #ifndef WIDL_C_INLINE_WRAPPERS |
| 212 | /*** IUnknown methods ***/ |
| 213 | #define IMFD3D12SynchronizationObject_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) |
| 214 | #define IMFD3D12SynchronizationObject_AddRef(This) (This)->lpVtbl->AddRef(This) |
| 215 | #define IMFD3D12SynchronizationObject_Release(This) (This)->lpVtbl->Release(This) |
| 216 | /*** IMFD3D12SynchronizationObject methods ***/ |
| 217 | #define IMFD3D12SynchronizationObject_SignalEventOnFinalResourceRelease(This,hEvent) (This)->lpVtbl->SignalEventOnFinalResourceRelease(This,hEvent) |
| 218 | #define IMFD3D12SynchronizationObject_Reset(This) (This)->lpVtbl->Reset(This) |
| 219 | #else |
| 220 | /*** IUnknown methods ***/ |
| 221 | static inline HRESULT IMFD3D12SynchronizationObject_QueryInterface(IMFD3D12SynchronizationObject* This,REFIID riid,void **ppvObject) { |
| 222 | return This->lpVtbl->QueryInterface(This,riid,ppvObject); |
| 223 | } |
| 224 | static inline ULONG IMFD3D12SynchronizationObject_AddRef(IMFD3D12SynchronizationObject* This) { |
| 225 | return This->lpVtbl->AddRef(This); |
| 226 | } |
| 227 | static inline ULONG IMFD3D12SynchronizationObject_Release(IMFD3D12SynchronizationObject* This) { |
| 228 | return This->lpVtbl->Release(This); |
| 229 | } |
| 230 | /*** IMFD3D12SynchronizationObject methods ***/ |
| 231 | static inline HRESULT IMFD3D12SynchronizationObject_SignalEventOnFinalResourceRelease(IMFD3D12SynchronizationObject* This,HANDLE hEvent) { |
| 232 | return This->lpVtbl->SignalEventOnFinalResourceRelease(This,hEvent); |
| 233 | } |
| 234 | static inline HRESULT IMFD3D12SynchronizationObject_Reset(IMFD3D12SynchronizationObject* This) { |
| 235 | return This->lpVtbl->Reset(This); |
| 236 | } |
| 237 | #endif |
| 238 | #endif |
| 239 | |
| 240 | #endif |
| 241 | |
| 242 | |
| 243 | #endif /* __IMFD3D12SynchronizationObject_INTERFACE_DEFINED__ */ |
| 244 | |
| 245 | #if NTDDI_VERSION >= NTDDI_WIN10_CO |
| 246 | HRESULT MFCreateD3D12SynchronizationObject(ID3D12Device *pDevice, REFIID riid, void **ppvSyncObject); |
| 247 | #endif /* NTDDI_WIN10_CO */ |
| 248 | typedef enum MF_MT_D3D_RESOURCE_VERSION_ENUM { |
| 249 | MF_D3D11_RESOURCE = 0, |
| 250 | MF_D3D12_RESOURCE = 1 |
| 251 | } MF_MT_D3D_RESOURCE_VERSION_ENUM; |
| 252 | EXTERN_GUID(MF_D3D12_SYNCHRONIZATION_OBJECT, 0x2a7c8d6a, 0x85a6, 0x494d, 0xa0, 0x46, 0x6, 0xea, 0x1a, 0x13, 0x8f, 0x4b); |
| 253 | EXTERN_GUID(MF_MT_D3D_RESOURCE_VERSION, 0x174f1e85, 0xfe26, 0x453d, 0xb5, 0x2e, 0x5b, 0xdd, 0x4e, 0x55, 0xb9, 0x44); |
| 254 | EXTERN_GUID(MF_MT_D3D12_CPU_READBACK, 0x28ee9fe3, 0xd481, 0x46a6, 0xb9, 0x8a, 0x7f, 0x69, 0xd5, 0x28, 0xe, 0x82); |
| 255 | EXTERN_GUID(MF_MT_D3D12_TEXTURE_LAYOUT, 0x97c85caa, 0xbeb, 0x4ee1, 0x97, 0x15, 0xf2, 0x2f, 0xad, 0x8c, 0x10, 0xf5); |
| 256 | EXTERN_GUID(MF_MT_D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET, 0xeeac2585, 0x3430, 0x498c, 0x84, 0xa2, 0x77, 0xb1, 0xbb, 0xa5, 0x70, 0xf6); |
| 257 | EXTERN_GUID(MF_MT_D3D12_RESOURCE_FLAG_ALLOW_DEPTH_STENCIL, 0xb1138dc3, 0x1d5, 0x4c14, 0x9b, 0xdc, 0xcd, 0xc9, 0x33, 0x6f, 0x55, 0xb9); |
| 258 | EXTERN_GUID(MF_MT_D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS, 0x82c85647, 0x5057, 0x4960, 0x95, 0x59, 0xf4, 0x5b, 0x8e, 0x27, 0x14, 0x27); |
| 259 | EXTERN_GUID(MF_MT_D3D12_RESOURCE_FLAG_DENY_SHADER_RESOURCE, 0xba06bfac, 0xffe3, 0x474a, 0xab, 0x55, 0x16, 0x1e, 0xe4, 0x41, 0x7a, 0x2e); |
| 260 | EXTERN_GUID(MF_MT_D3D12_RESOURCE_FLAG_ALLOW_CROSS_ADAPTER, 0xa6a1e439, 0x2f96, 0x4ab5, 0x98, 0xdc, 0xad, 0xf7, 0x49, 0x73, 0x50, 0x5d); |
| 261 | EXTERN_GUID(MF_MT_D3D12_RESOURCE_FLAG_ALLOW_SIMULTANEOUS_ACCESS, 0xa4940b2, 0xcfd6, 0x4738, 0x9d, 0x2, 0x98, 0x11, 0x37, 0x34, 0x1, 0x5a); |
| 262 | EXTERN_GUID(MF_SA_D3D12_HEAP_FLAGS, 0x496b3266, 0xd28f, 0x4f8c, 0x93, 0xa7, 0x4a, 0x59, 0x6b, 0x1a, 0x31, 0xa1); |
| 263 | EXTERN_GUID(MF_SA_D3D12_HEAP_TYPE, 0x56f26a76, 0xbbc1, 0x4ce0, 0xbb, 0x11, 0xe2, 0x23, 0x68, 0xd8, 0x74, 0xed); |
| 264 | EXTERN_GUID(MF_SA_D3D12_CLEAR_VALUE, 0x86ba9a39, 0x526, 0x495d, 0x9a, 0xb5, 0x54, 0xec, 0x9f, 0xad, 0x6f, 0xc3); |
| 265 | #endif /* WINAPI_PARTITION_APP */ |
| 266 | /* Begin additional prototypes for all interfaces */ |
| 267 | |
| 268 | |
| 269 | /* End additional prototypes */ |
| 270 | |
| 271 | #ifdef __cplusplus |
| 272 | } |
| 273 | #endif |
| 274 | |
| 275 | #endif /* __mfd3d12_h__ */ |