浏览代码

Enables `RenderForwardError` in editor and development builds

/stochastic_alpha_test
Thomas 7 年前
当前提交
94953ff8
共有 1 个文件被更改,包括 2 次插入8 次删除
  1. 10
      ScriptableRenderPipeline/HDRenderPipeline/HDRenderPipeline.cs

10
ScriptableRenderPipeline/HDRenderPipeline/HDRenderPipeline.cs


using System.Collections.Generic;
using UnityEngine.Rendering;
using System;
using System.Diagnostics;
using UnityEngine.Rendering.PostProcessing;
using UnityEngine.Experimental.Rendering.HDPipeline.TilePass;

Material m_DebugViewMaterialGBuffer;
Material m_DebugDisplayLatlong;
Material m_DebugFullScreen;
#if UNITY_EDITOR
#endif
// Various buffer
readonly int m_CameraColorBuffer;

m_DebugViewMaterialGBuffer = CoreUtils.CreateEngineMaterial(m_Asset.renderPipelineResources.debugViewMaterialGBufferShader);
m_DebugDisplayLatlong = CoreUtils.CreateEngineMaterial(m_Asset.renderPipelineResources.debugDisplayLatlongShader);
m_DebugFullScreen = CoreUtils.CreateEngineMaterial(m_Asset.renderPipelineResources.debugFullScreenShader);
#if UNITY_EDITOR
#endif
}
public void CreateSssMaterials(bool useDisneySSS)

CoreUtils.Destroy(m_DebugViewMaterialGBuffer);
CoreUtils.Destroy(m_DebugDisplayLatlong);
CoreUtils.Destroy(m_DebugFullScreen);
#if UNITY_EDITOR
#endif
m_SkyManager.Cleanup();

}
}
#if UNITY_EDITOR
[Conditional("DEVELOPMENT_BUILD"), Conditional("UNITY_EDITOR")]
void RenderForwardError(CullResults cullResults, Camera camera, ScriptableRenderContext renderContext, CommandBuffer cmd, bool renderOpaque)
{
using (new ProfilingSample(cmd, "Render Forward Error"))

}
}
}
#endif
void RenderVelocity(CullResults cullResults, HDCamera hdcam, ScriptableRenderContext renderContext, CommandBuffer cmd)
{

正在加载...
取消
保存