浏览代码

enable a couple of relevant asserts in the texture cache

enable a couple of relevant asserts in the texture cache
/main
mmikk 7 年前
当前提交
2d62f7b0
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      ScriptableRenderPipeline/Core/TextureCache.cs

4
ScriptableRenderPipeline/Core/TextureCache.cs


{
sliceIndex = m_LocatorInSliceArray[texId];
bFoundAvailOrExistingSlice = true;
//assert(m_SliceArray[sliceIndex].TexID==TexID);
Debug.Assert(m_SliceArray[sliceIndex].texId == texId);
}
// If no existing copy found in the array

// wrap up
//assert(bFoundAvailOrExistingSlice);
Debug.Assert(bFoundAvailOrExistingSlice); // if this fails either increase the size of the texture cache or reduce number of unique cached textures in use.
if (bFoundAvailOrExistingSlice)
{
m_SliceArray[sliceIndex].countLRU = 0; // mark slice as in use this frame

正在加载...
取消
保存