Skip to content

Commit c5bc227

Browse files
committed
Platform: add DirectX mappings
Add the module definitions for: - Direct3D v12 - XAudio 2.9 - XInput 1.4 Additionally, add the following, unusable modules: - DXCore DXCore requires C++ Support (C++11 or newer to be precise) and is not yet available until C++ interop can be made to work fully.
1 parent 949b0c0 commit c5bc227

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

stdlib/public/Platform/winsdk.modulemap

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,35 @@ module WinSDK [system] {
153153
}
154154
}
155155

156+
module DirectX {
157+
module Direct3D12 {
158+
header "d3d12.h"
159+
export *
160+
161+
link "d3d12.lib"
162+
link "dxgi.lib"
163+
}
164+
165+
module XAudio29 {
166+
header "xaudio2.h"
167+
header "xaudio2fx.h"
168+
export *
169+
170+
link "xaudio2.lib"
171+
}
172+
173+
// XInput 1.4 (Windows 10, XBox) is newer than the XInput 9.1.0 which was
174+
// part of Vista.
175+
module XInput14 {
176+
header "Xinput.h"
177+
export *
178+
179+
link "xinputuap.lib"
180+
}
181+
182+
link "dxguid.lib"
183+
}
184+
156185
// FIXME(compnerd) this is a hack for the HWND typedef for DbgHelp
157186
module __DirectX {
158187
header "directmanipulation.h"

0 commit comments

Comments
 (0)