UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
RHIValidationTransientResourceAllocator.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6
7#if ENABLE_RHI_VALIDATION
8
10{
11public:
14 {}
15
17
18 // Implementation of FRHITransientResourceAllocator interface
20 virtual bool SupportsResourceType(ERHITransientResourceType InType) const override final { return RHIAllocator->SupportsResourceType(InType); }
23 virtual void DeallocateMemory(FRHITransientTexture* InTexture, const FRHITransientAllocationFences& Fences) override final;
24 virtual void DeallocateMemory(FRHITransientBuffer* InBuffer, const FRHITransientAllocationFences& Fences) override final;
25 virtual void Flush(FRHICommandListImmediate&, FRHITransientAllocationStats*) override final;
26 virtual void Release(FRHICommandListImmediate&) override final;
27
28private:
29 // Actual RHI transient allocator which will get all functions forwarded
31
32 // All the allocated resources on the transient allocator
34 {
35 enum class EType
36 {
37 Texture,
38 Buffer,
39 };
40
41 FString DebugName;
42 EType ResourceType = EType::Texture;
43 };
44
47};
48
49#endif // ENABLE_RHI_VALIDATION
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
ERHITransientResourceType
Definition RHITransientResourceAllocator.h:178
ERHITransientResourceCreateMode
Definition RHITransientResourceAllocator.h:527
Definition RHICommandList.h:4626
Definition RHITransientResourceAllocator.h:23
Definition RHITransientResourceAllocator.h:489
Definition RHITransientResourceAllocator.h:441
Definition RHITransientResourceAllocator.h:399
Definition RHITransientResourceAllocator.h:536
virtual FRHITransientBuffer * CreateBuffer(const FRHIBufferCreateInfo &CreateInfo, const TCHAR *DebugName, const FRHITransientAllocationFences &Fences)=0
virtual FRHITransientTexture * CreateTexture(const FRHITextureCreateInfo &CreateInfo, const TCHAR *DebugName, const FRHITransientAllocationFences &Fences)=0
virtual bool SupportsResourceType(ERHITransientResourceType Type) const =0
virtual void SetCreateMode(ERHITransientResourceCreateMode CreateMode)
Definition RHITransientResourceAllocator.h:544
virtual void DeallocateMemory(FRHITransientTexture *Texture, const FRHITransientAllocationFences &Fences)=0
Definition UnrealString.h.inl:34
Definition RHIPipeline.h:55
EType
Definition AccessDetection.h:11
Definition RHIResources.h:1321
Definition RHIResources.h:1689