Beispiel #1
0
        /// <summary>Execute the frame pass callback. It assumes that the textures are properly initialized and filled.</summary>
        /// <param name="cmd">The command buffer to use.</param>
        /// <param name="framePassTextures">The textures to use.</param>
        /// <param name="outputProperties">The properties computed for this frame.</param>
        public void Execute(CommandBuffer cmd, List <RTHandle> framePassTextures, RenderOutputProperties outputProperties)
        {
            if (!isValid)
            {
                return;
            }

            m_Callback(cmd, framePassTextures, outputProperties);
        }
Beispiel #2
0
        /// <summary>Execute the frame pass callback. It assumes that the textures are properly initialized and filled.</summary>
        /// <param name="cmd">The command buffer to use.</param>
        /// <param name="framePassTextures">The textures to use.</param>
        /// <param name="customPassTextures">The custom pass AOV textures to use.</param>
        /// <param name="outputProperties">The properties computed for this frame.</param>
        public void Execute(CommandBuffer cmd, List <RTHandle> framePassTextures, List <RTHandle> customPassTextures, RenderOutputProperties outputProperties)
        {
            if (!isValid)
            {
                return;
            }

            if (m_CallbackEx != null)
            {
                m_CallbackEx(cmd, framePassTextures, customPassTextures, outputProperties);
            }
            else
            {
                m_Callback(cmd, framePassTextures, outputProperties);
            }
        }