Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/HLSLTree > API/Runtime/Engine/HLSLTree/FPreparedComponent
Syntax
FEmitScope &42; LoopScope
Remarks
If 'Evaluation' is a loop evaluation, the loop status is only applied inside this scope. This is important for constant-folding and preshaders working with loops. Consider something like this: int Value = 0; for(int Index = 0; Index < 10; ++Index) { Value += Index; } In this example, 'Value' would have 'ConstantLoop' evaluation, with LoopScope set to the for-loop scope. This means that within the scope of the loop, 'Value' is not constant, but it is constant outside the loop. Outside of LoopScope, 'ConstantLoop' evaluation will switch to 'Constant'