Hi,
I'm new to quartz composer, and I'm trying to write a simple convolve blur
filter, but I seem to be having this strange issue.
When I have this as my code (I've been able to recreate it previously too)
kernel vec4 awesome(sampler image, float radius )
{
int size = int(radius-.5)+1;
float total = size * size;
vec4 sum = vec4(0.0);
for( int i = -size; i <= size; i++ ) {
for( int j = -size; j <= size; j++ ) {
sum += sample(image, samplerTransform(image,
xy+vec2(float(i),float(j))));
}
}
return sum;
}
I get the error "Data depdendent for statements are unsupported"
and it highlights the close paren for the outer for loop.
Any reason why I'd be seeing this occur often?
Thanks in advance,
Mike Lewis
--
Michael Lewis
lolrus.org
[EMAIL PROTECTED]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]