the shader compilers map these names to either opaque or configurable bind point indices, so they're just ints
-
-
Replying to @rygorous @FioraAeterna
the app then keeps an internal cache of what pointer needs to go to what bind point index
1 reply 0 retweets 1 like -
Replying to @rygorous @FioraAeterna
meanwhile the driver keeps an analogous mapping of what bind point index goes to what register/push constant/widget/whatever
1 reply 0 retweets 1 like -
Replying to @rygorous @FioraAeterna
so the app wants to set its material, loops over the resource on its side, grabs pointer+cached bind point IDs, hands them to the driver
1 reply 0 retweets 1 like -
Replying to @rygorous @FioraAeterna
driver does another round of remapping to generate the command buffer (and various auxiliary data structures) from that list
1 reply 0 retweets 1 like -
Replying to @rygorous @FioraAeterna
and on at least one class of GPUs, there's sometimes another round of remapping in the command processor which ultimately spills it all out
1 reply 0 retweets 1 like -
Replying to @rygorous @FioraAeterna
to yet another (this time final!) buffer in GPU memory that's laid out the way you want it for rendering
1 reply 0 retweets 3 likes -
Replying to @rygorous @FioraAeterna
so basically you go struct A -> strings -> remap -> remap -> remap -> equivalent of A but in a different order and with some fields removed
1 reply 0 retweets 2 likes -
Replying to @rygorous @FioraAeterna
and if we could get to where struct A is GPU-consumable to begin with, that'd get rid of much nasty, bug-prone caching+remapping everywhere.
1 reply 0 retweets 9 likes -
Replying to @rygorous @FioraAeterna
because the current situation is the graphics equivalent of using JSON wrapped in an XML container to a REST server to initiate a .02ms RPC.
4 replies 2 retweets 35 likes
Things are finally converging. Skylake with 3.6 TFLOP of vector compute, NV with 12 TFLOP and nearly general compute...
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.