dxgi1_5.idl 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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_4.idl";
  19. typedef enum DXGI_OUTDUPL_FLAG
  20. {
  21. DXGI_OUTDUPL_COMPOSITED_UI_CAPTURE_ONLY = 0x1,
  22. } DXGI_OUTDUPL_FLAG;
  23. typedef enum DXGI_HDR_METADATA_TYPE
  24. {
  25. DXGI_HDR_METADATA_TYPE_NONE = 0x0,
  26. DXGI_HDR_METADATA_TYPE_HDR10 = 0x1,
  27. DXGI_HDR_METADATA_TYPE_HDR10PLUS = 0x2,
  28. } DXGI_HDR_METADATA_TYPE;
  29. typedef enum _DXGI_OFFER_RESOURCE_FLAGS
  30. {
  31. DXGI_OFFER_RESOURCE_FLAG_ALLOW_DECOMMIT = 0x1,
  32. } DXGI_OFFER_RESOURCE_FLAGS;
  33. typedef enum _DXGI_RECLAIM_RESOURCE_RESULTS
  34. {
  35. DXGI_RECLAIM_RESOURCE_RESULT_OK = 0x0,
  36. DXGI_RECLAIM_RESOURCE_RESULT_DISCARDED = 0x1,
  37. DXGI_RECLAIM_RESOURCE_RESULT_NOT_COMMITTED = 0x2,
  38. } DXGI_RECLAIM_RESOURCE_RESULTS;
  39. typedef enum DXGI_FEATURE
  40. {
  41. DXGI_FEATURE_PRESENT_ALLOW_TEARING = 0x0,
  42. } DXGI_FEATURE;
  43. typedef struct DXGI_HDR_METADATA_HDR10
  44. {
  45. UINT16 RedPrimary[2];
  46. UINT16 GreenPrimary[2];
  47. UINT16 BluePrimary[2];
  48. UINT16 WhitePoint[2];
  49. UINT MaxMasteringLuminance;
  50. UINT MinMasteringLuminance;
  51. UINT16 MaxContentLightLevel;
  52. UINT16 MaxFrameAverageLightLevel;
  53. } DXGI_HDR_METADATA_HDR10;
  54. typedef struct DXGI_HDR_METADATA_HDR10PLUS
  55. {
  56. BYTE Data[72];
  57. } DXGI_HDR_METADATA_HDR10PLUS;
  58. [
  59. object,
  60. uuid(80a07424-ab52-42eb-833c-0c42fd282d98),
  61. local,
  62. pointer_default(unique)
  63. ]
  64. interface IDXGIOutput5 : IDXGIOutput4
  65. {
  66. HRESULT DuplicateOutput1(
  67. [in] IUnknown *device,
  68. [in] UINT flags,
  69. [in] UINT format_count,
  70. [in] const DXGI_FORMAT *formats,
  71. [out] IDXGIOutputDuplication **duplication
  72. );
  73. }
  74. [
  75. object,
  76. uuid(3d585d5a-bd4a-489e-b1f4-3dbcb6452ffb),
  77. local,
  78. pointer_default(unique)
  79. ]
  80. interface IDXGISwapChain4 : IDXGISwapChain3
  81. {
  82. HRESULT SetHDRMetaData(
  83. [in] DXGI_HDR_METADATA_TYPE type,
  84. [in] UINT size,
  85. [in] void *metadata
  86. );
  87. }
  88. [
  89. object,
  90. uuid(95b4f95f-d8da-4ca4-9ee6-3b76d5968a10),
  91. local,
  92. pointer_default(unique)
  93. ]
  94. interface IDXGIDevice4 : IDXGIDevice3
  95. {
  96. HRESULT OfferResources1(
  97. [in] UINT resource_count,
  98. [in] IDXGIResource *const *resources,
  99. [in] DXGI_OFFER_RESOURCE_PRIORITY priority,
  100. [in] UINT flags
  101. );
  102. HRESULT ReclaimResources1(
  103. [in] UINT resource_count,
  104. [in] IDXGIResource *const *resources,
  105. [out] DXGI_RECLAIM_RESOURCE_RESULTS *results
  106. );
  107. }
  108. [
  109. object,
  110. uuid(7632e1f5-ee65-4dca-87fd-84cd75f8838d),
  111. local,
  112. pointer_default(unique)
  113. ]
  114. interface IDXGIFactory5 : IDXGIFactory4
  115. {
  116. HRESULT CheckFeatureSupport(
  117. DXGI_FEATURE feature,
  118. [in, out] void *support_data,
  119. UINT support_data_size
  120. );
  121. }