   States -
  When ever I set a state, such as alpha blend, in one effect technique in my HLSL, as per the effect DX10 states tutorial in the Mar 2009 SDK, it seems to stay on for all other techniques and effects from that point on?I thought it would just be on for the particular technique and then go back the the states it had previously.Does this mean that once I introduce and alpha blend state on one technique out of 500, that I must explicityly set the alpha blend state in the other 499 to turn off alpha blending again?   
  When you change a state it remains that way until another shader change again its state. It is a normal behaviour.   ;  Ok. So is there some way to push and pop states in HLSL?... or if I set alpha blending in one effect, I have to set it to no alpha blending in every other effect?;  You can simply retain in memory the state you want to return after that effect and set them manually without using a shader assigning them to the outputmerger after all the draw operations for that effect are complete.With ID3D10Device::CreateBlendState you can create for example a blendstate and with ID3D10Device::OMSetBlendState you can set it...It is IMHO better to set explicitely in each effect the state you want because anyway DirectX will avoid redundant state change (never execute a change if not necessary) and this way you have a system that work clearly.   ;Quote:Original post by feal87It is IMHO better to set explicitely in each effect the state you want because anyway DirectX will avoid redundant state change (never execute a change if not necessary) and this way you have a system that work clearly.Ok, that was what I was worried about.Thanks!   