dxgi1_4.idl 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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 "dxgi1_3.idl";
  19. typedef enum DXGI_SWAP_CHAIN_COLOR_SPACE_SUPPORT_FLAG
  20. {
  21. DXGI_SWAP_CHAIN_COLOR_SPACE_SUPPORT_FLAG_PRESENT = 0x1,
  22. DXGI_SWAP_CHAIN_COLOR_SPACE_SUPPORT_FLAG_OVERLAY_PRESENT = 0x2,
  23. } DXGI_SWAP_CHAIN_COLOR_SPACE_SUPPORT_FLAG;
  24. typedef enum DXGI_OVERLAY_COLOR_SPACE_SUPPORT_FLAG
  25. {
  26. DXGI_OVERLAY_COLOR_SPACE_SUPPORT_FLAG_PRESENT = 0x1,
  27. } DXGI_OVERLAY_COLOR_SPACE_SUPPORT_FLAG;
  28. typedef enum DXGI_MEMORY_SEGMENT_GROUP
  29. {
  30. DXGI_MEMORY_SEGMENT_GROUP_LOCAL = 0x0,
  31. DXGI_MEMORY_SEGMENT_GROUP_NON_LOCAL = 0x1,
  32. } DXGI_MEMORY_SEGMENT_GROUP;
  33. typedef struct DXGI_QUERY_VIDEO_MEMORY_INFO
  34. {
  35. UINT64 Budget;
  36. UINT64 CurrentUsage;
  37. UINT64 AvailableForReservation;
  38. UINT64 CurrentReservation;
  39. } DXGI_QUERY_VIDEO_MEMORY_INFO;
  40. [
  41. object,
  42. uuid(94d99bdb-f1f8-4ab0-b236-7da0170edab1),
  43. local,
  44. pointer_default(unique)
  45. ]
  46. interface IDXGISwapChain3 : IDXGISwapChain2
  47. {
  48. UINT GetCurrentBackBufferIndex();
  49. HRESULT CheckColorSpaceSupport(
  50. [in] DXGI_COLOR_SPACE_TYPE colour_space,
  51. [out] UINT *colour_space_support
  52. );
  53. HRESULT SetColorSpace1(
  54. [in] DXGI_COLOR_SPACE_TYPE colour_space
  55. );
  56. HRESULT ResizeBuffers1(
  57. [in] UINT buffer_count,
  58. [in] UINT width,
  59. [in] UINT height,
  60. [in] DXGI_FORMAT format,
  61. [in] UINT flags,
  62. [in] const UINT *node_mask,
  63. [in] IUnknown *const *present_queue
  64. );
  65. }
  66. [
  67. object,
  68. uuid(dc7dca35-2196-414d-9F53-617884032a60),
  69. local,
  70. pointer_default(unique)
  71. ]
  72. interface IDXGIOutput4 : IDXGIOutput3
  73. {
  74. HRESULT CheckOverlayColorSpaceSupport(
  75. [in] DXGI_FORMAT format,
  76. [in] DXGI_COLOR_SPACE_TYPE colour_space,
  77. [in] IUnknown *device,
  78. [out] UINT *flags
  79. );
  80. }
  81. [
  82. object,
  83. uuid(1bc6ea02-ef36-464f-bf0c-21ca39e5168a),
  84. local,
  85. pointer_default(unique)
  86. ]
  87. interface IDXGIFactory4 : IDXGIFactory3
  88. {
  89. HRESULT EnumAdapterByLuid(
  90. [in] LUID luid,
  91. [in] REFIID iid,
  92. [out] void **adapter
  93. );
  94. HRESULT EnumWarpAdapter(
  95. [in] REFIID iid,
  96. [out] void **adapter
  97. );
  98. }
  99. [
  100. object,
  101. uuid(645967a4-1392-4310-a798-8053ce3e93fd),
  102. local,
  103. pointer_default(unique)
  104. ]
  105. interface IDXGIAdapter3 : IDXGIAdapter2
  106. {
  107. HRESULT RegisterHardwareContentProtectionTeardownStatusEvent(
  108. [in] HANDLE event,
  109. [out] DWORD *cookie
  110. );
  111. void UnregisterHardwareContentProtectionTeardownStatus(
  112. [in] DWORD cookie
  113. );
  114. HRESULT QueryVideoMemoryInfo(
  115. [in] UINT node_index,
  116. [in] DXGI_MEMORY_SEGMENT_GROUP segment_group,
  117. [out] DXGI_QUERY_VIDEO_MEMORY_INFO *memory_info
  118. );
  119. HRESULT SetVideoMemoryReservation(
  120. [in] UINT node_index,
  121. [in] DXGI_MEMORY_SEGMENT_GROUP segment_group,
  122. [in] UINT64 reservation
  123. );
  124. HRESULT RegisterVideoMemoryBudgetChangeNotificationEvent(
  125. [in] HANDLE event,
  126. [out] DWORD *cookie
  127. );
  128. void UnregisterVideoMemoryBudgetChangeNotification(
  129. [in] DWORD cookie
  130. );
  131. }