![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <TextureResource.h>
Inheritance diagram for FVirtualTexture2DResource:Protected Attributes | |
| FName | TextureName |
| FName | PackageName |
| uint32 | FullNameHash = 0 |
| TEnumAsByte< ESamplerFilter > | Filter = SF_Point |
| TEnumAsByte< ESamplerAddressMode > | AddressU = AM_Wrap |
| TEnumAsByte< ESamplerAddressMode > | AddressV = AM_Wrap |
| ETextureCreateFlags | TexCreateFlags = ETextureCreateFlags::None |
| bool | bSinglePhysicalSpace = false |
| bool | bRequiresSinglePhysicalPool = false |
| EVTProducerPriority | VirtualTextureStreamingPriority |
| int32 | FirstMipToUse = 0 |
| struct FVirtualTextureBuiltData * | VTData = nullptr |
| class IAllocatedVirtualTexture * | AllocatedVT = nullptr |
| FVirtualTextureProducerHandle | ProducerHandle |
Protected Attributes inherited from FTextureResource | |
| FTextureReferenceRHIRef | TextureReferenceRHI |
| FVirtualTexture2DResource::FVirtualTexture2DResource | ( | ) |
| FVirtualTexture2DResource::FVirtualTexture2DResource | ( | const UTexture2D * | InOwner, |
| struct FVirtualTextureBuiltData * | InVTData, | ||
| int32 | FirstMipToUse | ||
| ) |
|
virtual |
| class IAllocatedVirtualTexture * FVirtualTexture2DResource::AcquireAllocatedVT | ( | ) |
| uint32 FVirtualTexture2DResource::GetAllocatedvAddress | ( | ) | const |
|
inline |
FVirtualTexture2DResource may have an AllocatedVT, which represents a page table allocation for the virtual texture. VTs used by materials generally don't need their own allocation, since the material has its own page table allocation for each VT stack. VTs used as lightmaps need their own allocation. Also VTs open in texture editor will have a temporary allocation. GetAllocatedVT() will return the current allocation if one exists. AcquireAllocatedVT() will make a new allocation if needed, and return it. ReleaseAllocatedVT() will free any current allocation.
|
virtual |
Reimplemented in FMaterialCacheVirtualTextureResource, and FVirtualTextureAdapterRenderResource.
|
virtual |
Reimplemented in FMaterialCacheVirtualTextureResource, and FVirtualTextureAdapterRenderResource.
|
virtual |
Reimplemented in FMaterialCacheVirtualTextureResource, and FVirtualTextureAdapterRenderResource.
|
virtual |
Reimplemented in FMaterialCacheVirtualTextureResource, and FVirtualTextureAdapterRenderResource.
|
virtual |
Reimplemented in FMaterialCacheVirtualTextureResource, and FVirtualTextureAdapterRenderResource.
|
virtual |
Reimplemented in FMaterialCacheVirtualTextureResource, and FVirtualTextureAdapterRenderResource.
|
inline |
|
virtual |
Reimplemented in FMaterialCacheVirtualTextureResource, and FVirtualTextureAdapterRenderResource.
|
overridevirtual |
Returns the width of the texture in pixels.
Reimplemented from FTexture.
|
overridevirtual |
Returns the height of the texture in pixels.
Reimplemented from FTexture.
|
virtual |
Reimplemented in FMaterialCacheVirtualTextureResource, and FVirtualTextureAdapterRenderResource.
|
inlinevirtual |
Reimplemented from FTextureResource.
|
inlinevirtual |
Reimplemented from FTextureResource.
|
overridevirtual |
Initializes the RHI resources used by this resource. Called when entering the state where both the resource and the RHI have been initialized. This is only called by the rendering thread.
Reimplemented from FRenderResource.
Reimplemented in FMaterialCacheVirtualTextureResource, and FVirtualTextureAdapterRenderResource.
| void FVirtualTexture2DResource::ReleaseAllocatedVT | ( | ) |
|
overridevirtual |
|
protected |
|
protected |
|
protected |
Local allocated VT objects used for editor views etc.
|
protected |
Cached sampler config
|
protected |
Mip offset
|
protected |
A hash of the texture asset name
|
protected |
|
protected |
Cached flags for texture creation.
|
protected |
|
protected |
Built data owned by texture asset