Navigation
API > API/Runtime > API/Runtime/RenderCore > API/Runtime/RenderCore/FShaderSource
Description
Set the given string as the contents of this shader source object. The inner allocation will grow to fit the string contents as needed. Note that this will incur a memcpy of the string contents.
| Name | Set |
| Type | function |
| Header File | /Engine/Source/Runtime/RenderCore/Public/ShaderSource.h |
| Include Path | #include "ShaderSource.h" |
| Source | /Engine/Source/Runtime/RenderCore/Private/ShaderSource.cpp |
void Set
(
FViewType InSrc,
int32 AdditionalSlack
)
Parameters
| Name | Remarks |
|---|---|
| InSrc | The source string to be copied |
| AdditionalSlack | optional additional space to allocate; this is on top of the automatic padding. |