Skip to content
Snippets Groups Projects

vkd3d-shader: Implement cast from bool to int for SM1.

Merged navi requested to merge navi/vkd3d:cast-bool-int into master
1 unresolved thread

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
7063 7063 return true;
7064 7064
7065 7065 case HLSL_TYPE_BOOL:
7066 hlsl_fixme(ctx, &instr->loc, "SM1 cast from bool to integer.");
7067 break;
7066 generate_vsir_instr_expr_single_instr_op(ctx, program, expr, VKD3DSIH_MOV, 0, 0, true);
7067 return true;
  • Since the handling is the same as the previous cases for HLSL_TYPE_INT and HLSL_TYPE_UINT, maybe we just need to move the case HLSL_TYPE_BOOL upwards. To avoid redundancy.

  • Please register or sign in to reply
  • navi added 1 commit

    added 1 commit

    • 9d545e87 - vkd3d-shader: Implement cast from bool to int for SM1.

    Compare with previous version

  • Francisco Casas approved this merge request

    approved this merge request

  • Looks good. Probably for after 1.14 though, unless someone makes a convincing case otherwise.

  • Henri Verbeet approved this merge request

    approved this merge request

  • Henri Verbeet added 39 commits

    added 39 commits

    Compare with previous version

  • Please register or sign in to reply
    Loading