engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
IVirtualTexture类 参考abstract

This is the interface that can produce tiles of virtual texture data This can be extended to represent different ways of generating VT, such as disk streaming, runtime compositing, or whatever It's provided to the renderer module 更多...

#include <VirtualTexturing.h>

Public 成员函数

virtual uint32 GetLocalMipBias (uint8 vLevel, uint32 vAddress) const
 Gives a localized mip bias for the given local vAddress. 更多...
 
virtual IVirtualTextureFinalizer * ProducePageData (FRHICommandListImmediate &RHICmdList, ERHIFeatureLevel::Type FeatureLevel, EVTProducePageFlags Flags, const FVirtualTextureProducerHandle &ProducerHandle, uint8 LayerMask, uint8 vLevel, uint64 vAddress, uint64 RequestHandle, const FVTProduceTargetLayer *TargetLayers)=0
 Upload page data to the cache, data must have been previously requested, and reported either 'Available' or 'Pending' The system will attempt to call RequestPageData/ProducePageData only once for a given vLevel/vAddress, with all the requested layers set in LayerMask, this is important for certain types of procedural producers that may generate multiple layers of VT data at the same time It's valid to produce 'Pending' page data, but in this case ProducePageData may block until data is ready Only called from render thread 更多...
 
virtual FVTRequestPageResult RequestPageData (const FVirtualTextureProducerHandle &ProducerHandle, uint8 LayerMask, uint8 vLevel, uint64 vAddress, EVTRequestPagePriority Priority)=0
 Makes a request for the given page data. 更多...
 

详细描述

This is the interface that can produce tiles of virtual texture data This can be extended to represent different ways of generating VT, such as disk streaming, runtime compositing, or whatever It's provided to the renderer module

成员函数说明

◆ GetLocalMipBias()

virtual uint32 IVirtualTexture::GetLocalMipBias ( uint8  vLevel,
uint32  vAddress 
) const
inlinevirtual

Gives a localized mip bias for the given local vAddress.

This is used to implement sparse VTs, the bias is number of mip levels to add to reach a resident page Must be thread-safe, may be called from any thread

参数
vLevelThe mipmap level to check
vAddressVirtual address to check
返回
Mip bias to be added to vLevel to reach a resident page at the given address

◆ ProducePageData()

virtual IVirtualTextureFinalizer * IVirtualTexture::ProducePageData ( FRHICommandListImmediate &  RHICmdList,
ERHIFeatureLevel::Type  FeatureLevel,
EVTProducePageFlags  Flags,
const FVirtualTextureProducerHandle &  ProducerHandle,
uint8  LayerMask,
uint8  vLevel,
uint64  vAddress,
uint64  RequestHandle,
const FVTProduceTargetLayer *  TargetLayers 
)
pure virtual

Upload page data to the cache, data must have been previously requested, and reported either 'Available' or 'Pending' The system will attempt to call RequestPageData/ProducePageData only once for a given vLevel/vAddress, with all the requested layers set in LayerMask, this is important for certain types of procedural producers that may generate multiple layers of VT data at the same time It's valid to produce 'Pending' page data, but in this case ProducePageData may block until data is ready Only called from render thread

参数
RHICmdListUsed to write any commands required to generate the VT page data
FeatureLevelThe current RHI feature level
ProducerHandleHandle to this producer
LayerMaskMask of requested layers; can be used to only produce data for these layers as an optimization, or ignored if all layers are logically produced together
vLevelThe mipmap level of the data
vAddressBit-interleaved x,y page indexes
RequestHandleopaque handle returned from 'RequestPageData'
TargetLayersArray of 'FVTProduceTargetLayer' structs, gives location where each layer should write data
返回
a 'IVirtualTextureFinalizer' which must be finalized to complete the operation

◆ RequestPageData()

virtual FVTRequestPageResult IVirtualTexture::RequestPageData ( const FVirtualTextureProducerHandle &  ProducerHandle,
uint8  LayerMask,
uint8  vLevel,
uint64  vAddress,
EVTRequestPagePriority  Priority 
)
pure virtual

Makes a request for the given page data.

For data sources that can generate data immediately, it's reasonable for this method to do nothing, and simply return 'Available' Only called from render thread

参数
ProducerHandleHandle to this producer, can be used as a UID for this producer for any internal caching mechanisms
LayerMaskMask of requested layers
vLevelThe mipmap level of the data
vAddressBit-interleaved x,y page indexes
PriorityPriority of the request, used to drive async IO/task priority needed to generate data for request
返回
FVTRequestPageResult describing the availability of the request

该类的文档由以下文件生成: