浏览代码
Adding option to force synchronous readback. This would help with visualizing bounding boxes.
/readback_mode
Adding option to force synchronous readback. This would help with visualizing bounding boxes.
/readback_mode
Jon Hogins
5 年前
当前提交
433a9fa6
共有 4 个文件被更改,包括 62 次插入 和 20 次删除
-
11com.unity.perception/Runtime/GroundTruth/PerceptionCamera.cs
-
48com.unity.perception/Runtime/GroundTruth/RenderTextureReader.cs
-
20com.unity.perception/Runtime/GroundTruth/ReadbackMode.cs
-
3com.unity.perception/Runtime/GroundTruth/ReadbackMode.cs.meta
|
|||
using System; |
|||
|
|||
namespace UnityEngine.Perception.Sensors |
|||
{ |
|||
/// <summary>
|
|||
/// Types of GPU readback
|
|||
/// </summary>
|
|||
public enum ReadbackMode |
|||
{ |
|||
/// <summary>
|
|||
/// Readback should occur asynchronously. The results may be retrieved many frames past the actual rendering.
|
|||
/// </summary>
|
|||
Async, |
|||
/// <summary>
|
|||
/// Readback should occur synchronously. The results will always be retrieved in the same frame as rendering
|
|||
/// at the cost of performance.
|
|||
/// </summary>
|
|||
Synchronous |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 4624b43574394ee6ad1662653f8b0034 |
|||
timeCreated: 1587566302 |
撰写
预览
正在加载...
取消
保存
Reference in new issue