# IRdReferencedMaterialInfo Interface Reference

Inherits IUnknown.

List of all members.

## Public Member Functions
HRESULT | GetMaterialId (GUID *pgId)
HRESULT | SetMaterialId (GUID gId)
HRESULT | GetMaterialInstancingMode (ReMaterialInstancingMode *pdwIm)
HRESULT | SetMaterialInstancingMode (ReMaterialInstancingMode dwIm)

## Detailed Description

Interface for holding referencing information for materials.

## Member Function Documentation

HRESULT IRdReferencedMaterialInfo::GetMaterialId | ( | GUID * | pgId | ) |

Get shared material ID.

Returns:
  pgId [out,retval] Shared material ID.

  Standard HRESULT processing can be applied to the result.

HRESULT IRdReferencedMaterialInfo::SetMaterialId | ( | GUID | gId | ) |

Set shared material ID.

Parameters:

  | gId | [in] Shared material ID.

Returns:
  Standard HRESULT processing can be applied to the result.

HRESULT IRdReferencedMaterialInfo::GetMaterialInstancingMode | ( | ReMaterialInstancingMode * | pdwIm | ) |

Get material instancing mode.

Returns:
  pdwIm [out,retval] Material instancing mode.

  Standard HRESULT processing can be applied to the result.

HRESULT IRdReferencedMaterialInfo::SetMaterialInstancingMode | ( | ReMaterialInstancingMode | dwIm | ) |

Set material instancing mode.

Parameters:

  | dwIm | [in] Instancing mode to set.

Returns:
  Standard HRESULT processing can be applied to the result.