Navigation
API > API/Runtime > API/Runtime/RHI
The list of flags declaring which binding models are allowed for a uniform buffer layout.
| Name | EUniformBufferBindingFlags |
| Type | enum |
| Header File | /Engine/Source/Runtime/RHI/Public/RHIDefinitions.h |
| Include Path | #include "RHIDefinitions.h" |
Syntax
enum EUniformBufferBindingFlags
{
Shader = 1 << 0,
Static = 1 << 1,
StaticAndShader = Static | Shader,
}
Values
| Name | Remarks |
|---|---|
| Shader | If set, the uniform buffer can be bound as an RHI shader parameter on an RHI shader (i.e. RHISetShaderUniformBuffer). |
| Static | If set, the uniform buffer can be bound globally through a static slot (i.e. RHISetStaticUniformBuffers). |
| StaticAndShader | If set, the uniform buffer can be bound globally or per-shader, depending on the use case. |