|
|
|
|
|
|
List<int> m_LocalLightIndices = new List<int>(); |
|
|
|
|
|
|
|
bool m_IsCameraRendering; |
|
|
|
const string k_CameraProfilerTag = "Render Camera"; |
|
|
|
|
|
|
|
public LightweightPipeline(LightweightPipelineAsset asset) |
|
|
|
{ |
|
|
|
|
|
|
foreach (Camera camera in cameras) |
|
|
|
{ |
|
|
|
BeginCameraRendering(camera); |
|
|
|
string renderCameraTag = "Render " + camera.name; |
|
|
|
CommandBuffer cmd = CommandBufferPool.Get(renderCameraTag); |
|
|
|
using (new ProfilingSample(cmd, renderCameraTag)) |
|
|
|
CommandBuffer cmd = CommandBufferPool.Get(k_CameraProfilerTag); |
|
|
|
using (new ProfilingSample(cmd, k_CameraProfilerTag)) |
|
|
|
{ |
|
|
|
CameraData cameraData; |
|
|
|
InitializeCameraData(camera, out cameraData); |
|
|
|