浏览代码

Merge pull request #1390 from Unity-Technologies/lw/disable-copydepth

Fixes issue where CopyDepthSubpass fails when src and dest are diff sizes
/main
GitHub 6 年前
当前提交
a709a016
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 7
      ScriptableRenderPipeline/LightweightPipeline/LWRP/LightweightPipelineCore.cs

7
ScriptableRenderPipeline/LightweightPipeline/LWRP/LightweightPipelineCore.cs


public static void CopyTexture(CommandBuffer cmd, RenderTargetIdentifier source, RenderTargetIdentifier dest, Material material)
{
if (SystemInfo.copyTextureSupport != CopyTextureSupport.None)
cmd.CopyTexture(source, dest);
else
// TODO: In order to issue a copyTexture we need to also check if source and dest have same size
//if (SystemInfo.copyTextureSupport != CopyTextureSupport.None)
// cmd.CopyTexture(source, dest);
//else
cmd.Blit(source, dest, material);
}

正在加载...
取消
保存