Mostly complete new GLSL translator (modulo flow control).

This commit is contained in:
Ben Vanik
2015-12-05 17:44:06 -08:00
parent 0058cae901
commit 2b3b423776
8 changed files with 1453 additions and 22 deletions

View File

@@ -933,7 +933,7 @@ enum class AluScalarOpcode {
// if (src0.a == 0.0) {
// dest.xyzw = 1.0;
// } else {
// dest.xyzw = src1.a;
// dest.xyzw = src0.a;
// }
// p0 = 0;
// }
@@ -1186,7 +1186,7 @@ enum class AluVectorOpcode {
// Two-Element Dot Product and Add
// dp2add dest, src0, src1, src2
// dest.xyzw = src0.x * src1.x + src0.y * src1.y + src3.x;
// dest.xyzw = src0.x * src1.x + src0.y * src1.y + src2.x;
// Note: only pv.x contains the value.
kDp2Add = 17,