浏览代码

Cleaning in BufferedRTHandleSystem

/main
Frédéric Vauchelles 7 年前
当前提交
65bdc3e4
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 12
      ScriptableRenderPipeline/Core/CoreRP/Textures/BufferedRTHandleSystem.cs

12
ScriptableRenderPipeline/Core/CoreRP/Textures/BufferedRTHandleSystem.cs


RTHandleSystem m_RTHandleSystem = new RTHandleSystem();
bool m_DisposedValue = false;
public RTHandleSystem.RTHandle GetFrameRT(int id, int index)
public RTHandleSystem.RTHandle GetFrameRT(int historyId, int frameIndex)
if (!m_RTHandles.ContainsKey(id))
if (!m_RTHandles.ContainsKey(historyId))
Assert.IsTrue(index >= 0 && index < m_RTHandles[id].Length);
Assert.IsTrue(frameIndex >= 0 && frameIndex < m_RTHandles[historyId].Length);
return m_RTHandles[id][index];
return m_RTHandles[historyId][frameIndex];
int bufferSize
int bufferCount
var buffer = new RTHandleSystem.RTHandle[bufferSize];
var buffer = new RTHandleSystem.RTHandle[bufferCount];
m_RTHandles.Add(id, buffer);
// First is autoresized

正在加载...
取消
保存