Jump to content
  • Advertisement
Sign in to follow this  

How to use ID3DXEffect in Custom EVR Presenter?

This topic is 2397 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'm trying to use Effect Framework in Custom EVR Presenter. However, ID3DXEffect need a IDirect3DTexture9 parameter while EVR Presenter can only display IDirect3DSurface9. How can i dislay the frame with IDirect3dTexture9.

In addition, pSurface->GetContainer(IID_IDirect3DTexture9,...) return E_NOINTERFACE.

I will be very appreciated for your help.


Share this post

Link to post
Share on other sites
[font=arial,helvetica,sans-serif]I am not sure, but maybe you would:[/font]

  • [font=arial,helvetica,sans-serif]Create an empty Texture by CreateTexture[/font]
  • [font=arial,helvetica,sans-serif]LockRect in the surface[/font]
  • [font=arial,helvetica,sans-serif]LockRect in the texture[/font]
  • [font=arial,helvetica,sans-serif]Copy data into this texture[/font]
  • [font=arial,helvetica,sans-serif]UnlockRect twice[/font]

    [font=arial,helvetica,sans-serif]A bit similar and more advanced code you would find here:[/font]

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!