UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
RuntimeVirtualTexture::FRenderGraphSetup Struct Reference

Classes

struct  FInitDesc
 

Public Member Functions

void Init (FRDGBuilder &GraphBuilder, FInitDesc const &Desc)
 

Static Public Member Functions

static void SetupRenderTargetsInfo (ERuntimeVirtualTextureMaterialType MaterialType, ERHIFeatureLevel::Type FeatureLevel, bool bLQFormat, FGraphicsPipelineRenderTargetsInfo &RenderTargetsInfo)
 
static FRDGTextureDesc CreateTextureDesc (FIntPoint Size, EPixelFormat Format, FClearValueBinding ClearValue, ETextureCreateFlags Flags, uint16 ArraySize)
 
static FRDGTextureSRVRef CreateTextureSRV (FRDGBuilder &GraphBuilder, FRDGTextureRef Texture, int32 ArraySlice)
 

Public Attributes

bool bRenderPass = false
 
bool bCompressPass = false
 
bool bCopyPass = false
 
bool bCopyThumbnailPass = false
 
bool bDirectAliasing = false
 
FRDGTextureRef RenderTexture0 = nullptr
 
FRDGTextureRef RenderTexture1 = nullptr
 
FRDGTextureRef RenderTexture2 = nullptr
 
FRDGTextureRef CompressTexture0 = nullptr
 
FRDGTextureRef CompressTexture1 = nullptr
 
FRDGTextureRef CompressTexture2 = nullptr
 
FRDGTextureUAVRef CompressTextureUAV0_64bit = nullptr
 
FRDGTextureUAVRef CompressTextureUAV1_64bit = nullptr
 
FRDGTextureUAVRef CompressTextureUAV2_64bit = nullptr
 
FRDGTextureUAVRef CompressTextureUAV0_128bit = nullptr
 
FRDGTextureUAVRef CompressTextureUAV1_128bit = nullptr
 
FRDGTextureUAVRef CompressTextureUAV2_128bit = nullptr
 
FRDGTextureRef CopyTexture0 = nullptr
 
FRDGTextureRef CopyTexture1 = nullptr
 
FRDGTextureRef CopyTexture2 = nullptr
 
FRDGTextureRef OutputAlias0 = nullptr
 
FRDGTextureRef OutputAlias1 = nullptr
 
FRDGTextureRef OutputAlias2 = nullptr
 
FRDGTextureRef TargetTexture0 = nullptr
 
FRDGTextureRef TargetTexture1 = nullptr
 
FRDGTextureRef TargetTexture2 = nullptr
 

Detailed Description

Structure to localize the setup of our render graph based on the virtual texture setup.

Member Function Documentation

◆ CreateTextureDesc()

static FRDGTextureDesc RuntimeVirtualTexture::FRenderGraphSetup::CreateTextureDesc ( FIntPoint  Size,
EPixelFormat  Format,
FClearValueBinding  ClearValue,
ETextureCreateFlags  Flags,
uint16  ArraySize 
)
inlinestatic

CreateTextureDesc() creates a texture2Darray if we have page batch size > 1 or a simple texture2D otherwise.

◆ CreateTextureSRV()

static FRDGTextureSRVRef RuntimeVirtualTexture::FRenderGraphSetup::CreateTextureSRV ( FRDGBuilder GraphBuilder,
FRDGTextureRef  Texture,
int32  ArraySlice 
)
inlinestatic

CreateTextureSRV() createss an SRV for a single slice if Texture is a texture array.

◆ Init()

void RuntimeVirtualTexture::FRenderGraphSetup::Init ( FRDGBuilder GraphBuilder,
FInitDesc const &  Desc 
)
inline

Initialize the graph setup.

◆ SetupRenderTargetsInfo()

static void RuntimeVirtualTexture::FRenderGraphSetup::SetupRenderTargetsInfo ( ERuntimeVirtualTextureMaterialType  MaterialType,
ERHIFeatureLevel::Type  FeatureLevel,
bool  bLQFormat,
FGraphicsPipelineRenderTargetsInfo RenderTargetsInfo 
)
inlinestatic

Member Data Documentation

◆ bCompressPass

bool RuntimeVirtualTexture::FRenderGraphSetup::bCompressPass = false

◆ bCopyPass

bool RuntimeVirtualTexture::FRenderGraphSetup::bCopyPass = false

◆ bCopyThumbnailPass

bool RuntimeVirtualTexture::FRenderGraphSetup::bCopyThumbnailPass = false

◆ bDirectAliasing

bool RuntimeVirtualTexture::FRenderGraphSetup::bDirectAliasing = false

◆ bRenderPass

bool RuntimeVirtualTexture::FRenderGraphSetup::bRenderPass = false

Flags to express what passes we need for this virtual texture layout.

◆ CompressTexture0

FRDGTextureRef RuntimeVirtualTexture::FRenderGraphSetup::CompressTexture0 = nullptr

◆ CompressTexture1

FRDGTextureRef RuntimeVirtualTexture::FRenderGraphSetup::CompressTexture1 = nullptr

◆ CompressTexture2

FRDGTextureRef RuntimeVirtualTexture::FRenderGraphSetup::CompressTexture2 = nullptr

◆ CompressTextureUAV0_128bit

FRDGTextureUAVRef RuntimeVirtualTexture::FRenderGraphSetup::CompressTextureUAV0_128bit = nullptr

◆ CompressTextureUAV0_64bit

FRDGTextureUAVRef RuntimeVirtualTexture::FRenderGraphSetup::CompressTextureUAV0_64bit = nullptr

◆ CompressTextureUAV1_128bit

FRDGTextureUAVRef RuntimeVirtualTexture::FRenderGraphSetup::CompressTextureUAV1_128bit = nullptr

◆ CompressTextureUAV1_64bit

FRDGTextureUAVRef RuntimeVirtualTexture::FRenderGraphSetup::CompressTextureUAV1_64bit = nullptr

◆ CompressTextureUAV2_128bit

FRDGTextureUAVRef RuntimeVirtualTexture::FRenderGraphSetup::CompressTextureUAV2_128bit = nullptr

◆ CompressTextureUAV2_64bit

FRDGTextureUAVRef RuntimeVirtualTexture::FRenderGraphSetup::CompressTextureUAV2_64bit = nullptr

◆ CopyTexture0

FRDGTextureRef RuntimeVirtualTexture::FRenderGraphSetup::CopyTexture0 = nullptr

◆ CopyTexture1

FRDGTextureRef RuntimeVirtualTexture::FRenderGraphSetup::CopyTexture1 = nullptr

◆ CopyTexture2

FRDGTextureRef RuntimeVirtualTexture::FRenderGraphSetup::CopyTexture2 = nullptr

◆ OutputAlias0

FRDGTextureRef RuntimeVirtualTexture::FRenderGraphSetup::OutputAlias0 = nullptr

Aliases to one of the render/compress/copy textures. This is what we will Copy into the final physical texture.

◆ OutputAlias1

FRDGTextureRef RuntimeVirtualTexture::FRenderGraphSetup::OutputAlias1 = nullptr

◆ OutputAlias2

FRDGTextureRef RuntimeVirtualTexture::FRenderGraphSetup::OutputAlias2 = nullptr

◆ RenderTexture0

FRDGTextureRef RuntimeVirtualTexture::FRenderGraphSetup::RenderTexture0 = nullptr

Render graph textures needed for this virtual texture layout.

◆ RenderTexture1

FRDGTextureRef RuntimeVirtualTexture::FRenderGraphSetup::RenderTexture1 = nullptr

◆ RenderTexture2

FRDGTextureRef RuntimeVirtualTexture::FRenderGraphSetup::RenderTexture2 = nullptr

◆ TargetTexture0

FRDGTextureRef RuntimeVirtualTexture::FRenderGraphSetup::TargetTexture0 = nullptr

If we have output aliases, then these will containg the final physical texture targets.

◆ TargetTexture1

FRDGTextureRef RuntimeVirtualTexture::FRenderGraphSetup::TargetTexture1 = nullptr

◆ TargetTexture2

FRDGTextureRef RuntimeVirtualTexture::FRenderGraphSetup::TargetTexture2 = nullptr

The documentation for this struct was generated from the following file: