Version: 2023.1
언어: 한국어

BatchCullingOutputDrawCommands

struct in UnityEngine.Rendering

매뉴얼로 전환

설명

Draw commands generated by the culling request.

변수

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.
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.
visibleInstanceCountThe number of elements in the BatchCullingOutputDrawCommands.visibleInstances array.
visibleInstancesThe indices of visible instances to render.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961