TUniformBuffer

A uniform buffer resource.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

RenderCore

Header

/Engine/Source/Runtime/RenderCore/Public/ShaderParameterUtils.h

Include

#include "ShaderParameterUtils.h"

Syntax

template<typename TBufferStruct>
class TUniformBuffer : public FRenderResource

Remarks

A uniform buffer resource.

Variables

Name Description

Public variable

EUniformBufferU...

 

BufferUsage

Constructors

Name Description

Public function

TUniformBuffer()

Destructors

Name Description

Public function

~TUniformBuffer()

Functions

Name Description

Public function Const

const uint8 ...

 

GetContents()

Public function Const

const TUnifo...

 

GetUniformBufferRef()

Public function Const

FRHIUniformB...

 

GetUniformBufferRHI()

Accessors.

Public function

void

 

SetContents

(
    const TBufferStruct& NewContents
)

Sets the contents of the uniform buffer.

Protected function

void

 

SetContentsNoUpdate

(
    const TBufferStruct& NewContents
)

Sets the contents of the uniform buffer. Used within calls to InitDynamicRHI

Public function

void

 

SetContentsToZero()

Sets the contents of the uniform buffer to all zeros.

Overridden from FRenderResource

Name Description

Public function Virtual

void

 

InitDynamicRHI()

Initializes the dynamic RHI resource and/or RHI render target used by this resource.

Public function Virtual

void

 

ReleaseDynamicRHI()

Releases the dynamic RHI resource and/or RHI render target resources used by this resource.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback