Navigation
API > API/Runtime > API/Runtime/RenderCore
Description
Create a block of source code to be injected in the preprocessed shader code. The Block will be put into a #line directive to show up in case shader compilation failures happen in this code block.
| Name | MakeInjectedShaderCodeBlock |
| Type | function |
| Header File | /Engine/Source/Runtime/RenderCore/Public/ShaderCore.h |
| Include Path | #include "ShaderCore.h" |
| Source | /Engine/Source/Runtime/RenderCore/Private/ShaderCore.cpp |
FString MakeInjectedShaderCodeBlock
(
const TCHAR * BlockName,
const FString & CodeToInject
)