From: Klaus Elmquist Nielsen (sorry.but@no.email.address.com)
Subject: Re: Qn on uniform variable semantics
Newsgroups: comp.graphics.rendering.renderman
Date: 2000/03/02
Andrew Bromage wrote:
> All you need to do is to characterise control flow constructs (e.g.
> while loops and if statements) as to whether their conditions are
> varying or uniform. Then test whether a non-local varying variable is
> being modified inside a varying control statement.
A loop with a uniform condition may still be varying if a break statement
is controlled by a varying condition.
while (uniform_condition) {
if (varying_condition)
break;
This can be even more complicated for cases where multiple loops
are interruptet using break or (I guess) when the condition
is for the break statement uniform but assumes different values
on different parts of the surface.
Cheers,
Klaus