Skip to content

Commit

Permalink
Better relative addressing support.
Browse files Browse the repository at this point in the history
Now we use the CTAB data to figure out where the high-level code actually
 thinks the bounds of the array should be, and allocate just to that range
 when we see relative addressing.

This will let the GL glue only push a little data, instead of a wide range
 that contains both possible accesses, and also drop the effort to pepper in
 DEF constants to the pushed data.

I hope this will prove to be a big win, but we'll see.

This will now blow up if there are relative addressing in shaders without a
 CTAB block, but anything generated by the HLSL compiler should have it, so
 I hope this will be "good enough."

--HG--
branch : trunk
  • Loading branch information
icculus committed Jun 27, 2008
1 parent 45fe5b6 commit 6a9b8b8
Showing 1 changed file with 166 additions and 119 deletions.

0 comments on commit 6a9b8b8

Please sign in to comment.