PixelShaderGen: Change error strings to be unique so that we can identify unexpected behavior more easily.

This commit is contained in:
NeoBrainX 2013-01-11 15:47:38 +01:00
parent f21f097e7a
commit ad05d568b9
1 changed files with 18 additions and 18 deletions

View File

@ -287,10 +287,10 @@ static const char *tevKSelTableC[] = // KCSEL
"0.375f,0.375f,0.375f", // 3_8 = 0x05 "0.375f,0.375f,0.375f", // 3_8 = 0x05
"0.25f,0.25f,0.25f", // 1_4 = 0x06 "0.25f,0.25f,0.25f", // 1_4 = 0x06
"0.125f,0.125f,0.125f", // 1_8 = 0x07 "0.125f,0.125f,0.125f", // 1_8 = 0x07
"ERROR", // 0x08 "ERROR1", // 0x08
"ERROR", // 0x09 "ERROR2", // 0x09
"ERROR", // 0x0a "ERROR3", // 0x0a
"ERROR", // 0x0b "ERROR4", // 0x0b
I_KCOLORS"[0].rgb", // K0 = 0x0C I_KCOLORS"[0].rgb", // K0 = 0x0C
I_KCOLORS"[1].rgb", // K1 = 0x0D I_KCOLORS"[1].rgb", // K1 = 0x0D
I_KCOLORS"[2].rgb", // K2 = 0x0E I_KCOLORS"[2].rgb", // K2 = 0x0E
@ -323,14 +323,14 @@ static const char *tevKSelTableA[] = // KASEL
"0.375f",// 3_8 = 0x05 "0.375f",// 3_8 = 0x05
"0.25f", // 1_4 = 0x06 "0.25f", // 1_4 = 0x06
"0.125f",// 1_8 = 0x07 "0.125f",// 1_8 = 0x07
"ERROR", // 0x08 "ERROR5", // 0x08
"ERROR", // 0x09 "ERROR6", // 0x09
"ERROR", // 0x0a "ERROR7", // 0x0a
"ERROR", // 0x0b "ERROR8", // 0x0b
"ERROR", // 0x0c "ERROR9", // 0x0c
"ERROR", // 0x0d "ERROR10", // 0x0d
"ERROR", // 0x0e "ERROR11", // 0x0e
"ERROR", // 0x0f "ERROR12", // 0x0f
I_KCOLORS"[0].r", // K0_R = 0x10 I_KCOLORS"[0].r", // K0_R = 0x10
I_KCOLORS"[1].r", // K1_R = 0x11 I_KCOLORS"[1].r", // K1_R = 0x11
I_KCOLORS"[2].r", // K2_R = 0x12 I_KCOLORS"[2].r", // K2_R = 0x12
@ -405,7 +405,7 @@ static const char *tevCInputTable[] = // CC
"float3(0.5f, 0.5f, 0.5f)", // HALF "float3(0.5f, 0.5f, 0.5f)", // HALF
"(ckonsttemp.rgb)", //"konsttemp.rgb", // KONST "(ckonsttemp.rgb)", //"konsttemp.rgb", // KONST
"float3(0.0f, 0.0f, 0.0f)", // ZERO "float3(0.0f, 0.0f, 0.0f)", // ZERO
"PADERROR", "PADERROR", "PADERROR", "PADERROR" "PADERROR1", "PADERROR2", "PADERROR3", "PADERROR4"
}; };
static const char *tevAInputTable[] = // CA static const char *tevAInputTable[] = // CA
@ -427,17 +427,17 @@ static const char *tevAInputTable[] = // CA
"crastemp", // RASA, "crastemp", // RASA,
"ckonsttemp", // KONST, (hw1 had quarter) "ckonsttemp", // KONST, (hw1 had quarter)
"float4(0.0f, 0.0f, 0.0f, 0.0f)", // ZERO "float4(0.0f, 0.0f, 0.0f, 0.0f)", // ZERO
"PADERROR", "PADERROR", "PADERROR", "PADERROR", "PADERROR5", "PADERROR6", "PADERROR7", "PADERROR8",
"PADERROR", "PADERROR", "PADERROR", "PADERROR", "PADERROR9", "PADERROR10", "PADERROR11", "PADERROR12",
}; };
static const char *tevRasTable[] = static const char *tevRasTable[] =
{ {
"colors_0", "colors_0",
"colors_1", "colors_1",
"ERROR", //2 "ERROR13", //2
"ERROR", //3 "ERROR14", //3
"ERROR", //4 "ERROR15", //4
"alphabump", // use bump alpha "alphabump", // use bump alpha
"(alphabump*(255.0f/248.0f))", //normalized "(alphabump*(255.0f/248.0f))", //normalized
"float4(0.0f, 0.0f, 0.0f, 0.0f)", // zero "float4(0.0f, 0.0f, 0.0f, 0.0f)", // zero