Navigation
API > API/Runtime > API/Runtime/RenderCore
A uniform buffer resource.
| Name | TUniformBuffer |
| Type | class |
| Header File | /Engine/Source/Runtime/RenderCore/Public/UniformBuffer.h |
| Include Path | #include "UniformBuffer.h" |
Syntax
template<typename TBufferStruct>
class TUniformBuffer : public FRenderResource
Inheritance Hierarchy
- FRenderResource → TUniformBuffer
Derived Classes
- FDefaultLightmapResourceClusterUniformBuffer
- FDefaultMobileReflectionCaptureUniformBuffer
- FDefaultWorkingColorSpaceUniformBuffer
- FIdentityPrimitiveUniformBuffer
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TUniformBuffer() |
UniformBuffer.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~TUniformBuffer() |
UniformBuffer.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BufferUsage | EUniformBufferUsage | UniformBuffer.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Contents | uint8 * | UniformBuffer.h | ||
| UniformBufferRHI | TUniformBufferRef< TBufferStruct > | UniformBuffer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const uint8 * GetContents() |
UniformBuffer.h | ||
const TUniformBufferRef< TBufferStruct > & GetUniformBufferRef() |
UniformBuffer.h | ||
FRHIUniformBuffer * GetUniformBufferRHI() |
Accessors. | UniformBuffer.h | |
void SetContents
(
const TBufferStruct& NewContents |
UniformBuffer.h | ||
void SetContents
(
FRHICommandListBase& RHICmdList, |
Sets the contents of the uniform buffer. | UniformBuffer.h | |
void SetContentsToZero () |
UniformBuffer.h | ||
void SetContentsToZero
(
FRHICommandListBase& RHICmdList |
Sets the contents of the uniform buffer to all zeros. | UniformBuffer.h |
Overridden from FRenderResource
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void InitRHI
(
FRHICommandListBase& RHICmdList |
Initializes the RHI resources used by this resource. | UniformBuffer.h | |
virtual void ReleaseRHI () |
Releases the RHI resources used by this resource. | UniformBuffer.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void SetContentsNoUpdate
(
const TBufferStruct& NewContents |
Sets the contents of the uniform buffer. Used within calls to InitRHI | UniformBuffer.h |