FVirtualTextureFeedbackBufferDesc

Description of how to interpret an RHIBuffer that is being fed to the virtual texture feedback system.

Windows
MacOS
Linux

References

Module

Renderer

Header

/Engine/Source/Runtime/Renderer/Public/VT/VirtualTextureFeedbackBuffer.h

Include

#include "VT/VirtualTextureFeedbackBuffer.h"

Syntax

struct FVirtualTextureFeedbackBufferDesc

Remarks

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.

Variables

Name Description

Public variable

FIntPoint

 

BufferSize

Size of buffer. 1D buffers have Y=1.

Public variable

int32

 

NumRects

The number of rectangles to read from the buffer.

Public variable

FIntRect[MaxRec...

 

Rects

Rectangles to read from the buffer.

Public variable

int32

 

TotalReadSize

Number of buffer elements to actually read (calculated from the Rects).

Functions

Name Description

Public function

void

 

Init

(
    int32 InBufferSize
)

Initialize for a flat "1D" buffer.

Public function

void

 

Init2D

(
    FIntPoint InBufferSize
)

Initialize for a "2D" buffer.

Public function

void

 

Init2D

(
    FIntPoint InUnscaledBufferSize,
    TArrayView< FIntRect > const& InUn...,
    int32 InBufferScale
)

Initialize for a "2D" buffer.

Constants

Name

Description

MaxRectPerTransfer

The maximum number of rectangles to read from a 2D buffer.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss