get rid of float_multiply, float_add, float_divide
This commit is contained in:
@@ -691,7 +691,7 @@ float __operator - (const float a, const float b)
|
||||
|
||||
float __operator * (const float a, const float b)
|
||||
{
|
||||
__asm float_multiply __retVal, a, b;
|
||||
__asm vec4_multiply __retVal.x, a, b;
|
||||
}
|
||||
|
||||
float __operator / (const float a, const float b)
|
||||
|
||||
@@ -188,8 +188,8 @@
|
||||
0,0,1,4,118,101,99,52,95,97,100,100,0,18,95,95,114,101,116,86,97,108,0,59,120,0,0,18,97,0,0,18,98,
|
||||
0,0,0,0,1,0,9,2,27,1,1,0,9,97,0,0,1,1,0,9,98,0,0,0,1,4,118,101,99,52,95,115,117,98,116,114,97,99,
|
||||
116,0,18,95,95,114,101,116,86,97,108,0,59,120,0,0,18,97,0,0,18,98,0,0,0,0,1,0,9,2,21,1,1,0,9,97,0,
|
||||
0,1,1,0,9,98,0,0,0,1,4,102,108,111,97,116,95,109,117,108,116,105,112,108,121,0,18,95,95,114,101,
|
||||
116,86,97,108,0,0,18,97,0,0,18,98,0,0,0,0,1,0,9,2,22,1,1,0,9,97,0,0,1,1,0,9,98,0,0,0,1,3,2,0,9,1,
|
||||
0,1,1,0,9,98,0,0,0,1,4,118,101,99,52,95,109,117,108,116,105,112,108,121,0,18,95,95,114,101,116,86,
|
||||
97,108,0,59,120,0,0,18,97,0,0,18,98,0,0,0,0,1,0,9,2,22,1,1,0,9,97,0,0,1,1,0,9,98,0,0,0,1,3,2,0,9,1,
|
||||
98,73,110,118,0,0,0,4,102,108,111,97,116,95,114,99,112,0,18,98,73,110,118,0,59,120,0,0,18,98,0,59,
|
||||
120,0,0,0,4,118,101,99,52,95,109,117,108,116,105,112,108,121,0,18,95,95,114,101,116,86,97,108,0,59,
|
||||
120,0,0,18,97,0,0,18,98,73,110,118,0,0,0,0,1,0,10,2,26,1,1,0,10,118,0,0,1,1,0,10,117,0,0,0,1,4,118,
|
||||
|
||||
@@ -350,9 +350,6 @@ static slang_asm_info AsmInfo[] = {
|
||||
{ "vec4_ddx", IR_DDX, 1, 1 },
|
||||
{ "vec4_ddy", IR_DDY, 1, 1 },
|
||||
/* float binary op */
|
||||
{ "float_add", IR_ADD, 1, 2 },
|
||||
{ "float_multiply", IR_MUL, 1, 2 },
|
||||
{ "float_divide", IR_DIV, 1, 2 },
|
||||
{ "float_power", IR_POW, 1, 2 },
|
||||
/* texture / sampler */
|
||||
{ "vec4_tex1d", IR_TEX, 1, 2 },
|
||||
|
||||
Reference in New Issue
Block a user