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 ?
#2 Members - Reputation: 3789
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 Members - Reputation: 149
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 Members - Reputation: 552
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.
Starnick
Tesla Graphics Engine | AssimpNet | DevILNet |
#5 Members - Reputation: 149
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






