struct in UnityEngine.Rendering
/
Implemented in:UnityEngine.CoreModule
Draw commands generated by the culling request.
drawCommandCount | The number of elements in the BatchCullingOutputDrawCommands.drawCommands array. |
drawCommandPickingInstanceIDs | The instance IDs that are associated with the draw commands. |
drawCommands | The array that contains draw commands to render as the result of the OnPerformCulling call. |
drawRangeCount | The number of elements in the BatchCullingOutputDrawCommands.drawRanges array. |
drawRanges | Contains filtering settings for draw commands, which tell Unity in which conditions it should render a given draw command. |
indirectDrawCommandCount | The number of elements in the BatchCullingOutputDrawCommands.indirectDrawCommands array. |
indirectDrawCommands | The array that contains indirect draw commands to render as the result of the OnPerformCulling call. |
instanceSortingPositionFloatCount | If BatchDrawCommandFlags.HasSortingPosition is set for one or more draw commands, this contains float3 world-space positions that Unity uses for depth sorting. |
instanceSortingPositions | If 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. |
proceduralDrawCommandCount | The number of elements in the BatchCullingOutputDrawCommands.proceduralDrawCommands array. |
proceduralDrawCommands | The array that contains procedural draw commands to render as the result of the OnPerformCulling call. |
proceduralIndirectDrawCommandCount | The number of elements in the BatchCullingOutputDrawCommands.proceduralIndirectDrawCommands array. |
proceduralIndirectDrawCommands | The array that contains procedural indirect draw commands to render as the result of the OnPerformCulling call. |
visibleInstanceCount | The number of elements in the BatchCullingOutputDrawCommands.visibleInstances array. |
visibleInstances | The indices of visible instances to render. |