From d756dd8b3f453141fae2a1af64d229255785c631 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath <[email protected]> Date: Thu, 30 Oct 2025 14:51:11 +0000 Subject: [PATCH] headers: Add definition of IDCompositionDevice4 interface
Required for https://github.com/mozilla-firefox/firefox/commit/b5f886f686b8fae03056e01409c67b6ef64cb4e2 Signed-off-by: Biswapriyo Nath <[email protected]> --- mingw-w64-headers/include/dcomp.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/mingw-w64-headers/include/dcomp.h b/mingw-w64-headers/include/dcomp.h index bc4e5e3..3ba0a4a 100644 --- a/mingw-w64-headers/include/dcomp.h +++ b/mingw-w64-headers/include/dcomp.h @@ -667,6 +667,36 @@ DECLARE_INTERFACE_IID_(IDCompositionDevice3, IDCompositionDevice2, "0987CB06-F91 __CRT_UUID_DECL(IDCompositionDevice3,0x0987cb06,0xf916,0x48bf,0x8d,0x35,0xce,0x76,0x41,0x78,0x1b,0xd9); #endif +#if (NTDDI_VERSION >= NTDDI_WIN10_NI) + +#undef INTERFACE +#define INTERFACE IDCompositionTexture +DECLARE_INTERFACE_IID_(IDCompositionTexture, IUnknown, "929BB1AA-725F-433B-ABD7-273075A835F2") +{ + STDMETHOD(SetSourceRect)(THIS_ const D2D_RECT_U &sourceRect) PURE; + STDMETHOD(SetColorSpace)(THIS_ DXGI_COLOR_SPACE_TYPE colorSpace) PURE; + STDMETHOD(SetAlphaMode)(THIS_ DXGI_ALPHA_MODE alphaMode) PURE; + STDMETHOD(GetAvailableFence)(THIS_ UINT64 *fenceValue, REFIID iid, void **availableFence) PURE; +}; + +#ifdef __CRT_UUID_DECL +__CRT_UUID_DECL(IDCompositionTexture, 0x929bb1aa, 0x725f, 0x433b, 0xab, 0xd7, 0x27, 0x30, 0x75, 0xa8, 0x35, 0xf2); +#endif + +#undef INTERFACE +#define INTERFACE IDCompositionDevice4 +DECLARE_INTERFACE_IID_(IDCompositionDevice4, IDCompositionDevice3, "85FC5CCA-2DA6-494C-86B6-4A775C049B8A") +{ + STDMETHOD(CheckCompositionTextureSupport)(THIS_ IUnknown *renderingDevice, WINBOOL *supportsCompositionTextures) PURE; + STDMETHOD(CreateCompositionTexture)(THIS_ IUnknown *d3dTexture, IDCompositionTexture **compositionTexture) PURE; +}; + +#ifdef __CRT_UUID_DECL +__CRT_UUID_DECL(IDCompositionDevice4, 0x85fc5cca, 0x2da6, 0x494c, 0x86, 0xb6, 0x4a, 0x77, 0x5c, 0x04, 0x9b, 0x8a); +#endif + +#endif /* (NTDDI_VERSION >= NTDDI_WIN10_NI) */ + #endif /* WINAPI_PARTITION_DESKTOP */ #if (_WIN32_WINNT >= 0x0A00) -- 2.51.2
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
