Back in the saddle
Bwain| No Comments »Been working on The Mummy III, haven’t worked on Bwain in a while. I chopped up a copy of this, to give to Cecil. But now, its back to fleshing out the shading language. For loops were done, onto while loops…..
Crap, I forgot… I was in the middle of implementing break/continue. Should get that working first…. The big problem is finding the nearest enclosing while/for/switch statement. I can either do a recursive search from the base statement to a given leaf to find its enclosing path, then trace up. OR, have all commands keep a pointer to their parent. We’ll do the latter. That will handle 95% of the cases. I can come up with examples that will break it, but just want to get this started.
The grammar and the script commands are implemented for break and continue. Break seems easiest to start with. For the shading language, I just need to disable the cpu thread when break is executed.
While debugging ‘break’, I’ve been thinking about having a more general simd debugging environment. Something that would allow for stepping and breaking assembly instructions, display the thead activation state, examine variables, etc.
What would also be nice is to clean up the simd execution api, possibly to have it more similar to the CVEX context from Sidefx.



