An open API service indexing awesome lists of open source software.

https://github.com/toyboot4e/fxc

Compile DirectX9 (fx_2_0) shader files on macOS
https://github.com/toyboot4e/fxc

Last synced: over 1 year ago
JSON representation

Compile DirectX9 (fx_2_0) shader files on macOS

Awesome Lists containing this project

README

          

= Compile fx_2_0 on macOS

== Installation

Run the following script:

[source,sh]
----
$ brew install wine winetricks
$ WINE=/usr/local/bin/wine64 sh winetricks d3dcompiler_43
----

Then we can `./run` the script to compile `.fx` files in `src` directory :)

== Note

* The `.fx` files came from https://github.com/prime31/Nez/tree/master/DefaultContentSource/effects[effects] in https://github.com/prime31/Nez[Nez]
* The `run` script is based on https://github.com/prime31/FNA-VSCode-Template/blob/master/.vscode/buildEffects.sh[buildEffects.sh] in https://github.com/prime31/FNA-VSCode-Template[prime31/FNA-VSCode-Template]
* The shader compiler came from https://github.com/prime31/Nez/tree/master/DefaultContentSource/FNAShaderCompiler[Nez/DefaultContentSource/FNAShaderCompiler].