Hi,
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.
Thanks.
How to use ID3DXEffect in Custom EVR Presenter?
Started by Showery, Mar 26 2012 12:18 AM
1 reply to this topic
Ad:
#2 Members - Reputation: 517
Posted 27 March 2012 - 09:21 AM
I am not sure, but maybe you would:
http://blogs.msdn.co...ple-update.aspx
- Create an empty Texture by CreateTexture
- LockRect in the surface
- LockRect in the texture
- Copy data into this texture
- UnlockRect twice
http://blogs.msdn.co...ple-update.aspx






