void TryExecuteCommandBuffer <T>(PostProcessingComponentCommandBuffer <T> component)
     where T : PostProcessingModel
 {
     if (component.active)
     {
         var cb = GetCommandBuffer <T>(component.GetCameraEvent(), component.GetName());
         cb.Clear();
         component.PopulateCommandBuffer(cb);
     }
     else
     {
         RemoveCommandBuffer <T>();
     }
 }
Beispiel #2
0
 // Token: 0x06003BAC RID: 15276 RVA: 0x001CD164 File Offset: 0x001CB564
 private void TryExecuteCommandBuffer <T>(PostProcessingComponentCommandBuffer <T> component) where T : PostProcessingModel
 {
     if (component.active)
     {
         CommandBuffer commandBuffer = this.GetCommandBuffer <T>(component.GetCameraEvent(), component.GetName());
         commandBuffer.Clear();
         component.PopulateCommandBuffer(commandBuffer);
     }
     else
     {
         this.RemoveCommandBuffer <T>();
     }
 }