Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build arrays of constants if necessary.
The HLSL compiler sometimes does relative addressing over an array of DEF'd constants, as a lookup table. We now consider what DEFs we can group into contiguous arrays, and if a relative address would touch it, we generate a proper array of the reasonable range. This seems to be clever; I'm hoping it's not TOO clever, though. --HG-- branch : trunk
- Loading branch information
Showing
1 changed file
with
211 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters