Click or drag to resize
AB4D logo

InstancedMeshNodeGetInstanceBuffer Method

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

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

Return Value

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

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

If the instanceBuffer was created by this InstancedMeshNode, then it will be also disposed by this InstancedMeshNode - 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