stride3d / stride

Stride (formerly Xenko), a free and open-source cross-platform C# game engine.
https://stride3d.net
MIT License
6.62k stars 958 forks source link

Create a source generator for shaders' cbuffer parameters generated files #1208

Open ykafia opened 2 years ago

ykafia commented 2 years ago

Is your feature request related to a problem? Please describe. Creating shaders without the visual studio extension makes it a bit tedious to do shaders for a beginner.

Describe the solution you'd like A source generator that would parse the shaders for cbuff parameters and generate the appropriate file.

Additional context This would help newcomers start without issues when using shaders in the first place + would make the generated files invisible

tebjan commented 2 years ago

Isn't that was the plugin does? What would be the difference to the visual studio plugin? What kind of workflow do you have in mind?

ykafia commented 2 years ago

It's what the plugin does, but you don't get the plugin on vscode or if you develop from any text editor. I imagine folks using Monogame/Godot and wanting to switch to Stride would want to create games from a lightweight text editor.

I will make a prototype once i get time, it shouldn't be much of a trouble.