Jump to content

View more

Image of the Day

雑魚は多めにして、爽快感重視にしつつ・・・(´・ω・`)
早いとこ、ベースを作って、完成にもっていかないとね。
タイトルもまだ迷ってるだよなぁ。 
#indiedev  #indiegame #screenshotsaturday https://t.co/IwVbswGrhe
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Effect and RenderState Framework

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
No replies to this topic

#1 gfxCahd   Members   

234
Like
1Likes
Like

Posted 27 January 2014 - 06:55 AM

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, 27 January 2014 - 06:59 AM.





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.