Skip to content

Platform: add D3D12 to modulemap #35221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 5, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions stdlib/public/Platform/winsdk.modulemap
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,35 @@ module WinSDK [system] {
}
}

module DirectX {
module Direct3D12 {
header "d3d12.h"
export *

link "d3d12.lib"
link "dxgi.lib"
}

module XAudio29 {
header "xaudio2.h"
header "xaudio2fx.h"
export *

link "xaudio2.lib"
}

// XInput 1.4 (Windows 10, XBox) is newer than the XInput 9.1.0 which was
// part of Vista.
module XInput14 {
header "Xinput.h"
export *

link "xinputuap.lib"
}

link "dxguid.lib"
}

// FIXME(compnerd) this is a hack for the HWND typedef for DbgHelp
module __DirectX {
header "directmanipulation.h"
Expand Down