Compile Shaders #3326
Labels
Benefit - High
Complexity - High
Requestor-Modders
Issues or PRs adding or fixing TML modder API
Type: Change/Feature Request
Is a request for changes to code base in order to provide improved capabilities
Do you intend to personally contribute/program this feature?
Yes
I would like to see this change made to improve my experience with
Mod capability as a Modder
Description
The ability to compile shaders when a mod is built. After looking at EasyXNB (https://github.com/SuperAndyHero/EasyXnb), I think it can be done in a similar way to it does it without actually creating .xnb files and instead compiling to .fxc (because packaging into an xnb saves to a file I think), and then calling Effects constructor that can takes in compiled code when a mod is loaded.
Another feature that could be useful is a file watcher that automatically recompiles shader files when they are modified.
What does this proposal attempt to solve or improve?
Currently compiling shaders is annoying because you have to use a standalone executable to compile them and remember to compile them every time you change them. It would be nice to have tML automatically compile shaders when a mod is built. It is also annoying how you have to rebuild the mod every time a shader is modified.
Which (other) solutions should be considered?
No response
The text was updated successfully, but these errors were encountered: