On Tue Mar 12 17:57:55 2024 +0000, Nikolay Sivov wrote:
For fx_4+ you can find examples in d3d10/tests/effect.c. The syntax is "technique10 { pass {} }", then pass is what contains a number of entries-state changing "calls" that are applied when pass is applied. All that does is making a number of device context calls as instructed. Same exact thing for fx_2, in d3dx9_36/tests/effect.c, except that it sets individual states.
Ok, after looking at it, I think it should be used for them too.
We will also need to extend it a little for fx_2_0 passes, for things such as the `compile` keyword: ``` technique tech1 { pass pass1 { VertexShader = compile vs_2_0 main_vs(arg1); } } ```