|
|
|
|
|
|
context.ExecuteCommandBuffer(cmd); |
|
|
|
cmd.Clear(); |
|
|
|
|
|
|
|
#if UNITY_EDITOR
|
|
|
|
#endif
|
|
|
|
{ |
|
|
|
m_IsCameraRendering = true; |
|
|
|
#if UNITY_EDITOR
|
|
|
|
|
|
|
m_Renderer.Setup(ref context, ref m_CullResults, ref renderingData); |
|
|
|
m_Renderer.Execute(ref context, ref m_CullResults, ref renderingData); |
|
|
|
} |
|
|
|
#if UNITY_EDITOR
|
|
|
|
catch (Exception) |
|
|
|
{ |
|
|
|
CommandBufferPool.Release(cmd); |
|
|
|
|
|
|
#endif
|
|
|
|
{ |
|
|
|
m_IsCameraRendering = false; |
|
|
|
} |
|
|
|