Jump to content

  • Log In with Google      Sign In   
  • Create Account


directx as a blitter


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 fir   Members   -  Reputation: 254

Like
0Likes
Like

Posted 11 December 2013 - 06:03 AM

i am curious to know how is a way of doing blitter in directx.

 

Presently i am using winapi blitter but this is somewhat really slow

on my old machine for big window it can reach (maybe a pair clear

 and blit i measured this some time ago so i do not remember)  close

to 5-10 miliseconds so it is quite slow.

 

I asked and i know how to do it in ogl - just by setting/uploading the texture to fullscreen quad, but i am curious what is a good way of doing this in directx.

Is this the same way of some call that uplowads a ram-pixel-buffer to quad texture or something other? can someone wrote mi the name of the api call

which exactly "blits"/uplowads it?


Edited by fir, 11 December 2013 - 06:08 AM.


Sponsor:

#2 N.I.B.   Members   -  Reputation: 1022

Like
2Likes
Like

Posted 11 December 2013 - 06:58 AM

The fastest way would be to load your texture into a staging resource, then copy it into the back-buffer. Something like:

This is probably the fastest way to do it using D3D11.



#3 fir   Members   -  Reputation: 254

Like
0Likes
Like

Posted 07 January 2014 - 04:29 AM

The fastest way would be to load your texture into a staging resource, then copy it into the back-buffer. Something like:

This is probably the fastest way to do it using D3D11.

much tnx, very helpfull : )






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS