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.
1 reply to this topic
Members - Reputation: 1010
Posted 27 March 2012 - 09:21 AM
I am not sure, but maybe you would:
- Create an empty Texture by CreateTexture
- LockRect in the surface
- LockRect in the texture
- Copy data into this texture
- UnlockRect twice