mojoshader.c
changeset 1101 3a1384bf9ca1
parent 1100 d1c8e5a9dcd0
child 1102 0af2fb8af7fc
equal deleted inserted replaced
1100:d1c8e5a9dcd0 1101:3a1384bf9ca1
  9075                     uitem->next = item;
  9075                     uitem->next = item;
  9076                     uitem = item;
  9076                     uitem = item;
  9077                     item = prev;
  9077                     item = prev;
  9078                     break;
  9078                     break;
  9079 
  9079 
       
  9080                 case REG_TYPE_INPUT:
       
  9081                     // You don't have to dcl_ your inputs in Shader Model 1.
       
  9082                     if (shader_is_pixel(ctx)&&!shader_version_atleast(ctx,2,0))
       
  9083                     {
       
  9084                         add_attribute_register(ctx, regtype, regnum,
       
  9085                                                MOJOSHADER_USAGE_COLOR, regnum,
       
  9086                                                0xF, 0);
       
  9087                         break;
       
  9088                     } // if
       
  9089                     // fall through...
       
  9090 
  9080                 default:
  9091                 default:
  9081                     fail(ctx, "BUG: we used a register we don't know how to define.");
  9092                     fail(ctx, "BUG: we used a register we don't know how to define.");
  9082             } // switch
  9093             } // switch
  9083         } // if
  9094         } // if
  9084 
  9095