d3d11on12.idl 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * Copyright 2018 Józef Kucia
  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. import "oaidl.idl";
  19. import "ocidl.idl";
  20. import "d3d11.idl";
  21. import "d3d12.idl";
  22. typedef struct D3D11_RESOURCE_FLAGS
  23. {
  24. UINT BindFlags;
  25. UINT MiscFlags;
  26. UINT CPUAccessFlags;
  27. UINT StructureByteStride;
  28. } D3D11_RESOURCE_FLAGS;
  29. [
  30. uuid(85611e73-70a9-490e-9614-a9e302777904),
  31. object,
  32. local,
  33. pointer_default(unique)
  34. ]
  35. interface ID3D11On12Device : IUnknown
  36. {
  37. HRESULT CreateWrappedResource(IUnknown *d3d12_resource,
  38. const D3D11_RESOURCE_FLAGS *flags,
  39. D3D12_RESOURCE_STATES input_state,
  40. D3D12_RESOURCE_STATES output_state,
  41. REFIID iid, void **d3d11_resource);
  42. void ReleaseWrappedResources(ID3D11Resource * const *resources, UINT count);
  43. void AcquireWrappedResources(ID3D11Resource * const *resources, UINT count);
  44. }
  45. [local] HRESULT __stdcall D3D11On12CreateDevice(IUnknown *device, UINT flags,
  46. const D3D_FEATURE_LEVEL *feature_levels, UINT feature_level_count,
  47. IUnknown * const *queues, UINT queue_count, UINT node_mask,
  48. ID3D11Device **d3d11_device, ID3D11DeviceContext **d3d11_immediate_context,
  49. D3D_FEATURE_LEVEL *obtained_feature_level);
  50. typedef HRESULT (__stdcall *PFN_D3D11ON12_CREATE_DEVICE)(IUnknown *device, UINT flags,
  51. const D3D_FEATURE_LEVEL *feature_levels, UINT feature_level_count,
  52. IUnknown * const *queues, UINT queue_count, UINT node_mask,
  53. ID3D11Device **d3d11_device, ID3D11DeviceContext **d3d11_immediate_context,
  54. D3D_FEATURE_LEVEL *obtained_feature_level);