Members - Reputation: 102
Posted 26 March 2012 - 12:18 AM
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.
Members - Reputation: 1454
Posted 27 March 2012 - 09:21 AM
- Create an empty Texture by CreateTexture
- LockRect in the surface
- LockRect in the texture
- Copy data into this texture
- UnlockRect twice