Click or drag to resize
AB4D logo

InstancedMeshGeometry3DNodeGetInstanceBuffer Method

Returns a SharpDX.Direct3D11.Buffer that is used by this InstancedMeshGeometry3DNode.

Namespace: Ab3d.DirectX.Models
Assembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.0.8865.1045
Syntax
C#
public Buffer GetInstanceBuffer()

Return Value

Buffer
a SharpDX.Direct3D11.Buffer that is used by this InstancedMeshGeometry3DNode
Remarks

GetInstanceBuffer returns a SharpDX.Direct3D11.Buffer that is used by this InstancedMeshGeometry3DNode.

If the instanceBuffer was created by this InstancedMeshGeometry3DNode, then it will be also disposed by this InstancedMeshGeometry3DNode - you must not dispose it because after that it will not be usable any more. The reason for this is that SharpDX does not support reference counting and so when a Dispose method is called, the object cannot be used any more (regardless of the references count number of the COM object). This is also a standard .Net practice - not to use Disposed objects any more.

See Also