Instanced |
public Buffer GetInstanceBuffer()
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.