Jump to content

  • Log In with Google      Sign In   
  • Create Account


Acquire vertex buffer


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 zonozz   Members   -  Reputation: 158

Like
0Likes
Like

Posted 16 February 2013 - 09:49 AM

Hi everyone , I want to acquire vertex buffer's data, and copy the data to new model. I try to use GetPrivateData, but I cant understand what is 1st param - const GUID& ? How can I know the data's guid ?



Sponsor:

#2 mhagain   Crossbones+   -  Reputation: 7452

Like
1Likes
Like

Posted 16 February 2013 - 10:20 AM

GetPrivateData is not the call you're looking for - it's not used for this kind of operation at all.  Depending on the buffer's usage and CPU access flags, you can use one of Map or CopyResource to do this.


It appears that the gentleman thought C++ was extremely difficult and he was overjoyed that the machine was absorbing it; he understood that good C++ is difficult but the best C++ is well-nigh unintelligible.


#3 zonozz   Members   -  Reputation: 158

Like
0Likes
Like

Posted 16 February 2013 - 11:31 AM

GetPrivateData is not the call you're looking for - it's not used for this kind of operation at all.  Depending on the buffer's usage and CPU access flags, you can use one of Map or CopyResource to do this.

 

Thank you ! That's the answer I really waiting for ! But what data dus GetPrivateData() truely acquire ?


Edited by zonozz, 16 February 2013 - 11:36 AM.


#4 Starnick   Members   -  Reputation: 1140

Like
1Likes
Like

Posted 16 February 2013 - 02:36 PM

http://msdn.microsoft.com/en-us/library/windows/desktop/ff476380%28v=vs.85%29.aspx

 

Basically, Get/Set PrivateData is so you can associate application-specific data to the object, e.g. set a "friendly" name to it for debugging purposes.



#5 zonozz   Members   -  Reputation: 158

Like
0Likes
Like

Posted 18 February 2013 - 03:22 AM

http://msdn.microsoft.com/en-us/library/windows/desktop/ff476380%28v=vs.85%29.aspx

 

Basically, Get/Set PrivateData is so you can associate application-specific data to the object, e.g. set a "friendly" name to it for debugging purposes.

 

Really thank you for your help






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