MikePopoloski / SharpBgfx

C# bindings for the bgfx graphics library
MIT License
169 stars 32 forks source link

Compile Shaders via MSBuild (Pull Request Offer) #15

Closed smack0007 closed 6 years ago

smack0007 commented 7 years ago

I would like to propose creating an MSBuild script (SharpBgfx.targets) which can be included in projects to automatically compile all shaders via the bgfx shaderc tool. This will mean the shaders can be recompiled whenever the project itself gets recompiled. This would be useful for the example projects as well as it's one less step before you can press F5 in Visual Studio.

The .targets file could eventually be extended to also compile textures as well.

I'm willing to implement this myself but would like to check that this is a direction the project would like to head in before putting in the effort.

MikePopoloski commented 7 years ago

Sure, that sounds cool. I'd accept such a pull request if you want to write it.

smack0007 commented 7 years ago

Cool. I'll take a shot at this after my vacation next week.

smack0007 commented 7 years ago

I've opened up a pull request: https://github.com/MikePopoloski/SharpBgfx/pull/17

MikePopoloski commented 6 years ago

Closing this in favor of keeping discussion in the pull request.