Skip to content

JPeterMugaas/efxc2

Repository files navigation

efxc2

efxc2 is an enhanced version of fxc2 that compiles High-Level Shader Language (.HLSL) files into DirectX11 shaders using the d3dcompiler_47.dll Application Programming Interface (API).

The original fxc2 program is described as "A wine-runnable version of Microsofts Shader Compiler fxc" and is available at https://github.com/mozilla/fxc2. Unfortunately, fxc2 does not appear to be maintained and I have encountered quite a few issues using that program. So I made my own modifications to the original fxc2 source-code including a pull request, mozilla/fxc2#3 into my own enhanced program (efxc2).

Usage:

This program is compatible with the syntax used by Microsoft's Effect-Compiler Tool (fxc). That program is documented at:

https://learn.microsoft.com/en-us/windows/win32/direct3dtools/fxc

Installing the Downloaded Program

Open the .ZIP file and extract the files to a directory of your choice.

Building and Installing This Program

See: INSTALL.md

License

This program is licensed under the Mozilla Public License, v. 2.0. A copy of that license is included in the license_MPL_2_0.txt file.

Tools I Use to Develop this Program

These tools are NOT required to build this program or submit pull requests. I list them because they are helpful to me in developing this program.

Microsoft Visual Studio Community 2022

PVS-Studio - static analyzer for C, C++, C#, and Java code.

SonarCloud - a cloud-based code review tool that integrates with DevOps platforms and CI/CD workflows.

SonarLint - an advanced linter in your IDE for Clean Code