GetLightIndexMap(Allocator)
If a RenderPipeline sorts or otherwise modifies the VisibleLight list, an index remap will be necessary to properly make use of per-object light lists.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public NativeArray<int> GetLightIndexMap(Allocator allocator)
Parameters
The allocator to use.
Returns
Type | Description |
|---|---|
| NativeArray<int> | Array of indices that map from VisibleLight indices to internal per-object light list indices. |
Remarks
Additional Resources:: CullingResults.SetLightIndexMap, CullingResults.