private static void GetCameras(ScriptableRenderContext context)
        {
            int numCams = context.GetNumberOfCameras();

            if (numCams != s_CameraCapacity)
            {
                Array.Resize(ref s_Cameras, numCams);
                s_CameraCapacity = numCams;
            }

            for (int i = 0; i < numCams; ++i)
            {
                s_Cameras[i] = context.GetCamera(i);
            }
        }
예제 #2
0
        private static void GetCameras(ScriptableRenderContext context)
        {
            int  numberOfCameras = context.GetNumberOfCameras();
            bool flag            = numberOfCameras != RenderPipelineManager.s_CameraCapacity;

            if (flag)
            {
                Array.Resize <Camera>(ref RenderPipelineManager.s_Cameras, numberOfCameras);
                RenderPipelineManager.s_CameraCapacity = numberOfCameras;
            }
            for (int i = 0; i < numberOfCameras; i++)
            {
                RenderPipelineManager.s_Cameras[i] = context.GetCamera(i);
            }
        }