Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

BatchCullingOutputDrawCommands

struct in UnityEngine.Rendering

/

Implemented in:UnityEngine.CoreModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Draw commands generated by the culling request.

Properties

drawCommandCountThe number of elements in the BatchCullingOutputDrawCommands.drawCommands array.
drawCommandPickingInstanceIDsThe instance IDs that are associated with the draw commands.
drawCommandsThe array that contains draw commands to render as the result of the OnPerformCulling call.
drawRangeCountThe number of elements in the BatchCullingOutputDrawCommands.drawRanges array.
drawRangesContains filtering settings for draw commands, which tell Unity in which conditions it should render a given draw command.
indirectDrawCommandCountThe number of elements in the BatchCullingOutputDrawCommands.indirectDrawCommands array.
indirectDrawCommandsThe array that contains indirect draw commands to render as the result of the OnPerformCulling call.
instanceSortingPositionFloatCountIf BatchDrawCommandFlags.HasSortingPosition is set for one or more draw commands, this contains float3 world-space positions that Unity uses for depth sorting.
instanceSortingPositionsIf BatchDrawCommandFlags.HasSortingPosition 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.
proceduralDrawCommandCountThe number of elements in the BatchCullingOutputDrawCommands.proceduralDrawCommands array.
proceduralDrawCommandsThe array that contains procedural draw commands to render as the result of the OnPerformCulling call.
proceduralIndirectDrawCommandCountThe number of elements in the BatchCullingOutputDrawCommands.proceduralIndirectDrawCommands array.
proceduralIndirectDrawCommandsThe array that contains procedural indirect draw commands to render as the result of the OnPerformCulling call.
visibleInstanceCountThe number of elements in the BatchCullingOutputDrawCommands.visibleInstances array.
visibleInstancesThe indices of visible instances to render.