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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss