Navigation
API > API/Runtime > API/Runtime/RenderCore > API/Runtime/RenderCore/FShaderSource > API/Runtime/RenderCore/FShaderSource/ShrinkToLen
References
| Module | RenderCore |
| Header | /Engine/Source/Runtime/RenderCore/Public/ShaderSource.h |
| Include | #include "ShaderSource.h" |
void ShrinkToLen
(
int32 Num,
EAllowShrinking AllowShrinking
)
Remarks
Reduces the set size of the stored string length, optionally shrinking the allocation.
Parameters
| Name | Description |
|---|---|
| Num | the desired allocation size (padding bytes will be added on top of this) |
| AllowShrinking | whether to reallocate or keep the existing larger size allocation |