Jump to content

View more

Image of the Day

WIP title screen for #DeathOfAPartisan #screenshotsaturday #gamedev https://t.co/qJNhfZCvd4
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

video video copy of vertex buffers

4: Adsense

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
4 replies to this topic

#1 / rouncer   Members   

294
Like
0Likes
Like

Posted 12 August 2011 - 12:33 PM

To help speed my program up, I need to do a video video memory copy of vertex buffers, but the buffer im copying to has less elements than the buffer im copying from... is there a way to cap off the copy early?? (dx11)

#2 MJP   Moderators   

19477
Like
1Likes
Like

Posted 12 August 2011 - 01:06 PM

ID3D11DeviceContext::CopySubresourceRegion should be able to do what you want

#3 / rouncer   Members   

294
Like
0Likes
Like

Posted 12 August 2011 - 01:21 PM

Yes I thought so, but its designed for textures... could someone take the time to give me a really mega short 4 line example of how they think I should do it, remember its just a couple of vertex buffers.

#4 Syranide   Members   

375
Like
1Likes
Like

Posted 12 August 2011 - 01:49 PM

Yes I thought so, but its designed for textures... could someone take the time to give me a really mega short 4 line example of how they think I should do it, remember its just a couple of vertex buffers.


From what I can tell it also supports 1D-resources, which a vertexbuffer could be classified as I assume?(Or perhaps that's only 1D textures)



#5 / rouncer   Members   

294
Like
0Likes
Like

Posted 12 August 2011 - 01:53 PM

yeh no worries fellas, i got it working, you actually say the amount of bytes you need to copy on the x axis, not number of elements. (elements*size)




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.