Sign in to follow this  
Followers 0
dAND3h

SAS Scripting - LoopByCount

2 posts in this topic

I am trying to make a pass loop using SAS scripting in FX composer. It doesn't want to work. The error is:

[size=3][i]"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"[/i][/size]


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.
0

Share this post


Link to post
Share on other sites
[CODE]
float gIterationsPerFrame
<string UIName = "Kawase Iterations";
string UIWidget = "slider";
float UIMin = 0;
float UIMax = 100;
float UIStep = 1;
> = 10;
[/CODE]
It is being assigned a number > 0. Does HLSL maybe not support this aspect of the SAS scripting? Edited by dAND3h
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0