Microsoft DirectX 8.1 (Visual Basic) |
Associates data with the surface that is intended for use by the application, not by Microsoft® Direct3D®.
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.
Direct3D does not manage the memory at Data. If this buffer was dynamically allocated, it is the caller's responsibility to free the memory.
Data is passed by value, and multiple sets of data can be associated with a single surface.
Direct3DSurface8.FreePrivateData, Direct3DSurface8.GetPrivateData