Is it possible for GLSL to have some language structs for rendering state modifications? Rasterization state in geometry shader (or in VS in absence of a GS/Tess) or SampleCoverage paremeters in FS or Blending parameters in FS etc.
For example:
Code ://GS Code state Rasterization { Enable(MULTISAMPLING), PolygonMode(FILL) }; //FS Code state Blending { { Enable(BLEND), BlendFunc(...) }//Layer 0 }
I am just trying to imagine HLSL modifications what it may look like in GLSL. I don't know if it is possible in GL pipeline.




