Navigation
API > API/Runtime > API/Runtime/RenderCore
A reference to a uniform buffer RHI resource with a specific structure.
| Name | TUniformBufferRef |
| Type | class |
| Header File | /Engine/Source/Runtime/RenderCore/Public/ShaderParameterMacros.h |
| Include Path | #include "ShaderParameterMacros.h" |
Syntax
template<typename TBufferStruct>
class TUniformBufferRef : public TRefCountPtr< FRHIUniformBuffer >
Inheritance Hierarchy
- TRefCountPtr → TUniformBufferRef
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Initializes the reference to null. | ShaderParameterMacros.h | ||
TUniformBufferRef
(
FRHIUniformBuffer* InRHIRef |
Construct an instance from an existing RHI uniform buffer pointer. | ShaderParameterMacros.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void UpdateUniformBufferImmediate
(
const TBufferStruct& Value |
ShaderParameterMacros.h | ||
void UpdateUniformBufferImmediate
(
FRHICommandListBase& RHICmdList, |
ShaderParameterMacros.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TUniformBufferRef< TBufferStruct > CreateEmptyUniformBufferImmediate
(
EUniformBufferUsage Usage |
Creates a uniform buffer with the given value, and returns a structured reference to it. | ShaderParameterMacros.h | |
static TUniformBufferRef< TBufferStruct > CreateUniformBufferImmediate
(
const TBufferStruct& Value, |
Creates a uniform buffer with the given value, and returns a structured reference to it. | ShaderParameterMacros.h |