Unity3D command buffer笔记

请尊重原作者的工作,转载时请务必注明转载自:www.xionggf.com

对command buffer进行调度

在Unity的内建渲染流水线 中,您可以在渲染循环中的特定时间执行命令缓冲区。为此,请将Camera.AddCommandBuffer API与CameraEvent枚举一起使用,并将Light.AddCommandBuffer API与LightEvent枚举一起使用。

例如,您可以将Command Buffer与AfterGBuffer CameraEvent一起使用以呈现其他游戏对象 进入Deferred管道后,管道会处理所有不透明的GameObjects。

参考网页

What is the order of CommandBuffer CameraEvents in each render path and editor view? Unity中镜头使用的若干研究 Unity Commandbuffer some learning and finishing Unity Shader-Command Buffer的使用(景深與描邊效果重置版) Unity Command Buffer初探 CommandBuffer的GPU开销