d3d11_4.idl 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. /*
  2. * Copyright 2017 Ihsan Akmal
  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 "dxgi1_5.idl";
  21. import "d3dcommon.idl";
  22. import "d3d11_3.idl";
  23. typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS4
  24. {
  25. BOOL ExtendedNV12SharedTextureSupported;
  26. } D3D11_FEATURE_DATA_D3D11_OPTIONS4;
  27. [
  28. uuid(8992ab71-02e6-4b8d-ba48-b056dcda42c4),
  29. object,
  30. local,
  31. pointer_default(unique)
  32. ]
  33. interface ID3D11Device4 : ID3D11Device3
  34. {
  35. HRESULT RegisterDeviceRemovedEvent(
  36. [in] HANDLE event,
  37. [out] DWORD *cookie
  38. );
  39. void UnregisterDeviceRemoved(
  40. [in] DWORD cookie
  41. );
  42. }
  43. [
  44. uuid(8ffde202-a0e7-45df-9e01-e837801b5ea0),
  45. object,
  46. local,
  47. pointer_default(unique)
  48. ]
  49. interface ID3D11Device5 : ID3D11Device4
  50. {
  51. HRESULT OpenSharedFence(
  52. [in] HANDLE handle,
  53. [in] REFIID iid,
  54. [out] void **fence
  55. );
  56. HRESULT CreateFence(
  57. [in] UINT64 initial_value,
  58. [in] D3D11_FENCE_FLAG flags,
  59. [in] REFIID iid,
  60. [out] void **fence
  61. );
  62. }
  63. [
  64. uuid(9b7e4e00-342c-4106-a19f-4f2704f689f0),
  65. object,
  66. local,
  67. pointer_default(unique)
  68. ]
  69. interface ID3D11Multithread : IUnknown
  70. {
  71. void Enter();
  72. void Leave();
  73. BOOL SetMultithreadProtected(
  74. [in] BOOL enable
  75. );
  76. BOOL GetMultithreadProtected();
  77. }
  78. [
  79. uuid(c4e7374c-6243-4d1b-ae87-52b4f740e261),
  80. object,
  81. local,
  82. pointer_default(unique)
  83. ]
  84. interface ID3D11VideoContext2 : ID3D11VideoContext1
  85. {
  86. void VideoProcessorSetOutputHDRMetaData(
  87. [in] ID3D11VideoProcessor *processor,
  88. [in] DXGI_HDR_METADATA_TYPE type,
  89. [in] UINT size,
  90. [in] const void *meta_data
  91. );
  92. void VideoProcessorGetOutputHDRMetaData(
  93. [in] ID3D11VideoProcessor *processor,
  94. [out] DXGI_HDR_METADATA_TYPE *type,
  95. [in] UINT size,
  96. [out] void *meta_data
  97. );
  98. void VideoProcessorSetStreamHDRMetaData(
  99. [in] ID3D11VideoProcessor *processor,
  100. [in] UINT stream_index,
  101. [in] DXGI_HDR_METADATA_TYPE type,
  102. [in] UINT size,
  103. [in] const void *meta_data
  104. );
  105. void VideoProcessorGetStreamHDRMetaData(
  106. [in] ID3D11VideoProcessor *processor,
  107. [in] UINT stream_index,
  108. [out] DXGI_HDR_METADATA_TYPE *type,
  109. [in] UINT size,
  110. [out] void *meta_data
  111. );
  112. }