Jump to content
  • Advertisement
Sign in to follow this  

Effect and RenderState Framework

This topic is 2089 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am using D3D11, but I'm pretty sure this applies to OpenGL too.


Anyway, I was using D3D10 (which came with an effect framework) and moved to D3D11 (which dumped the effect framework).

Now my rendering classes (spriteBatch, terrainRenderer, billboardRenderer etc...) all have their own pixel shaders, vertex shaders,

constant buffers, sampler states etc... They also had from before their own blendStates, depthStates, rasterizerStates, all of which need to be set before drawing.


Is there some better way to organize this? Some kind of framework that can take care of the various shaders?

And perhaps a framework responsible for the various states of the device (blend, depth etc...)?


Does anyone have any suggestions or basic tutorials on this?


Edited by gfxCahd

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!