FOpenGLDynamicRHI::RHICreateUniformBuffer

FlushType: Thread safe, but varies depending on the RHI.

Windows
MacOS
Linux

Override Hierarchy

FDynamicRHI::RHICreateUniformBuffer()

FOpenGLDynamicRHI::RHICreateUniformBuffer()

References

Module

OpenGLDrv

Header

/Engine/Source/Runtime/OpenGLDrv/Public/OpenGLDrv.h

Include

#include "OpenGLDrv.h"

Source

/Engine/Source/Runtime/OpenGLDrv/Private/OpenGLUniformBuffer.cpp

Syntax

virtual FUniformBufferRHIRef RHICreateUniformBuffer
(
    const void * Contents,
    const FRHIUniformBufferLayout & Layout,
    EUniformBufferUsage Usage,
    EUniformBufferValidation Validation
)

Remarks

Creates a uniform buffer. The contents of the uniform buffer are provided in a parameter, and are immutable. CAUTION: Even though this is marked as threadsafe, it is only valid to call from the render thread or the RHI thread. Thus is need not be threadsafe on platforms that do not support or aren't using an RHIThread

Returns

The new uniform buffer.

Parameters

Parameter

Description

Contents

A pointer to a memory block of size NumBytes that is copied into the new uniform buffer.

NumBytes

The number of bytes the uniform buffer should contain.

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