Navigation
API > API/Runtime > API/Runtime/RHI > API/Runtime/RHI/FRHIUniformBufferLayoutInitializ-
Description
This hash is stored with compiled shaders and is used for two things.
Validation that the data layout did not change between compilation and runtime.
Passing to FindUniformBufferStructByLayoutHash() to find the associated uniform buffer layouts (and specifically the runtime slot mappings) for the shader. Possibly it would be better to separate those concerns, but that would require more data stored per shader.
| Name | ComputeHash |
| Type | function |
| Header File | /Engine/Source/Runtime/RHI/Public/RHIUniformBufferLayoutInitializer.h |
| Include Path | #include "RHIUniformBufferLayoutInitializer.h" |
void ComputeHash()