Microsoft DirectX 8.1 (Visual Basic) |
Associates data with the resource that is intended for use by the application, not by Microsoft® Direct3D®. Data is passed by value, and multiple sets of data can be associated with a single resource.
object.SetPrivateData( _ RefGuid As DXGUID, _ Data As Any, _ SizeOfData As Long, _ Flags As Long)
If the method fails, an error is raised and Err.Number can be set to one of the following values.
D3DERR_INVALIDCALL |
E_OUTOFMEMORY |
For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.
This method applies to the following classes, which implement methods from Direct3DResource8.
Direct3D does not manage the memory at Data. If this buffer was dynamically allocated, it is the caller's responsibility to free the memory.
Direct3DResource8.FreePrivateData, Direct3DResource8.GetPrivateData