Skip to content

Commit

Permalink
rt(d3d9): search "global" namespace for register assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
chyyran committed Aug 12, 2024
1 parent 5ef0055 commit d1e49b7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions librashader-reflect/src/back/hlsl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ impl HlslBufferAssignments {
}
}

// Sometimes SPIRV-cross will assign variables to "global"
if Self::find_mangled_name("global", uniform_name, mangled_name) {
return true;
}

return false;
}
}
Expand Down

0 comments on commit d1e49b7

Please sign in to comment.