EUniformBufferBaseType

The base type of a value in a uniform buffer.

Windows
MacOS
Linux

References

Module

RHI

Header

/Engine/Source/Runtime/RHI/Public/RHIDefinitions.h

Include

#include "RHIDefinitions.h"

Syntax

enum EUniformBufferBaseType
{
    UBMT_INVALID,
    UBMT_BOOL,
    UBMT_INT32,
    UBMT_UINT32,
    UBMT_FLOAT32,
    UBMT_TEXTURE,
    UBMT_SRV,
    UBMT_UAV,
    UBMT_SAMPLER,
    UBMT_RDG_TEXTURE,
    UBMT_RDG_TEXTURE_SRV,
    UBMT_RDG_TEXTURE_UAV,
    UBMT_RDG_TEXTURE_COPY_DEST,
    UBMT_RDG_BUFFER,
    UBMT_RDG_BUFFER_SRV,
    UBMT_RDG_BUFFER_UAV,
    UBMT_RDG_BUFFER_COPY_DEST,
    UBMT_NESTED_STRUCT,
    UBMT_INCLUDED_STRUCT,
    UBMT_REFERENCED_STRUCT,
    UBMT_RENDER_TARGET_BINDING_SLOTS,
    EUniformBufferBaseType_Num,
    EUniformBufferBaseType_NumBits      = 5,
}

Values

Name

Description

UBMT_INVALID

UBMT_BOOL

Invalid type when trying to use bool, to have explicit error message to programmer on why they shouldn't use bool in shader parameter structures.

UBMT_INT32

Parameter types.

UBMT_UINT32

UBMT_FLOAT32

UBMT_TEXTURE

RHI resources not tracked by render graph.

UBMT_SRV

UBMT_UAV

UBMT_SAMPLER

UBMT_RDG_TEXTURE

Resources tracked by render graph.

UBMT_RDG_TEXTURE_SRV

UBMT_RDG_TEXTURE_UAV

UBMT_RDG_TEXTURE_COPY_DEST

UBMT_RDG_BUFFER

UBMT_RDG_BUFFER_SRV

UBMT_RDG_BUFFER_UAV

UBMT_RDG_BUFFER_COPY_DEST

UBMT_NESTED_STRUCT

Nested structure.

UBMT_INCLUDED_STRUCT

Structure that is nested on C++ side, but included on shader side.

UBMT_REFERENCED_STRUCT

GPU Indirection reference of struct, like is currently named Uniform buffer.

UBMT_RENDER_TARGET_BINDING_SLOTS

Structure dedicated to setup render targets for a rasterizer pass.

EUniformBufferBaseType_Num

EUniformBufferBaseType_NumBits

Remarks

The base type of a value in a uniform buffer.

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