Navigation
API > API/Runtime > API/Runtime/RHI
The base type of RHI resources.
| Name | FRHIResource |
| Type | class |
| Header File | /Engine/Source/Runtime/RHI/Public/RHIResources.h |
| Include Path | #include "RHIResources.h" |
Syntax
class FRHIResource
Derived Classes
FRHIResource derived class hierarchy
- FRHIRenderQueryPool
- FRHIStagingBuffer
- FRHIShaderLibrary
- FRHIUniformBufferLayout
- FRHIShader
- FRHIBlendState
- FRHIBoundShaderState
- FRHIViewableResource
- FRHIComputePipelineState
- FRHICustomPresent
- FRHIDepthStencilState
- FRHIGPUFence
- FRHIGraphicsPipelineState
- FRHIRasterizerState
- FRHIRayTracingAccelerationStructure
- FRHIRayTracingPipelineState
- FRHIRenderQuery
- FRHIResourceCollection
- FRHISamplerState
- FRHIShaderBindingTable
- FRHIShaderBundle
- FRHIStreamSourceSlot
- FRHIUniformBuffer
- FRHIVertexDeclaration
- FRHIView
- FRHIViewport
- FRHIWorkGraphPipelineState
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FRHIResource
(
ERHIResourceType InResourceType |
RHIResources.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FRHIResource() |
RHI resources should only be destructed via the deletion queue, so this is protected to prevent others from 'delete'ing these directly. | RHIResources.h |
Classes
| Name | Remarks |
|---|---|
| FAtomicFlags |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| CurrentlyDeleting | thread_local FRHIResource const * | RHIResources.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AtomicFlags | FAtomicFlags | RHIResources.h | ||
| bAllowExtendLifetime | uint8 | RHIResources.h | ||
| bCommitted | uint8 | RHIResources.h | ||
| FRHICommandListImmediate | friend | RHIResources.h | ||
| ResourceType | const ERHIResourceType | RHIResources.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
uint32 AddRef() |
RHIResources.h | ||
void DisableLifetimeExtension() |
RHIResources.h | ||
FName GetOwnerName() |
RHIResources.h | ||
uint32 GetRefCount() |
RHIResources.h | ||
ERHIResourceType GetType() |
RHIResources.h | ||
bool IsValid() |
RHIResources.h | ||
uint32 Release() |
RHIResources.h | ||
void SetOwnerName
(
FName InOwnerName |
RHIResources.h |
Protected
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void DeleteResources
(
TArray< FRHIResource* > const& Resources |
RHIResources.h | ||
static void GatherResourcesToDelete
(
TArray< FRHIResource* >& OutResources, |
RHIResources.h |