Welcome to mirror list, hosted at ThFree Co, Russian Federation.

vkd3d_swapchain_factory.idl « include - github.com/HansKristian-Work/vkd3d-proton.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c3f755cfd74a61a000e6b24c05690ef7a8b434f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
/*
 * Copyright 2020 Joshua Ashton for Valve Software
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
 *
 */

import "vkd3d_windows.h";
import "vkd3d_dxgibase.idl";
import "vkd3d_dxgi1_5.idl";
import "vkd3d_vk_includes.h";

[
    object,
    local,
    uuid(53cb4ff0-c25a-4164-a891-0e83db0a7aac)
]
interface IWineDXGISwapChainFactory : IUnknown
{
    HRESULT CreateSwapChainForHwnd(
        [in] IDXGIFactory *pFactory,
        [in] HWND hWnd,
        [in] const DXGI_SWAP_CHAIN_DESC1 *pDesc,
        [in] const DXGI_SWAP_CHAIN_FULLSCREEN_DESC *pFullscreenDesc,
        [in] IDXGIOutput *pRestrictToOutput,
        [out] IDXGISwapChain1 **ppSwapChain
    );
}

typedef struct DXGI_VK_HDR_METADATA
{
    DXGI_HDR_METADATA_TYPE Type;
    union
    {
        DXGI_HDR_METADATA_HDR10 HDR10;
    };
} DXGI_VK_HDR_METADATA;

[
    object,
    local,
    uuid(1e7895a1-1bc3-4f9c-a670-290a4bc9581a)
]
interface IDXGIVkSurfaceFactory : IUnknown {
    VkResult CreateSurface(
        VkInstance instance,
        VkPhysicalDevice adapter,
        VkSurfaceKHR *pSurface);
};

[
    object,
    local,
    uuid(e4a9059e-b569-46ab-8de7-501bd2bc7f7a)
]
interface IDXGIVkSwapChain : IUnknown {
    HRESULT GetDesc(
            DXGI_SWAP_CHAIN_DESC1*    pDesc);

    HRESULT GetAdapter(
            REFIID                    riid,
            void**                    ppvObject);

    HRESULT GetDevice(
            REFIID                    riid,
            void**                    ppDevice);

    HRESULT GetImage(
            UINT                      BufferId,
            REFIID                    riid,
            void**                    ppBuffer);

    UINT GetImageIndex();

    UINT GetFrameLatency();

    HANDLE GetFrameLatencyEvent();

    HRESULT ChangeProperties(
      const DXGI_SWAP_CHAIN_DESC1*    pDesc,
      const UINT*                     pNodeMasks,
            IUnknown* const*          ppPresentQueues);

    HRESULT SetPresentRegion(
      const RECT*                     pRegion);

    HRESULT SetGammaControl(
            UINT                      NumControlPoints,
      const DXGI_RGB*                 pControlPoints);

    HRESULT SetFrameLatency(
            UINT                      MaxLatency);

    HRESULT Present(
            UINT                      SyncInterval,
            UINT                      PresentFlags,
      const DXGI_PRESENT_PARAMETERS*  pPresentParameters);

    UINT CheckColorSpaceSupport(
            DXGI_COLOR_SPACE_TYPE     ColorSpace);

    HRESULT SetColorSpace(
            DXGI_COLOR_SPACE_TYPE     ColorSpace);

    HRESULT SetHDRMetaData(
      const DXGI_VK_HDR_METADATA*     pMetaData);
}

[
    object,
    local,
    uuid(e7d6c3ca-23a0-4e08-9f2f-ea5231df6633)
]
interface IDXGIVkSwapChainFactory : IUnknown {
  HRESULT CreateSwapChain(
    IDXGIVkSurfaceFactory*          pSurfaceFactory,
    const DXGI_SWAP_CHAIN_DESC1*    pDesc,
          IDXGIVkSwapChain**        ppSwapChain);
}