• Advertisement
Sign in to follow this  

Effect and RenderState Framework

This topic is 1452 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?

-Thanks

Edited by gfxCahd

Share this post


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

  • Advertisement