Skip to content

Commit bbe3d4f

Browse files
authored
Merge pull request #35576 from compnerd/hlsl
Platform: add HLSL compiler to the WinSDK modulemap
2 parents 0f47bd3 + 997cb0f commit bbe3d4f

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

stdlib/public/Platform/winsdk.modulemap

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,6 @@ module WinSDK [system] {
165165
header "d3d11_2.h"
166166
header "d3d11_3.h"
167167
header "d3d11_4.h"
168-
169-
header "../shared/dxgi1_6.h"
170-
171168
export *
172169

173170
link "d3d11.lib"
@@ -182,6 +179,23 @@ module WinSDK [system] {
182179
link "dxgi.lib"
183180
}
184181

182+
// FIXME(compnerd) DXGI is part of the Direct3D interfaces currently; we
183+
// should split it out, but because it is part of the D3D11 interfaces, this
184+
// separate module is meant to augment the uncovered portions only.
185+
module _DXGI {
186+
header "../shared/dxgi1_6.h"
187+
export *
188+
189+
link "dxgi.lib"
190+
}
191+
192+
module D3DCompiler {
193+
header "d3dcompiler.h"
194+
export *
195+
196+
link "d3dcompiler.lib"
197+
}
198+
185199
module XAudio29 {
186200
header "xaudio2.h"
187201
header "xaudio2fx.h"

0 commit comments

Comments
 (0)