mojoshader.c
branchtrunk
changeset 286 902428e570b0
parent 284 ea52f9707795
child 287 561b36b043f3
equal deleted inserted replaced
285:5e7d6cf65f1e 286:902428e570b0
  3798     } // else
  3798     } // else
  3799 
  3799 
  3800     set_defined_register(ctx, regtype, regnum);
  3800     set_defined_register(ctx, regtype, regnum);
  3801 } // state_DCL
  3801 } // state_DCL
  3802 
  3802 
       
  3803 static void state_TEXCOORD(Context *ctx)
       
  3804 {
       
  3805     if (shader_version_atleast(ctx, 2, 0))
       
  3806         fail(ctx, "TEXCOORD in Shader Model >= 2.0");  // apparently removed.
       
  3807 } // state_TEXCOORD
       
  3808 
  3803 static void state_FRC(Context *ctx)
  3809 static void state_FRC(Context *ctx)
  3804 {
  3810 {
  3805     const DestArgInfo *dst = &ctx->dest_arg;
  3811     const DestArgInfo *dst = &ctx->dest_arg;
  3806 
  3812 
  3807     if (dst->result_mod & MOD_SATURATE)  // according to msdn...
  3813     if (dst->result_mod & MOD_SATURATE)  // according to msdn...
  4253     INSTRUCTION(RESERVED, NULL, MOJOSHADER_TYPE_UNKNOWN),
  4259     INSTRUCTION(RESERVED, NULL, MOJOSHADER_TYPE_UNKNOWN),
  4254     INSTRUCTION(RESERVED, NULL, MOJOSHADER_TYPE_UNKNOWN),
  4260     INSTRUCTION(RESERVED, NULL, MOJOSHADER_TYPE_UNKNOWN),
  4255     INSTRUCTION(RESERVED, NULL, MOJOSHADER_TYPE_UNKNOWN),
  4261     INSTRUCTION(RESERVED, NULL, MOJOSHADER_TYPE_UNKNOWN),
  4256     INSTRUCTION(RESERVED, NULL, MOJOSHADER_TYPE_UNKNOWN),
  4262     INSTRUCTION(RESERVED, NULL, MOJOSHADER_TYPE_UNKNOWN),
  4257     INSTRUCTION(RESERVED, NULL, MOJOSHADER_TYPE_UNKNOWN),
  4263     INSTRUCTION(RESERVED, NULL, MOJOSHADER_TYPE_UNKNOWN),
  4258     INSTRUCTION(TEXCOORD, TEXCOORD, MOJOSHADER_TYPE_PIXEL),
  4264     INSTRUCTION_STATE(TEXCOORD, TEXCOORD, MOJOSHADER_TYPE_PIXEL),
  4259     INSTRUCTION_STATE(TEXKILL, D, MOJOSHADER_TYPE_PIXEL),
  4265     INSTRUCTION_STATE(TEXKILL, D, MOJOSHADER_TYPE_PIXEL),
  4260     INSTRUCTION(TEX, TEX, MOJOSHADER_TYPE_PIXEL),
  4266     INSTRUCTION(TEX, TEX, MOJOSHADER_TYPE_PIXEL),
  4261     INSTRUCTION(TEXBEM, DS, MOJOSHADER_TYPE_PIXEL),
  4267     INSTRUCTION(TEXBEM, DS, MOJOSHADER_TYPE_PIXEL),
  4262     INSTRUCTION(TEXBEML, DS, MOJOSHADER_TYPE_PIXEL),
  4268     INSTRUCTION(TEXBEML, DS, MOJOSHADER_TYPE_PIXEL),
  4263     INSTRUCTION(TEXREG2AR, DS, MOJOSHADER_TYPE_PIXEL),
  4269     INSTRUCTION(TEXREG2AR, DS, MOJOSHADER_TYPE_PIXEL),