浏览代码

Indent + Remove useless comment.

/main
Julien Ignace 6 年前
当前提交
84e7c5e0
共有 2 个文件被更改,包括 1 次插入2 次删除
  1. 2
      ScriptableRenderPipeline/Core/CoreRP/RTHandle.cs
  2. 1
      ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/Common.hlsl

2
ScriptableRenderPipeline/Core/CoreRP/RTHandle.cs


public static int maxHeight { get { return GetMaxHeight(s_ScaledRTCurrentCategory); } }
static RTHandle()
{
{
s_AutoSizedRTs = new List<RTHandle>();
for (int i = 0; i < (int)RTCategory.Count; ++i)
{

1
ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/Common.hlsl


#if SHADER_STAGE_COMPUTE
// In case of compute shader an extra half offset is added to the screenPos to shift the integer position to pixel center.
posInput.positionNDC.xy += float2(0.5, 0.5);
// TODO DO CORRECT HALF PIXEL OFFSET WITH SCALE
#endif
posInput.positionNDC *= invScreenSize;

正在加载...
取消
保存