Jump to content
  • Advertisement
Sign in to follow this  
kkc0923

How blits pixels to video memory directly with Direct3D11?

This topic is 1751 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement

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.

 

Cheers!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!