# Sandbox.Rendering.CommandList.DrawIndexedInstanced

```csharp
void DrawIndexedInstanced(GpuBuffer indexBuffer, Material material, int instanceCount, RenderAttributes attributes = null, PrimitiveType primitiveType = 5)
```

Draws indexed geometry with instancing. Each instance shares the same index buffer.

### Parameters

- `indexBuffer` (`GpuBuffer`)
- `material` (`Material`)
- `instanceCount` (`int`)
- `attributes` (`RenderAttributes`), default `null`
- `primitiveType` (`PrimitiveType`), default `5`

Declared in [Sandbox.Rendering.CommandList](/api/Sandbox.Rendering.CommandList).
Assembly: `Sandbox.Engine`.
