Jump to content

View more

Image of the Day

I've done more tweaks to my color palette selector. #gamedev #screenshotsaturday #madewithunity https://t.co/aJXrC4ruRg
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

SAS Scripting - LoopByCount

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 dAND3h   Members   

220
Like
0Likes
Like

Posted 29 November 2012 - 04:07 PM

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.

#2 Steve_Segreto   Members   

2059
Like
0Likes
Like

Posted 29 November 2012 - 06:08 PM

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

#3 dAND3h   Members   

220
Like
0Likes
Like

Posted 30 November 2012 - 01:25 PM

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?

Edited by dAND3h, 30 November 2012 - 01:25 PM.





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.