浏览代码

If we need to copyDepth we always copy with Blit until we figure out a way to check src and dest sizes.

/main
Felipe Lira 7 年前
当前提交
93442ebc
共有 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);
}

正在加载...
取消
保存