# BatchCullingOutputDrawCommands

> Draw commands generated by the culling request.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.Rendering](/engine/6000.0/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public struct BatchCullingOutputDrawCommands
```

## Fields

| Value                                                                                                                                                            | Description                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [drawCommandCount](/engine/6000.0/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/drawcommandcount.md)                                     | The number of elements in the [BatchCullingOutputDrawCommands.drawCommands](/engine/6000.0/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/drawcommands.md) array.                                                                                                                                                                                                                                                               |
| [drawCommandPickingInstanceIDs](/engine/6000.0/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/drawcommandpickinginstanceids.md)           | The instance IDs that are associated with the draw commands.                                                                                                                                                                                                                                                                                                                                                                                           |
| [drawCommands](/engine/6000.0/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/drawcommands.md)                                             | The array that contains draw commands to render as the result of the OnPerformCulling call.                                                                                                                                                                                                                                                                                                                                                            |
| [drawRangeCount](/engine/6000.0/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/drawrangecount.md)                                         | The number of elements in the [BatchCullingOutputDrawCommands.drawRanges](/engine/6000.0/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/drawranges.md) array.                                                                                                                                                                                                                                                                   |
| [drawRanges](/engine/6000.0/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/drawranges.md)                                                 | Contains filtering settings for draw commands, which tell Unity in which conditions it should render a given draw command.                                                                                                                                                                                                                                                                                                                             |
| [indirectDrawCommandCount](/engine/6000.0/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/indirectdrawcommandcount.md)                     | The number of elements in the [BatchCullingOutputDrawCommands.indirectDrawCommands](/engine/6000.0/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/indirectdrawcommands.md) array.                                                                                                                                                                                                                                               |
| [indirectDrawCommands](/engine/6000.0/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/indirectdrawcommands.md)                             | The array that contains indirect draw commands to render as the result of the OnPerformCulling call.                                                                                                                                                                                                                                                                                                                                                   |
| [instanceSortingPositionFloatCount](/engine/6000.0/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/instancesortingpositionfloatcount.md)   | If [BatchDrawCommandFlags.HasSortingPosition](/engine/6000.0/script-reference/unityengine/rendering/batchdrawcommandflags/hassortingposition.md) is set for one or more draw commands, this contains float3 world-space positions that Unity uses for depth sorting.                                                                                                                                                                                   |
| [instanceSortingPositions](/engine/6000.0/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/instancesortingpositions.md)                     | If  is set for one or more draw commands, the instanceSortingPositions array contains explicit float3 world space positions that Unity uses for depth sorting. The culling callback must allocate the memory for the `instanceSortingPositions` using the `UnsafeUtility.Malloc` method and the `Allocator.TempJob` parameter. The memory is released by Unity when the rendering is complete. If the length of the array is 0, set its value to null. |
| [proceduralDrawCommandCount](/engine/6000.0/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/proceduraldrawcommandcount.md)                 | The number of elements in the [BatchCullingOutputDrawCommands.proceduralDrawCommands](/engine/6000.0/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/proceduraldrawcommands.md) array.                                                                                                                                                                                                                                           |
| [proceduralDrawCommands](/engine/6000.0/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/proceduraldrawcommands.md)                         | The array that contains procedural draw commands to render as the result of the OnPerformCulling call.                                                                                                                                                                                                                                                                                                                                                 |
| [proceduralIndirectDrawCommandCount](/engine/6000.0/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/proceduralindirectdrawcommandcount.md) | The number of elements in the [BatchCullingOutputDrawCommands.proceduralIndirectDrawCommands](/engine/6000.0/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/proceduralindirectdrawcommands.md) array.                                                                                                                                                                                                                           |
| [proceduralIndirectDrawCommands](/engine/6000.0/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/proceduralindirectdrawcommands.md)         | The array that contains procedural indirect draw commands to render as the result of the OnPerformCulling call.                                                                                                                                                                                                                                                                                                                                        |
| [visibleInstanceCount](/engine/6000.0/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/visibleinstancecount.md)                             | The number of elements in the [BatchCullingOutputDrawCommands.visibleInstances](/engine/6000.0/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/visibleinstances.md) array.                                                                                                                                                                                                                                                       |
| [visibleInstances](/engine/6000.0/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/visibleinstances.md)                                     | The indices of visible instances to render.                                                                                                                                                                                                                                                                                                                                                                                                            |
