AddCommandBuffer
Add a command buffer to be executed at a specified place.
Read time 2 minutesLast updated 6 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
AddCommandBufferPassing 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
AddCommandBufferPassing 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.