Navigation
Unreal Engine C++ API Reference > Developer > ShaderCompilerCommon
References
Module | ShaderCompilerCommon |
Header | /Engine/Source/Developer/ShaderCompilerCommon/Public/ShaderCompilerCommon.h |
Include | #include "ShaderCompilerCommon.h" |
Source | /Engine/Source/Developer/ShaderCompilerCommon/Private/ShaderCompilerCommon.cpp |
void RemoveUniformBuffersFromSource
(
const [FShaderCompilerEnvironment](API\Runtime\RenderCore\FShaderCompilerEnvironment) & Environment,
[FString](API\Runtime\Core\Containers\FString) & PreprocessedShaderSource
)
Remarks
The cross compiler doesn't yet support struct initializers needed to construct static structs for uniform buffers Replace all uniform buffer struct member references (View.WorldToClip) with a flattened name that removes the struct dependency (View_WorldToClip)