# Sandbox.Rendering.CommandList.DrawIndexed

```csharp
void DrawIndexed(GpuBuffer<T> vertexBuffer, GpuBuffer indexBuffer, Material material, int startIndex = 0, int indexCount = 0, RenderAttributes attributes = null, PrimitiveType primitiveType = 5)
```

### Parameters

- `vertexBuffer` (`GpuBuffer<T>`)
- `indexBuffer` (`GpuBuffer`)
- `material` (`Material`)
- `startIndex` (`int`), default `0`
- `indexCount` (`int`), default `0`
- `attributes` (`RenderAttributes`), default `null`
- `primitiveType` (`PrimitiveType`), default `5`

Declared in [Sandbox.Rendering.CommandList](/api/Sandbox.Rendering.CommandList).
Assembly: `Sandbox.Engine`.
