浏览代码

Merge branch 'master' of https://github.com/Unity-Technologies/ScriptableRenderLoop into Branch_batcher

/Branch_batcher
Arnaud Carre 8 年前
当前提交
5cd65b9e
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 6
      Assets/ScriptableRenderPipeline/common/TextureCache.cs

6
Assets/ScriptableRenderPipeline/common/TextureCache.cs


public int FetchSlice(Texture texture)
{
var sliceIndex = -1;
if (texture == null)
return sliceIndex;
var texId = (uint)texture.GetInstanceID();
//assert(TexID!=g_InvalidTexID);

var bFoundAvailOrExistingSlice = false;
var sliceIndex = -1;
// search for existing copy
if (m_LocatorInSliceArray.ContainsKey(texId))

正在加载...
取消
保存