AddCommandBuffer
Add a command buffer to be executed at a specified place.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
AddCommandBuffer(LightEvent, CommandBuffer)
Add a command buffer to be executed at a specified place.
public void AddCommandBuffer(LightEvent evt, CommandBuffer buffer)
Parameters
When to execute the command buffer during rendering.
The buffer to execute.
Remarks
Multiple command buffers can be set to execute at the same light event (or even the same buffer can be added multiple times). To remove command buffer from execution, use Light.RemoveCommandBuffer.
Passing a shadow pass mask allows detailed control over which shadow passes will execute the buffer.
Important: This API is compatible only with the Built-In Render Pipeline.
Additional Resources: CommandBuffer, ShadowMapPass, Light.RemoveCommandBuffer, Light.GetCommandBuffers.
AddCommandBuffer(LightEvent, CommandBuffer, ShadowMapPass)
Add a command buffer to be executed at a specified place.
public void AddCommandBuffer(LightEvent evt, CommandBuffer buffer, ShadowMapPass shadowPassMask)
Parameters
When to execute the command buffer during rendering.
The buffer to execute.
A mask specifying which shadow passes to execute the buffer for.
Remarks
Multiple command buffers can be set to execute at the same light event (or even the same buffer can be added multiple times). To remove command buffer from execution, use Light.RemoveCommandBuffer.
Passing a shadow pass mask allows detailed control over which shadow passes will execute the buffer.
Important: This API is compatible only with the Built-In Render Pipeline.
Additional Resources: CommandBuffer, ShadowMapPass, Light.RemoveCommandBuffer, Light.GetCommandBuffers.