#include <RuntimeVirtualTextureComponent.h>
Component used to place a URuntimeVirtualTexture in the world.
◆ EStreamingTextureStatusFlags
| Enumerator |
|---|
| None | |
| HasVirtualTexture | |
| HasStreamingTexture | |
| InvalidStreamingTexture | |
| NonMatchingStreamingTextureSettings | |
◆ ApplyWorldOffset()
| void URuntimeVirtualTextureComponent::ApplyWorldOffset |
( |
const FVector & |
InOffset, |
|
|
bool |
bWorldShift |
|
) |
| |
|
overrideprotectedvirtual |
◆ BeginDestroy()
| void URuntimeVirtualTextureComponent::BeginDestroy |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ CalcBounds()
◆ CalculateStreamingTextureSettingsHash()
| uint64 URuntimeVirtualTextureComponent::CalculateStreamingTextureSettingsHash |
( |
| ) |
const |
|
protected |
Calculate a hash used to determine if the StreamingTexture contents are valid for use. The hash doesn't include whether the contents are up to date.
◆ CreateRenderState_Concurrent()
◆ DECLARE_MULTICAST_DELEGATE_TwoParams()
Delegate that this virtual texture will call to evaluated the full HidePrimitives state.
◆ DestroyRenderState_Concurrent()
| void URuntimeVirtualTextureComponent::DestroyRenderState_Concurrent |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ GetCustomMaterialData()
| FVector4f URuntimeVirtualTextureComponent::GetCustomMaterialData |
( |
| ) |
const |
Public getter for the custom material data on this component.
◆ GetHidePrimitivesDelegate()
Get the delegate used to extend the calculation of the HidePrimitives state.
◆ GetHidePrimitiveSettings()
| void URuntimeVirtualTextureComponent::GetHidePrimitiveSettings |
( |
bool & |
OutHidePrimitiveEditor, |
|
|
bool & |
OutHidePrimitiveGame |
|
) |
| const |
Get the full hide primitive state including the evaluating the GetHidePrimitivesDelegate delegate.
◆ GetLossyCompressionAmount()
Public getter for lossy compression setting.
◆ GetPriority()
Public getter for priority setting.
◆ GetScalabilityGroup()
| uint32 URuntimeVirtualTextureComponent::GetScalabilityGroup |
( |
| ) |
const |
|
inline |
Get group index of the scalability settings.
◆ GetStreamingMipsFixedColor()
Public getter for streaming mips fixed color.
◆ GetStreamingTexture()
Get the streaming virtual texture object on this component.
◆ GetStreamingTextureStatus()
Returns the status of the StreamingTexure contents for the specified shading path
◆ GetTexelSnapTransform()
| FTransform URuntimeVirtualTextureComponent::GetTexelSnapTransform |
( |
| ) |
const |
Get a translation to account for any vertex sample offset from the use of bSnapBoundsToLandscape.
◆ GetVirtualTexture()
Get the runtime virtual texture object on this component.
◆ Invalidate()
This function marks an area of the runtime virtual texture as dirty.
- Parameters
-
| WorldBounds | : The world space bounds of the pages to invalidate. |
| InvalidatePriority | Allows the pages affected by this area to get processed in priority. This allows increased responsiveness when there are more pages being updated than can be handled in a given frame (throttling) |
◆ IsActiveInWorld()
| bool URuntimeVirtualTextureComponent::IsActiveInWorld |
( |
| ) |
const |
|
protected |
- Returns
- true if the owning World is one where URuntimeVirtualTextureComponent should actually do anything (avoids updating RVT for non-game/PIE/editor world types)
◆ IsEnabledInScene()
| bool URuntimeVirtualTextureComponent::IsEnabledInScene |
( |
| ) |
const |
Get if the runtime virtual texture should be fully instantiated by it's render proxy.
◆ IsReadyForFinishDestroy()
| bool URuntimeVirtualTextureComponent::IsReadyForFinishDestroy |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ IsScalable()
| bool URuntimeVirtualTextureComponent::IsScalable |
( |
| ) |
const |
|
inline |
Get if scalability settings are enabled.
◆ IsStreamingLowMips()
| bool URuntimeVirtualTextureComponent::IsStreamingLowMips |
( |
EShadingPath |
ShadingPath | ) |
const |
Get if we want to use any streaming low mips on this component.
◆ IsStreamingLowMipsOnly()
| bool URuntimeVirtualTextureComponent::IsStreamingLowMipsOnly |
( |
| ) |
|
Public getter for using streaming low mips only.
◆ IsStreamingTextureInvalid()
| bool URuntimeVirtualTextureComponent::IsStreamingTextureInvalid |
( |
EShadingPath |
ShadingPath | ) |
const |
Returns whether the StreamingTexure contents is valid for use for the specified shading path
◆ NumStreamingMips()
| int32 URuntimeVirtualTextureComponent::NumStreamingMips |
( |
| ) |
const |
|
inline |
Public getter for virtual texture streaming low mips
◆ RequestPreload()
Request preload of an area of the runtime virtual texture at a given mip level.
- Parameters
-
| WorldBounds | : The world space bounds of the pages to preload. |
| Level | : The mip map level to preload. |
◆ SendRenderTransform_Concurrent()
| void URuntimeVirtualTextureComponent::SendRenderTransform_Concurrent |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ Serialize()
| void URuntimeVirtualTextureComponent::Serialize |
( |
FArchive & |
Ar | ) |
|
|
overrideprotectedvirtual |
◆ SetVirtualTexture()
Set the runtime virtual texture object on this component.
◆ ShouldCreateRenderState()
| bool URuntimeVirtualTextureComponent::ShouldCreateRenderState |
( |
| ) |
const |
|
overrideprotectedvirtual |
◆ FRuntimeVirtualTextureComponentDetailsCustomization
| friend class FRuntimeVirtualTextureComponentDetailsCustomization |
|
friend |
◆ bBuildStreamingMipsButton
| bool URuntimeVirtualTextureComponent::bBuildStreamingMipsButton |
|
protected |
Placeholder for details customization button.
◆ bEnableForNaniteOnly
| bool URuntimeVirtualTextureComponent::bEnableForNaniteOnly = false |
|
protected |
Enable the virtual texture only when Nanite is enabled. Can be used for a Displacement virtual texture with Nanite tessellation.
◆ bEnableScalability
| bool URuntimeVirtualTextureComponent::bEnableScalability = false |
|
protected |
Set to true to enable scalability settings for the virtual texture.
◆ bHidePrimitives
| bool URuntimeVirtualTextureComponent::bHidePrimitives = false |
|
protected |
Hide primitives in the main pass. Hidden primitives will be those that draw to this virtual texture with 'Draw in Main Pass' set to 'From Virtual Texture'.
◆ BoundsAlignActor
Actor to align rotation to. If set this actor is always included in the bounds calculation.
◆ bSetBoundsButton
| bool URuntimeVirtualTextureComponent::bSetBoundsButton |
|
protected |
Placeholder for details customization button.
◆ bSnapBoundsToLandscape
| bool URuntimeVirtualTextureComponent::bSnapBoundsToLandscape |
|
protected |
If the Bounds Align Actor is a Landscape then this will snap the bounds so that virtual texture texels align with landscape vertex positions.
◆ bUseMinMaterialQuality
| bool URuntimeVirtualTextureComponent::bUseMinMaterialQuality = false |
|
protected |
Use a minimum material quality to determine if we enable the virtual texture.
◆ bUseStreamingMipsFixedColor
| bool URuntimeVirtualTextureComponent::bUseStreamingMipsFixedColor = false |
|
protected |
Build the streaming low mips using a fixed color.
◆ bUseStreamingMipsInEditor_DEPRECATED
| bool URuntimeVirtualTextureComponent::bUseStreamingMipsInEditor_DEPRECATED = false |
|
protected |
◆ bUseStreamingMipsOnly
| bool URuntimeVirtualTextureComponent::bUseStreamingMipsOnly = false |
|
protected |
Whenever streaming low mips are in use, only show the streaming mips and never show runtime generated pages.
◆ DestroyFence
A fence to track render thread has finished with StreamingTexture data before destroy.
◆ EnableInGamePerPlatform
Per platform overrides for enabling the virtual texture. Only affects In-Game and PIE.
◆ ExpandBounds
| float URuntimeVirtualTextureComponent::ExpandBounds = 0 |
|
protected |
Amount to expand the Bounds during calculation.
◆ HidePrimitivesDelegate
◆ LossyCompressionAmount
How aggressively should any relevant lossy compression be applied. For compressors that support EncodeSpeed (i.e. Oodle), this is only applied if enabled (see Project Settings -> Texture Encoding). Note that this is in addition to any unavoidable loss due to the target format. Selecting "No Lossy Compression" will not result in zero distortion for BCn formats.
◆ MinInGameMaterialQuality
The minimum material quality for which we enable the virtual texture. Only affects In-Game and PIE.
◆ ScalabilityGroup
| uint32 URuntimeVirtualTextureComponent::ScalabilityGroup = 0 |
|
protected |
Group index of the scalability settings to use for the virtual texture.
◆ SceneProxy
Scene proxy object. Managed by the scene but stored here.
◆ StreamingMipsFixedColor
| FLinearColor URuntimeVirtualTextureComponent::StreamingMipsFixedColor |
|
protected |
Fixed color to use when building the streaming low mips. This only affects BaseColor and Displacement attributes. The Red channel is used for fixed Displacement.
◆ StreamingTexture
Texture object containing streamed low mips. This can reduce rendering update cost.
◆ StreamLowMips
| int32 URuntimeVirtualTextureComponent::StreamLowMips = 0 |
|
protected |
Number of streaming low mips to build for the virtual texture.
◆ UseStreamingMipsInEditorMode
Use streaming low mips when rendering this runtime virtual texture in the editor. Allows to visualize the baked streaming low mips. r.VT.RVT.StreamingMips.UseInEditor can also be used to allow this across all RVT components (for debugging purposes)
◆ VirtualTexture
The virtual texture object to use.
The documentation for this class was generated from the following files: