SAS Scripting - LoopByCount

Started by
1 comment, last by dAND3h 11 years, 4 months ago
I am trying to make a pass loop using SAS scripting in FX composer. It doesn't want to work. The error is:

"Error This CgFX effect uses a LoopByCount which is not supported: LoopByCount=gIterationsPerFrame. The loop structure will be ignored and enclosed commands will be executed once"


It seems odd seeing as I am not using CgFX but HLSL. Is it still possible to loop using SAS scripting?

p.s. I am using FX composer to write and test the shader.

Advertisement
Is LoopByCount being assigned <= 0 value perhaps? What is gIterationsPerFrame equal to?

float gIterationsPerFrame
<string UIName = "Kawase Iterations";
string UIWidget = "slider";
float UIMin = 0;
float UIMax = 100;
float UIStep = 1;
> = 10;

It is being assigned a number > 0. Does HLSL maybe not support this aspect of the SAS scripting?

This topic is closed to new replies.

Advertisement