Navigation
API > API/Runtime > API/Runtime/RenderCore > API/Runtime/RenderCore/FShaderSource
References
| Module | RenderCore |
| Header | /Engine/Source/Runtime/RenderCore/Public/ShaderSource.h |
| Include | #include "ShaderSource.h" |
| Source | /Engine/Source/Runtime/RenderCore/Private/ShaderSource.cpp |
void Set
(
FViewType InSrc,
int32 AdditionalSlack
)
Remarks
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.
Parameters
| Name | Description |
|---|---|
| InSrc | The source string to be copied |
| AdditionalSlack | optional additional space to allocate; this is on top of the automatic padding. |