mojoshader_assembler.c
changeset 505 fd397ceab529
parent 504 d79ae3b98f47
child 506 c1fe96a851f6
equal deleted inserted replaced
504:d79ae3b98f47 505:fd397ceab529
  1463         minor = 255;
  1463         minor = 255;
  1464     else if (!ui32fromstr(ctx->token, &minor))
  1464     else if (!ui32fromstr(ctx->token, &minor))
  1465         return fail(ctx, "Expected version string");
  1465         return fail(ctx, "Expected version string");
  1466 
  1466 
  1467     ctx->major_ver = major;
  1467     ctx->major_ver = major;
  1468     ctx->minor_ver = major;
  1468     ctx->minor_ver = minor;
  1469 
  1469 
  1470     if (require_endline(ctx) == FAIL)
  1470     if (require_endline(ctx) == FAIL)
  1471         return FAIL;
  1471         return FAIL;
  1472 
  1472 
  1473     output_token(ctx, (shader_type << 16) | (major << 8) | (minor << 0) );
  1473     output_token(ctx, (shader_type << 16) | (major << 8) | (minor << 0) );