|
InstancedMeshNodeSetInstanceBuffer Method |
SetInstanceBuffer sets the specified instanceBuffer to be used to render the instances in this InstancedMeshNode.
Namespace: Ab3d.DirectXAssembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.0.8865.1045
Syntax public void SetInstanceBuffer(
Buffer instanceBuffer,
int instanceDataStride,
int instancesCount,
InstanceData[] instancesData = null,
bool updateBounds = true
)
Parameters
- instanceBuffer Buffer
- instance buffer as SharpDX.Direct3D11.Buffer
- instanceDataStride Int32
- stride size in buffer (size in bytes of one instance data)
- instancesCount Int32
- number of instances
- instancesData InstanceData (Optional)
- array of InstanceData that was used to create the instanceBuffer. This parameter is optional, but it is required for hit testing to work.
- updateBounds Boolean (Optional)
- when true the BoundingBox of this Node is recalculated. Can be set to false to skip this calculation that can take some time.
See Also