Navigation
API > API/Runtime > API/Runtime/Engine
Inheritance Hierarchy
- FRenderResource
- TUniformBuffer
- FDefaultLightmapResourceClusterUniformBuffer
- FDefaultMobileReflectionCaptureUniformBuffer
- FDefaultWorkingColorSpaceUniformBuffer
- FIdentityPrimitiveUniformBuffer
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/MeshBatch.h |
| Include | #include "MeshBatch.h" |
Syntax
template<typename TBufferStruct>
class TUniformBuffer : public FRenderResource
Remarks
A uniform buffer resource.
Variables
| Type | Name | Description | |
|---|---|---|---|
| EUniformBufferUsage | BufferUsage |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| const uint8 * | GetContents () |
||
| const TUniformBufferRef< TBufferStruct > & | |||
| FRHIUniformBuffer * | Accessors. | ||
| void | SetContents
(
const TBufferStruct& NewContents |
Sets the contents of the uniform buffer. | |
| void | SetContentsNoUpdate
(
const TBufferStruct& NewContents |
Sets the contents of the uniform buffer. Used within calls to InitRHI | |
| void | Sets the contents of the uniform buffer to all zeros. |
Overridden from FRenderResource
| Type | Name | Description | |
|---|---|---|---|
| void | InitRHI
(
FRHICommandListBase& RHICmdList |
Initializes the RHI resources used by this resource. | |
| void | ReleaseRHI () |
Releases the RHI resources used by this resource. |