![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <UniformBuffer.h>
Inheritance diagram for TUniformBuffer< TBufferStruct >:Public Attributes | |
| EUniformBufferUsage | BufferUsage |
Public Attributes inherited from FRenderResource | |
| ERenderResourceState | ResourceState = ERenderResourceState::Default |
Protected Member Functions | |
| void | SetContentsNoUpdate (const TBufferStruct &NewContents) |
Protected Member Functions inherited from FRenderResource | |
| void | SetFeatureLevel (const FStaticFeatureLevel InFeatureLevel) |
| const FStaticFeatureLevel | GetFeatureLevel () const |
| bool | HasValidFeatureLevel () const |
| template<typename T > | |
| FBufferRHIRef | CreateRHIBuffer (FRHICommandListBase &RHICmdList, T &InOutResourceObject, uint32 ResourceCount, EBufferUsageFlags InBufferUsageFlags, const TCHAR *InDebugName) |
| void | SetInitPhase (EInitPhase InInitPhase) |
Additional Inherited Members | |
Public Types inherited from FRenderResource | |
| enum class | EInitPhase : uint8 { Pre , Default , MAX } |
Static Public Member Functions inherited from FRenderResource | |
| static RENDERCORE_API void | ReleaseRHIForAllResources () |
| static RENDERCORE_API void | InitPreRHIResources () |
| static RENDERCORE_API void | ChangeFeatureLevel (ERHIFeatureLevel::Type NewFeatureLevel) |
| static RENDERCORE_API FName | SetScopeName (FName Name) |
Static Protected Member Functions inherited from FRenderResource | |
| static RENDERCORE_API FRHICommandListBase & | GetImmediateCommandList () |
A uniform buffer resource.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
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 FSpeedTreeWindNullUniformBuffer, FGPUSkinPassThroughFactoryNullUniformBuffer, FDefaultLightmapResourceClusterUniformBuffer, FDefaultMobileReflectionCaptureUniformBuffer, FEmptyPrecomputedLightingUniformBuffer, FEmptyIndirectLightingCacheUniformBuffer, FEmptyTranslucentSelfShadowUniformBuffer, and RuntimeVirtualTexture::FAstcParametersUniformBuffer.
|
inlineoverridevirtual |
Releases the RHI resources used by this resource. Called when leaving the state where both the resource and the RHI have been initialized. This is only called by the rendering thread.
Reimplemented from FRenderResource.
|
inline |
|
inline |
Sets the contents of the uniform buffer.
|
inlineprotected |
Sets the contents of the uniform buffer. Used within calls to InitRHI
|
inline |
|
inline |
Sets the contents of the uniform buffer to all zeros.
| EUniformBufferUsage TUniformBuffer< TBufferStruct >::BufferUsage |