Skip to content
Snippets Groups Projects

vkd3d-shader/hlsl: Prefer conversions that don't narrow.

Merged navi requested to merge navi/vkd3d:overload-prefer-wide into master

Given two arguments, half3 and float, and two functions, func(float, float) and func(float3, float3), fxc prefers to widen both arguments to float3, so when multiple arguments are being compared, not narrowing has preference over widening.

issue found on batman arkham asylum game, wrote a test that triggers the same failure as the shader in the game.

Edited by navi

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
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading