Skip to content

Commit

Permalink
According to MSDN, _db and _da are legit srcmods, identical to _dz an…
Browse files Browse the repository at this point in the history
…d _dw.

 Basically, it's to match rgba syntax, instead of xyzw.
  • Loading branch information
icculus committed Apr 18, 2012
1 parent 1952322 commit efa6253
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mojoshader_assembler.c
Expand Up @@ -678,8 +678,12 @@ static int parse_source_token_maybe_relative(Context *ctx, const int relok)
set_source_mod(ctx, negate, SRCMOD_X2, SRCMOD_X2NEGATE, &srcmod);
else if (check_token_segment(ctx, "_dz"))
set_source_mod(ctx, negate, SRCMOD_DZ, SRCMOD_NONE, &srcmod);
else if (check_token_segment(ctx, "_db"))
set_source_mod(ctx, negate, SRCMOD_DZ, SRCMOD_NONE, &srcmod);
else if (check_token_segment(ctx, "_dw"))
set_source_mod(ctx, negate, SRCMOD_DW, SRCMOD_NONE, &srcmod);
else if (check_token_segment(ctx, "_da"))
set_source_mod(ctx, negate, SRCMOD_DW, SRCMOD_NONE, &srcmod);
else if (check_token_segment(ctx, "_abs"))
set_source_mod(ctx, negate, SRCMOD_ABS, SRCMOD_ABSNEGATE, &srcmod);
else
Expand Down

0 comments on commit efa6253

Please sign in to comment.