ID3D10Device::SetPrivateData method (d3d10.h)
Set data to a device and associate that data with a guid.
Syntax
HRESULT SetPrivateData(
[in] REFGUID guid,
[in] UINT DataSize,
[in] const void *pData
);
Parameters
[in] guid
Type: REFGUID
Guid associated with the data.
[in] DataSize
Type: UINT
Size of the data.
[in] pData
Type: const void*
Pointer to the data to be stored with this device. If pData is NULL, DataSize must also be 0, and any data previously associated with the guid will be destroyed.
Return value
Type: HRESULT
This method returns one of the following Direct3D 10 Return Codes.
Remarks
The data stored in the device with this method can be retrieved with ID3D10DeviceChild::GetPrivateData.
The data and guid set with this method will typically be application-defined.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d3d10.h |
Library | D3D10.lib |