Description of how to interpret an RHIBuffer that is being fed to the virtual texture feedback system. 更多...
#include <VirtualTextureFeedbackBuffer.h>
Public 成员函数 | |
| RENDERER_API void | Init (int32 InBufferSize) |
| Initialize for a flat "1D" buffer. | |
| RENDERER_API void | Init2D (FIntPoint InBufferSize) |
| Initialize for a "2D" buffer. | |
| RENDERER_API void | Init2D (FIntPoint InUnscaledBufferSize, TArrayView< FIntRect > const &InUnscaledViewRects, int32 InBufferScale) |
| Initialize for a "2D" buffer. 更多... | |
Public 属性 | |
| FIntPoint | BufferSize = 0 |
| Size of buffer. 更多... | |
| int32 | NumRects = 0 |
| The number of rectangles to read from the buffer. | |
| FIntRect | Rects [MaxRectPerTransfer] |
| Rectangles to read from the buffer. | |
| int32 | TotalReadSize = 0 |
| Number of buffer elements to actually read (calculated from the Rects). | |
静态 Public 属性 | |
| static const uint32 | MaxRectPerTransfer = 4u |
| The maximum number of rectangles to read from a 2D buffer. | |
Description of how to interpret an RHIBuffer that is being fed to the virtual texture feedback system.
For example a buffer may be a simple flat buffer, or a 2D screen-space buffer with rectangles representing multiple player viewports. In the future we may also want to support append style buffers containing buffer size etc.
| RENDERER_API void FVirtualTextureFeedbackBufferDesc::Init2D | ( | FIntPoint | InUnscaledBufferSize, |
| TArrayView< FIntRect > const & | InUnscaledViewRects, | ||
| int32 | InBufferScale | ||
| ) |
Initialize for a "2D" buffer.
Pass in view rectangles that define some subset of the buffer to actually analyze.
| FIntPoint FVirtualTextureFeedbackBufferDesc::BufferSize = 0 |
Size of buffer.
1D buffers have Y=1.