| 1 | 
 /*** Autogenerated by WIDL 6.4 from include/d3d11on12.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 __d3d11on12_h__ | 
 
 
 
 
 
 | 17 | 
 #define __d3d11on12_h__ | 
 
 
 
 
 
 | 18 | 
  | 
 
 
 
 
 
 | 19 | 
 /* Forward declarations */ | 
 
 
 
 
 
 | 20 | 
  | 
 
 
 
 
 
 | 21 | 
 #ifndef __ID3D11On12Device_FWD_DEFINED__ | 
 
 
 
 
 
 | 22 | 
 #define __ID3D11On12Device_FWD_DEFINED__ | 
 
 
 
 
 
 | 23 | 
 typedef interface ID3D11On12Device ID3D11On12Device; | 
 
 
 
 
 
 | 24 | 
 #ifdef __cplusplus | 
 
 
 
 
 
 | 25 | 
 interface ID3D11On12Device; | 
 
 
 
 
 
 | 26 | 
 #endif /* __cplusplus */ | 
 
 
 
 
 
 | 27 | 
 #endif | 
 
 
 
 
 
 | 28 | 
  | 
 
 
 
 
 
 | 29 | 
 /* Headers for imported files */ | 
 
 
 
 
 
 | 30 | 
  | 
 
 
 
 
 
 | 31 | 
 #include <oaidl.h> | 
 
 
 
 
 
 | 32 | 
 #include <ocidl.h> | 
 
 
 
 
 
 | 33 | 
 #include <d3d11.h> | 
 
 
 
 
 
 | 34 | 
 #include <d3d12.h> | 
 
 
 
 
 
 | 35 | 
  | 
 
 
 
 
 
 | 36 | 
 #ifdef __cplusplus | 
 
 
 
 
 
 | 37 | 
 extern "C" { | 
 
 
 
 
 
 | 38 | 
 #endif | 
 
 
 
 
 
 | 39 | 
  | 
 
 
 
 
 
 | 40 | 
 typedef struct D3D11_RESOURCE_FLAGS { | 
 
 
 
 
 
 | 41 | 
     UINT BindFlags; | 
 
 
 
 
 
 | 42 | 
     UINT MiscFlags; | 
 
 
 
 
 
 | 43 | 
     UINT CPUAccessFlags; | 
 
 
 
 
 
 | 44 | 
     UINT StructureByteStride; | 
 
 
 
 
 
 | 45 | 
 } D3D11_RESOURCE_FLAGS; | 
 
 
 
 
 
 | 46 | 
 /***************************************************************************** | 
 
 
 
 
 
 | 47 | 
  * ID3D11On12Device interface | 
 
 
 
 
 
 | 48 | 
  */ | 
 
 
 
 
 
 | 49 | 
 #ifndef __ID3D11On12Device_INTERFACE_DEFINED__ | 
 
 
 
 
 
 | 50 | 
 #define __ID3D11On12Device_INTERFACE_DEFINED__ | 
 
 
 
 
 
 | 51 | 
  | 
 
 
 
 
 
 | 52 | 
 DEFINE_GUID(IID_ID3D11On12Device, 0x85611e73, 0x70a9, 0x490e, 0x96,0x14, 0xa9,0xe3,0x02,0x77,0x79,0x04); | 
 
 
 
 
 
 | 53 | 
 #if defined(__cplusplus) && !defined(CINTERFACE) | 
 
 
 
 
 
 | 54 | 
 MIDL_INTERFACE("85611e73-70a9-490e-9614-a9e302777904") | 
 
 
 
 
 
 | 55 | 
 ID3D11On12Device : public IUnknown | 
 
 
 
 
 
 | 56 | 
 { | 
 
 
 
 
 
 | 57 | 
     virtual HRESULT STDMETHODCALLTYPE CreateWrappedResource( | 
 
 
 
 
 
 | 58 | 
         IUnknown *d3d12_resource, | 
 
 
 
 
 
 | 59 | 
         const D3D11_RESOURCE_FLAGS *flags, | 
 
 
 
 
 
 | 60 | 
         D3D12_RESOURCE_STATES input_state, | 
 
 
 
 
 
 | 61 | 
         D3D12_RESOURCE_STATES output_state, | 
 
 
 
 
 
 | 62 | 
         REFIID iid, | 
 
 
 
 
 
 | 63 | 
         void **d3d11_resource) = 0; | 
 
 
 
 
 
 | 64 | 
  | 
 
 
 
 
 
 | 65 | 
     virtual void STDMETHODCALLTYPE ReleaseWrappedResources( | 
 
 
 
 
 
 | 66 | 
         ID3D11Resource *const *resources, | 
 
 
 
 
 
 | 67 | 
         UINT count) = 0; | 
 
 
 
 
 
 | 68 | 
  | 
 
 
 
 
 
 | 69 | 
     virtual void STDMETHODCALLTYPE AcquireWrappedResources( | 
 
 
 
 
 
 | 70 | 
         ID3D11Resource *const *resources, | 
 
 
 
 
 
 | 71 | 
         UINT count) = 0; | 
 
 
 
 
 
 | 72 | 
  | 
 
 
 
 
 
 | 73 | 
 }; | 
 
 
 
 
 
 | 74 | 
 #ifdef __CRT_UUID_DECL | 
 
 
 
 
 
 | 75 | 
 __CRT_UUID_DECL(ID3D11On12Device, 0x85611e73, 0x70a9, 0x490e, 0x96,0x14, 0xa9,0xe3,0x02,0x77,0x79,0x04) | 
 
 
 
 
 
 | 76 | 
 #endif | 
 
 
 
 
 
 | 77 | 
 #else | 
 
 
 
 
 
 | 78 | 
 typedef struct ID3D11On12DeviceVtbl { | 
 
 
 
 
 
 | 79 | 
     BEGIN_INTERFACE | 
 
 
 
 
 
 | 80 | 
  | 
 
 
 
 
 
 | 81 | 
     /*** IUnknown methods ***/ | 
 
 
 
 
 
 | 82 | 
     HRESULT (STDMETHODCALLTYPE *QueryInterface)( | 
 
 
 
 
 
 | 83 | 
         ID3D11On12Device *This, | 
 
 
 
 
 
 | 84 | 
         REFIID riid, | 
 
 
 
 
 
 | 85 | 
         void **ppvObject); | 
 
 
 
 
 
 | 86 | 
  | 
 
 
 
 
 
 | 87 | 
     ULONG (STDMETHODCALLTYPE *AddRef)( | 
 
 
 
 
 
 | 88 | 
         ID3D11On12Device *This); | 
 
 
 
 
 
 | 89 | 
  | 
 
 
 
 
 
 | 90 | 
     ULONG (STDMETHODCALLTYPE *Release)( | 
 
 
 
 
 
 | 91 | 
         ID3D11On12Device *This); | 
 
 
 
 
 
 | 92 | 
  | 
 
 
 
 
 
 | 93 | 
     /*** ID3D11On12Device methods ***/ | 
 
 
 
 
 
 | 94 | 
     HRESULT (STDMETHODCALLTYPE *CreateWrappedResource)( | 
 
 
 
 
 
 | 95 | 
         ID3D11On12Device *This, | 
 
 
 
 
 
 | 96 | 
         IUnknown *d3d12_resource, | 
 
 
 
 
 
 | 97 | 
         const D3D11_RESOURCE_FLAGS *flags, | 
 
 
 
 
 
 | 98 | 
         D3D12_RESOURCE_STATES input_state, | 
 
 
 
 
 
 | 99 | 
         D3D12_RESOURCE_STATES output_state, | 
 
 
 
 
 
 | 100 | 
         REFIID iid, | 
 
 
 
 
 
 | 101 | 
         void **d3d11_resource); | 
 
 
 
 
 
 | 102 | 
  | 
 
 
 
 
 
 | 103 | 
     void (STDMETHODCALLTYPE *ReleaseWrappedResources)( | 
 
 
 
 
 
 | 104 | 
         ID3D11On12Device *This, | 
 
 
 
 
 
 | 105 | 
         ID3D11Resource *const *resources, | 
 
 
 
 
 
 | 106 | 
         UINT count); | 
 
 
 
 
 
 | 107 | 
  | 
 
 
 
 
 
 | 108 | 
     void (STDMETHODCALLTYPE *AcquireWrappedResources)( | 
 
 
 
 
 
 | 109 | 
         ID3D11On12Device *This, | 
 
 
 
 
 
 | 110 | 
         ID3D11Resource *const *resources, | 
 
 
 
 
 
 | 111 | 
         UINT count); | 
 
 
 
 
 
 | 112 | 
  | 
 
 
 
 
 
 | 113 | 
     END_INTERFACE | 
 
 
 
 
 
 | 114 | 
 } ID3D11On12DeviceVtbl; | 
 
 
 
 
 
 | 115 | 
  | 
 
 
 
 
 
 | 116 | 
 interface ID3D11On12Device { | 
 
 
 
 
 
 | 117 | 
     CONST_VTBL ID3D11On12DeviceVtbl* lpVtbl; | 
 
 
 
 
 
 | 118 | 
 }; | 
 
 
 
 
 
 | 119 | 
  | 
 
 
 
 
 
 | 120 | 
 #ifdef COBJMACROS | 
 
 
 
 
 
 | 121 | 
 #ifndef WIDL_C_INLINE_WRAPPERS | 
 
 
 
 
 
 | 122 | 
 /*** IUnknown methods ***/ | 
 
 
 
 
 
 | 123 | 
 #define ID3D11On12Device_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) | 
 
 
 
 
 
 | 124 | 
 #define ID3D11On12Device_AddRef(This) (This)->lpVtbl->AddRef(This) | 
 
 
 
 
 
 | 125 | 
 #define ID3D11On12Device_Release(This) (This)->lpVtbl->Release(This) | 
 
 
 
 
 
 | 126 | 
 /*** ID3D11On12Device methods ***/ | 
 
 
 
 
 
 | 127 | 
 #define ID3D11On12Device_CreateWrappedResource(This,d3d12_resource,flags,input_state,output_state,iid,d3d11_resource) (This)->lpVtbl->CreateWrappedResource(This,d3d12_resource,flags,input_state,output_state,iid,d3d11_resource) | 
 
 
 
 
 
 | 128 | 
 #define ID3D11On12Device_ReleaseWrappedResources(This,resources,count) (This)->lpVtbl->ReleaseWrappedResources(This,resources,count) | 
 
 
 
 
 
 | 129 | 
 #define ID3D11On12Device_AcquireWrappedResources(This,resources,count) (This)->lpVtbl->AcquireWrappedResources(This,resources,count) | 
 
 
 
 
 
 | 130 | 
 #else | 
 
 
 
 
 
 | 131 | 
 /*** IUnknown methods ***/ | 
 
 
 
 
 
 | 132 | 
 static FORCEINLINE HRESULT ID3D11On12Device_QueryInterface(ID3D11On12Device* This,REFIID riid,void **ppvObject) { | 
 
 
 
 
 
 | 133 | 
     return This->lpVtbl->QueryInterface(This,riid,ppvObject); | 
 
 
 
 
 
 | 134 | 
 } | 
 
 
 
 
 
 | 135 | 
 static FORCEINLINE ULONG ID3D11On12Device_AddRef(ID3D11On12Device* This) { | 
 
 
 
 
 
 | 136 | 
     return This->lpVtbl->AddRef(This); | 
 
 
 
 
 
 | 137 | 
 } | 
 
 
 
 
 
 | 138 | 
 static FORCEINLINE ULONG ID3D11On12Device_Release(ID3D11On12Device* This) { | 
 
 
 
 
 
 | 139 | 
     return This->lpVtbl->Release(This); | 
 
 
 
 
 
 | 140 | 
 } | 
 
 
 
 
 
 | 141 | 
 /*** ID3D11On12Device methods ***/ | 
 
 
 
 
 
 | 142 | 
 static FORCEINLINE HRESULT ID3D11On12Device_CreateWrappedResource(ID3D11On12Device* This,IUnknown *d3d12_resource,const D3D11_RESOURCE_FLAGS *flags,D3D12_RESOURCE_STATES input_state,D3D12_RESOURCE_STATES output_state,REFIID iid,void **d3d11_resource) { | 
 
 
 
 
 
 | 143 | 
     return This->lpVtbl->CreateWrappedResource(This,d3d12_resource,flags,input_state,output_state,iid,d3d11_resource); | 
 
 
 
 
 
 | 144 | 
 } | 
 
 
 
 
 
 | 145 | 
 static FORCEINLINE void ID3D11On12Device_ReleaseWrappedResources(ID3D11On12Device* This,ID3D11Resource *const *resources,UINT count) { | 
 
 
 
 
 
 | 146 | 
     This->lpVtbl->ReleaseWrappedResources(This,resources,count); | 
 
 
 
 
 
 | 147 | 
 } | 
 
 
 
 
 
 | 148 | 
 static FORCEINLINE void ID3D11On12Device_AcquireWrappedResources(ID3D11On12Device* This,ID3D11Resource *const *resources,UINT count) { | 
 
 
 
 
 
 | 149 | 
     This->lpVtbl->AcquireWrappedResources(This,resources,count); | 
 
 
 
 
 
 | 150 | 
 } | 
 
 
 
 
 
 | 151 | 
 #endif | 
 
 
 
 
 
 | 152 | 
 #endif | 
 
 
 
 
 
 | 153 | 
  | 
 
 
 
 
 
 | 154 | 
 #endif | 
 
 
 
 
 
 | 155 | 
  | 
 
 
 
 
 
 | 156 | 
  | 
 
 
 
 
 
 | 157 | 
 #endif  /* __ID3D11On12Device_INTERFACE_DEFINED__ */ | 
 
 
 
 
 
 | 158 | 
  | 
 
 
 
 
 
 | 159 | 
 HRESULT __stdcall  D3D11On12CreateDevice(IUnknown *device,UINT flags,const D3D_FEATURE_LEVEL *feature_levels,UINT feature_level_count,IUnknown *const *queues,UINT queue_count,UINT node_mask,ID3D11Device **d3d11_device,ID3D11DeviceContext **d3d11_immediate_context,D3D_FEATURE_LEVEL *obtained_feature_level); | 
 
 
 
 
 
 | 160 | 
  | 
 
 
 
 
 
 | 161 | 
 typedef HRESULT (__stdcall *PFN_D3D11ON12_CREATE_DEVICE)(IUnknown *device,UINT flags,const D3D_FEATURE_LEVEL *feature_levels,UINT feature_level_count,IUnknown *const *queues,UINT queue_count,UINT node_mask,ID3D11Device **d3d11_device,ID3D11DeviceContext **d3d11_immediate_context,D3D_FEATURE_LEVEL *obtained_feature_level); | 
 
 
 
 
 
 | 162 | 
 /* Begin additional prototypes for all interfaces */ | 
 
 
 
 
 
 | 163 | 
  | 
 
 
 
 
 
 | 164 | 
  | 
 
 
 
 
 
 | 165 | 
 /* End additional prototypes */ | 
 
 
 
 
 
 | 166 | 
  | 
 
 
 
 
 
 | 167 | 
 #ifdef __cplusplus | 
 
 
 
 
 
 | 168 | 
 } | 
 
 
 
 
 
 | 169 | 
 #endif | 
 
 
 
 
 
 | 170 | 
  | 
 
 
 
 
 
 | 171 | 
 #endif /* __d3d11on12_h__ */ |