Sign in to follow this  

How blits pixels to video memory directly with Direct3D11?

Recommended Posts

Hi, Im newbie in DirectX11 on Windows Phone as Windows Store App.

My recent project is simple porting of other 2D native software using SDL to .Net with DirectX.


Here is my question. How blits pixels data to video memory directly using Direct3D11 (without Direct2D, because Direct2D is not exists in Windows phone 8!). SDL provides surface structure which has directly writable buffer. But Direct3D has no way like SDL.


I think that using Dynamic Texture2D with Map and UnMap methods, but I can't sure this is best way.


I want to your opinions. Thanks.

Share this post

Link to post
Share on other sites

Dynamic Texture with map and unmap should do the work. Only thing that you should keep in mind is that you shouldn't map/unmap for drawing individual pixels in the buffer.


You could keep another buffer in system memory and copy the whole buffer to the dynamic texture. This way you'll keep the mapping and unmapping at minimum.



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this