engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
FWorldAsyncTraceState结构体 参考

This encapsulate World's async trace functionality. 更多...

#include <World.h>

Public 成员函数

FORCEINLINE AsyncTraceData & GetBufferForCurrentFrame ()
 Get the Buffer for Current Frame
 
FORCEINLINE AsyncTraceData & GetBufferForFrame (int32 Frame)
 Get the Buffer for input Frame
 
FORCEINLINE AsyncTraceData & GetBufferForPreviousFrame ()
 Get the Buffer for Previous Frame
 

Public 属性

int32 CurrentFrame
 Used as counter for Buffer swap for DataBuffer. 更多...
 
AsyncTraceData DataBuffer [2]
 Async Trace Data Buffer Array. 更多...
 

详细描述

This encapsulate World's async trace functionality.

This contains two buffers of trace data buffer and alternates it for each tick.

You can use async trace using following APIs : AsyncLineTrace, AsyncSweep, AsyncOverlap When you use those APIs, it will be saved to AsyncTraceData FWorldAsyncTraceState contains two buffers to rotate each frame as you might need the result in the next frame However, if you do not get the result by next frame, the result will be discarded. Use Delegate if you would like to get the result right away when available.

类成员变量说明

◆ CurrentFrame

int32 FWorldAsyncTraceState::CurrentFrame

Used as counter for Buffer swap for DataBuffer.

Right now it's only 2, but it can change.

◆ DataBuffer

AsyncTraceData FWorldAsyncTraceState::DataBuffer[2]

Async Trace Data Buffer Array.

For now we only saves 2 frames.


该结构体的文档由以下文件生成: