TUniformBufferRef

A reference to a uniform buffer RHI resource with a specific structure.

Windows
MacOS
Linux

Inheritance Hierarchy

TRefCountPtr

TUniformBufferRef

Syntax

template<typename TBufferStruct>
class TUniformBufferRef : public TRefCountPtr< FRHIUniformBuffer >

Remarks

A reference to a uniform buffer RHI resource with a specific structure.

Constructors

Name Description

Public function

TUniformBufferRef()

Initializes the reference to null.

Functions

Name Description

Public function Static

FLocalUnifor...

 

CreateLocalUniformBuffer

(
    FRHICommandList& RHICmdList,
    const TBufferStruct& Value,
    EUniformBufferUsage Usage
)

Creates a uniform buffer with the given value, and returns a structured reference to it.

Public function Static

TUniformBuff...

 

CreateUniformBufferImmediate

(
    const TBufferStruct& Value,
    EUniformBufferUsage Usage,
    EUniformBufferValidation Validation
)

Creates a uniform buffer with the given value, and returns a structured reference to it.

Public function

void

 

UpdateUniformBufferImmediate

(
    const TBufferStruct& Value
)

References

Module

RenderCore

Header

Runtime/RenderCore/Public/ShaderParameterMacros.h

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