Add a test for the compare opcode.

This is a test for the compare opcode (CMP).  This should draw a green triangle
in the fs-test.
This commit is contained in:
Alex Corscadden 2010-09-08 10:42:41 -07:00 committed by José Fonseca
parent 132daa87fb
commit 1702d8bdd8
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
FRAG
DCL IN[0], COLOR, LINEAR
DCL OUT[0], COLOR
IMM FLT32 { 1, 0, 0, 1 }
IMM FLT32 { 0, 1, 1, 0 }
IMM FLT32 { 1, 0,-1, 0 }
CMP OUT[0], IMM[2], IMM[0], IMM[1]
END