Navigation
API > API/Runtime > API/Runtime/RenderCore
Inheritance Hierarchy
- FRenderResource
- TUniformBuffer
- FDefaultLightmapResourceClusterUniformBuffer
- FIdentityPrimitiveUniformBuffer
References
| Module | RenderCore |
| Header | /Engine/Source/Runtime/RenderCore/Public/UniformBuffer.h |
| Include | #include "UniformBuffer.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 |
||
| void | SetContents
(
FRHICommandListBase& RHICmdList, |
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 | |||
| void | SetContentsToZero
(
FRHICommandListBase& RHICmdList |
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. |