浏览代码

Fixing test compile error and mistake in RenderTextureReader

/keypoint_self_occlusion
Jon Hogins 3 年前
当前提交
b700ebfa
共有 2 个文件被更改,包括 7 次插入2 次删除
  1. 4
      com.unity.perception/Runtime/GroundTruth/RenderTextureReader.cs
  2. 5
      com.unity.perception/Tests/Runtime/GroundTruthTests/TestHelper.cs

4
com.unity.perception/Runtime/GroundTruth/RenderTextureReader.cs


/// <param name="waitForAllImages">Whether this should block on waiting for asynchronous readbacks</param>
public void Dispose(bool waitForAllImages)
{
WaitForAllImages();
if (waitForAllImages)
WaitForAllImages();
if (m_CpuTexture != null)
{
Object.Destroy(m_CpuTexture);

5
com.unity.perception/Tests/Runtime/GroundTruthTests/TestHelper.cs


using System.Diagnostics;
using System.Text.RegularExpressions;
using Unity.Collections;
#if UNITY_EDITOR
#endif
using UnityEngine;
using UnityEngine.Experimental.Rendering;
using UnityEngine.Perception.GroundTruth;

callback(data);
}
[Conditional("UNITY_EDITOR")]
#if UNITY_EDITOR
public static void LoadAndStartRenderDocCapture()
{
UnityEditorInternal.RenderDoc.Load();

{
UnityEditorInternal.RenderDoc.EndCaptureRenderDoc(s_GameView);
}
#endif
public static string NormalizeJson(string json, bool normalizeFormatting = false)
{

正在加载...
取消
保存