From c4588cb91d503d140a0cfdbc33254d51ac007eee Mon Sep 17 00:00:00 2001 From: 0xpablo Date: Sun, 16 Nov 2025 19:55:05 +0100 Subject: [PATCH] Add `DirectX.Direct2D` module to winsdk_um.modulemap --- stdlib/public/Platform/winsdk_um.modulemap | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/stdlib/public/Platform/winsdk_um.modulemap b/stdlib/public/Platform/winsdk_um.modulemap index a7e12f0a08390..bc9e9ff4939ce 100644 --- a/stdlib/public/Platform/winsdk_um.modulemap +++ b/stdlib/public/Platform/winsdk_um.modulemap @@ -195,6 +195,17 @@ module WinSDK [system] { link "dxgi.lib" } + module Direct2D { + header "d2d1.h" + header "d2d1_1.h" + header "d2d1_2.h" + header "d2d1_3.h" + export * + + link "d2d1.lib" + link "dxgi.lib" + } + // FIXME(compnerd) DXGI is part of the Direct3D interfaces currently; we // should split it out, but because it is part of the D3D11 interfaces, this // separate module is meant to augment the uncovered portions only.