I am new to direct3D . I am trying to write an image on direct3ddevice and get the same image in xrgb from it. I create a texture and get the surface from GetSurfaceLevel(). I use a image file and convert it into ARGB and write it onto the locked suface from texture. But how should I proceed further to queue this data into the swapchain so that I can get the same data in XRGB using GetBackBuffer() call on Direct3DDevice??
I want to do this, as I want to further play with textures and data from sources to apply special effects such as compositing images (one containing an alpha channel over another in rgb) using direct3d.