xref: /aosp_15_r20/external/mesa3d/src/gallium/frontends/nine/swapchain9ex.h (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1*61046927SAndroid Build Coastguard Worker /*
2*61046927SAndroid Build Coastguard Worker  * Copyright 2011 Joakim Sindholt <[email protected]>
3*61046927SAndroid Build Coastguard Worker  * SPDX-License-Identifier: MIT
4*61046927SAndroid Build Coastguard Worker  */
5*61046927SAndroid Build Coastguard Worker 
6*61046927SAndroid Build Coastguard Worker #ifndef _NINE_SWAPCHAIN9EX_H_
7*61046927SAndroid Build Coastguard Worker #define _NINE_SWAPCHAIN9EX_H_
8*61046927SAndroid Build Coastguard Worker 
9*61046927SAndroid Build Coastguard Worker #include "swapchain9.h"
10*61046927SAndroid Build Coastguard Worker 
11*61046927SAndroid Build Coastguard Worker struct NineSwapChain9Ex
12*61046927SAndroid Build Coastguard Worker {
13*61046927SAndroid Build Coastguard Worker     struct NineSwapChain9 base;
14*61046927SAndroid Build Coastguard Worker };
15*61046927SAndroid Build Coastguard Worker static inline struct NineSwapChain9Ex *
NineSwapChain9Ex(void * data)16*61046927SAndroid Build Coastguard Worker NineSwapChain9Ex( void *data )
17*61046927SAndroid Build Coastguard Worker {
18*61046927SAndroid Build Coastguard Worker     return (struct NineSwapChain9Ex *)data;
19*61046927SAndroid Build Coastguard Worker }
20*61046927SAndroid Build Coastguard Worker 
21*61046927SAndroid Build Coastguard Worker HRESULT
22*61046927SAndroid Build Coastguard Worker NineSwapChain9Ex_new( struct NineDevice9 *pDevice,
23*61046927SAndroid Build Coastguard Worker                       BOOL implicit,
24*61046927SAndroid Build Coastguard Worker                       ID3DPresent *pPresent,
25*61046927SAndroid Build Coastguard Worker                       D3DPRESENT_PARAMETERS *pPresentationParameters,
26*61046927SAndroid Build Coastguard Worker                       struct d3dadapter9_context *pCTX,
27*61046927SAndroid Build Coastguard Worker                       HWND hFocusWindow,
28*61046927SAndroid Build Coastguard Worker                       D3DDISPLAYMODEEX *mode,
29*61046927SAndroid Build Coastguard Worker                       struct NineSwapChain9Ex **ppOut );
30*61046927SAndroid Build Coastguard Worker 
31*61046927SAndroid Build Coastguard Worker HRESULT NINE_WINAPI
32*61046927SAndroid Build Coastguard Worker NineSwapChain9Ex_GetLastPresentCount( struct NineSwapChain9Ex *This,
33*61046927SAndroid Build Coastguard Worker                                       UINT *pLastPresentCount );
34*61046927SAndroid Build Coastguard Worker 
35*61046927SAndroid Build Coastguard Worker HRESULT NINE_WINAPI
36*61046927SAndroid Build Coastguard Worker NineSwapChain9Ex_GetPresentStats( struct NineSwapChain9Ex *This,
37*61046927SAndroid Build Coastguard Worker                                   D3DPRESENTSTATS *pPresentationStatistics );
38*61046927SAndroid Build Coastguard Worker 
39*61046927SAndroid Build Coastguard Worker HRESULT NINE_WINAPI
40*61046927SAndroid Build Coastguard Worker NineSwapChain9Ex_GetDisplayModeEx( struct NineSwapChain9Ex *This,
41*61046927SAndroid Build Coastguard Worker                                    D3DDISPLAYMODEEX *pMode,
42*61046927SAndroid Build Coastguard Worker                                    D3DDISPLAYROTATION *pRotation );
43*61046927SAndroid Build Coastguard Worker 
44*61046927SAndroid Build Coastguard Worker #endif /* _NINE_SWAPCHAIN9EX_H_ */
45