Skip to content

Enables using the latest Direct3D headers and libraries with Zig

Notifications You must be signed in to change notification settings

hexops/direct3d-headers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

direct3d-headers - updated DirectX headers for Zig

This repository provides some updated include/ and x86_64/ libraries for Zig/MinGW that enable the use of the latest Direct3D functionality.

Headers

We have a small fork of the win32metadata repository which contains the IDL files for Windows SDK:

https://github.com/slimsag/win32metadata

This fork has changes which enable at least the DirectX headers to be compiled with the Wine WIDL compiler. See that repository's commit history for details on what that involves.

Also see this detailed write-up: ziglang/zig#9998 (comment)

The files are then copied into this repository:

rm -rf include/*
cp -R win32metadata/generation/WinSDK/RecompiledIdlHeaders/**/d3d*.h include/
cp -R win32metadata/generation/WinSDK/RecompiledIdlHeaders/**/dx*.h include/
rm include/dxgi*
cp win32metadata/generation/WinSDK/RecompiledIdlHeaders/shared/rpcndr.h include/

rpcndr.h has a single #include "rpcndr_hack.h" line applied which adds a few missing defines.

Libraries

x86_64/ contains runtime libraries from the MinGW-w64 project, namely this release:

cp ~/Downloads/mingw64/x86_64-w64-mingw32/lib/libdxgi.a ./x86_64
cp ~/Downloads/mingw64/x86_64-w64-mingw32/lib/libdxguid.a ./x86_64

LICENSE

  • include/ contains files generated from the microsoft/win32metadata repository, which are not open source. The files are fed through Wine's WIDL header generator, which produces new files (arguably we are allowed to MIT license the result, but you may want to presume they are proprietary.)
  • x86_64/ is licensed under the MinGW-w64-runtime licenses, a copy of which is provided in COPYING.MinGW-w64-runtime.txt

Issues

Issues are tracked in the main Mach repository.

About

Enables using the latest Direct3D headers and libraries with Zig

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •