Jump to content


Setting the render target in dx10


2 replies to this topic

#1 rouncer

    Senior Member

  • Members
  • PipPipPipPip
  • 2258 posts

Posted 30 December 2008 - 12:13 PM

Im new to dx10, setting a render target is easy in dx9, you just use device->SetRenderTarget, but in dx10 im not quite sure I understand from the docs how to go about it, because the setrendertarget comes out of ID3D10EffectRenderTargetViewVariable, how the hell does this work?!?

Does this mean it has to be a variable in the shader to set the render target?

#2 kusma

    Valued Member

  • Members
  • PipPipPip
  • 163 posts

Posted 31 December 2008 - 11:27 AM

No. The correct function to use in DX10 for setting the render target(s) to use is ID3D10Device :: OMSetRenderTargets.

#3 rouncer

    Senior Member

  • Members
  • PipPipPipPip
  • 2258 posts

Posted 31 December 2008 - 01:54 PM

Oh geezus, thanks alot i was stuck on that. ill get back to what im coding.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users