@@ -264,7 +264,7 @@ pub fn build(b: *std.Build) !void {
264264 shaderc .addIncludePath (b .path ("libs/bimg/include" ));
265265 shaderc .addIncludePath (b .path (bgfx_path ++ "include" ));
266266 shaderc .addIncludePath (b .path (bgfx_path ++ "src" ));
267- shaderc .addIncludePath (b .path (bgfx_path ++ "3rdparty/dxsdk /include" ));
267+ shaderc .addIncludePath (b .path (bgfx_path ++ "3rdparty/directx-headers /include/directx " ));
268268 shaderc .addIncludePath (b .path (bgfx_path ++ "3rdparty/fcpp" ));
269269 shaderc .addIncludePath (b .path (bgfx_path ++ "3rdparty/glslang/glslang/Public" ));
270270 shaderc .addIncludePath (b .path (bgfx_path ++ "3rdparty/glslang/glslang/Include" ));
@@ -275,6 +275,12 @@ pub fn build(b: *std.Build) !void {
275275 shaderc .addIncludePath (b .path (bgfx_path ++ "3rdparty/spirv-tools/include" ));
276276 shaderc .addIncludePath (b .path (bgfx_path ++ "3rdparty/webgpu/include" ));
277277
278+ if (target .result .os .tag == .linux or target .result .os .tag .isDarwin ()) {
279+ shaderc .addIncludePath (b .path (bgfx_path ++ "3rdparty/d3d4linux/include" ));
280+ shaderc .addIncludePath (b .path (bgfx_path ++ "3rdparty/directx-headers/include" ));
281+ shaderc .addIncludePath (b .path (bgfx_path ++ "3rdparty/directx-headers/include/wsl/stubs" ));
282+ }
283+
278284 shaderc .addCSourceFiles (.{
279285 .files = &.{
280286 bgfx_path ++ "src/shader.cpp" ,
@@ -283,10 +289,12 @@ pub fn build(b: *std.Build) !void {
283289 bgfx_path ++ "src/vertexlayout.cpp" ,
284290 bgfx_path ++ "tools/shaderc/shaderc.cpp" ,
285291 bgfx_path ++ "tools/shaderc/shaderc_glsl.cpp" ,
292+ bgfx_path ++ "tools/shaderc/shaderc_dxil.cpp" ,
286293 bgfx_path ++ "tools/shaderc/shaderc_hlsl.cpp" ,
287294 bgfx_path ++ "tools/shaderc/shaderc_metal.cpp" ,
288295 bgfx_path ++ "tools/shaderc/shaderc_pssl.cpp" ,
289296 bgfx_path ++ "tools/shaderc/shaderc_spirv.cpp" ,
297+ bgfx_path ++ "tools/shaderc/shaderc_wgsl.cpp" ,
290298 },
291299 .flags = & cxx_options ,
292300 });
@@ -1081,4 +1089,5 @@ const spirv_opt_files = .{
10811089 spirv_opt_path ++ "source/val/validate_invalid_type.cpp" ,
10821090 spirv_opt_path ++ "source/val/validate_graph.cpp" ,
10831091 spirv_opt_path ++ "source/val/validate_logical_pointers.cpp" ,
1092+ spirv_opt_path ++ "source/val/validate_group.cpp" ,
10841093};
0 commit comments