thesquiff

A bug

Discussion created by thesquiff on Jan 23, 2009
Latest reply on Jan 23, 2009 by thesquiff
or is it me....

While compiling this code, I get the errors below:

kernel void zeros(float matches<>, out float zeros<> {
    int idx = instance().x;
    zeros = (matches < 1.0F) ? (float)idx:0.0F;
}

1>ERROR: Invalid cast
1>While processing <buffer>:127
1>In compiler at AST::Symbol::AsFunctionSymbol()[astsymbol.hpp:178]
1>  ToString() = (float)zeros[r308]
1>Aborting...
1>Problem with compiling u:\GPGPU\mygzip\hello_brook\\built\hello_brook_zeros.hlslERROR: Invalid cast
1>While processing <buffer>:179
1>In compiler at AST::Symbol::AsFunctionSymbol()[astsymbol.hpp:178]
1>  ToString() = (float)zeros[r368]
1>Aborting...

I've tried all sorts of ways of modifying the code. Is it me or the compiler?

Thanks

Outcomes