Skip navigation
Currently Being Moderated

float4() causes "error saving Pixel Bender Byte Code file" error when exporting for flash player

Mar 13, 2012 8:31 AM

Tags: #bug

Simple test

 

<languageVersion : 1.0;>

kernel untitled
<   namespace : "Your Namespace";
    vendor : "Your Vendor";
    version : 1;
>
{
    input image4 src;
    output pixel4 dst;

    void
    evaluatePixel()
    {
        dst = float4(sampleNearest(src, outCoord()));
    }
}

 

The above code will produce a "error saving Pixel Bender Byte Code file" error when exporting for flash player in Pixel Bender Toolkit 2.5.449694.

"dst = (sampleNearest(src, outCoord()));" works fine. And anything like "float4 a= float4(b);" will give same error.

 
Replies
  • Currently Being Moderated
    Mar 15, 2012 1:43 PM   in reply to Bruce_Jawn

    Thank you for the error report.  I'll put it into our bug database.  We're bottling things up for the current version.  Gven the workaround, it is unlikely we'll be addressing this bug soon.  Please accept my apologies for the annoyance this will cause.

     

    In your second example, float4 a = float4(b), does it return an error if b is only a float4 or regardless of what b is?  If b is a scalar float, for example, is the conversion performed correctly? If so, this could be an error that only crops up when using constructor/conversion syntax when the thing being converted is already the correct type.

     

    Thanks,

    Chuck.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)