msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.21k stars 1.19k forks source link

Add directx-shader-compiler #20670

Open JPeterMugaas opened 2 months ago

JPeterMugaas commented 2 months ago

Package name

directx-shader-compiler

Brief description of package

A compiler for HLSL to DXIL (DirectX Intermediate Language).

URL for package's homepage

https://github.com/microsoft/DirectXShaderCompiler

Provide a basic test case to validate the package's functionality.

No response

MINGW environments where you need the package

Are you willing to submit a PR?

yes

JPeterMugaas commented 2 months ago

The directx-shader-compiler (dxc.exe) is required for some DirectX 12.0 based things such as DirectXTK12.

I have a package at: https://raw.githubusercontent.com/JPeterMugaas/MINGW-ext-packages/master/mingw-w64-dxc/PKGBUILD but that simply packages the precompiled binaries from GitHub and The DirectXShaderCompiler is open-source.

This serves a different need than the efxc2 package that compiles shaders for DirectX 11 and earlier.

Biswa96 commented 5 days ago
$ ./UCRT64/bin/dxc.exe --help | head -n 3
OVERVIEW: HLSL Compiler for Windows

Version: libdxcompiler.dll: 1.8 - 1.8.0.10018 (main, 206133c9-dirty)
$ git diff --cached --name-only | wc -l
34