Skip navigation
XColomer
Currently Being Moderated

Error #3661: AGAL validation failed: Temporary register index out of bounds for source operand 2 at

Feb 23, 2013 3:05 PM

Tags: #stage3d #agal #shaders

I have this error

Error: Error #3661: AGAL validation failed: Temporary register index out of bounds for source operand 2 at token 5 of vertex program.

 

when trying to converting this GLSL:

 

attribute vec3 aVertexPosition;

 

    uniform mat4 uMVMatrix;

    uniform mat4 uPMatrix;

 

    void main(void) {

        gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);

    }

 

to this code:

 

mov vt0.w, vc0.x

mov vt0.xyz, va0.xyz

 

mov vt1.xyzw, vc1

mul vt5.xyzw, vt1, vc5

m44 op.xyzw, vt0.xyzw, vt5

 

How can I solve this? Any suggestion? Thanks!!!

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points