浏览代码

Removed #ifdef for C++ dependent code in TextureCache.

/Add-support-for-light-specular-color-tint
Julien Ignace 7 年前
当前提交
5242cd7f
共有 1 个文件被更改,包括 0 次插入10 次删除
  1. 10
      ScriptableRenderPipeline/Core/TextureCache.cs

10
ScriptableRenderPipeline/Core/TextureCache.cs


#define NATIVE_CODE_FOR_CMD_CONVERT_TEXTURE
using UnityEngine;
using System.Collections.Generic;
using UnityEngine.Rendering;

if (mismatch)
{
#if NATIVE_CODE_FOR_CMD_CONVERT_TEXTURE
#else
UnityEngine.Graphics.ConvertTexture(texture, 0, m_Cache, sliceIndex);
#endif
}
else
{

{
for (int f = 0; f < 6; f++)
{
#if NATIVE_CODE_FOR_CMD_CONVERT_TEXTURE
#else
UnityEngine.Graphics.ConvertTexture(texture, f, m_Cache, 6 * sliceIndex + f);
#endif
}
}
else

正在加载...
取消
保存