diff options
author | Subv <subv2112@gmail.com> | 2018-03-26 21:54:16 -0500 |
---|---|---|
committer | James Rowe <jroweboy@gmail.com> | 2018-04-06 20:44:46 -0600 |
commit | b0ca330e149b5f1609980a8167faa0c363066fd2 (patch) | |
tree | 8ded3061ecb0cacf79e0f4b5d192c8fdddd09de4 /src/core/loader/linker.cpp | |
parent | cb3183212d72836a7b6b196fde9896de66db62e6 (diff) |
GL: Set up the textures used for each draw call.
Each Maxwell shader stage can have an arbitrary number of textures, but we're limited to a certain number in OpenGL. We try to only use the minimum amount of host textures by not keeping a 1:1 relation between guest texture ids and host texture ids, ie, guest texture id 8 can be host texture id 0 if it's the only texture used in the guest shader program.
This mapping will have to be passed to the shader decompiler so it can rewrite the texture accesses.
Diffstat (limited to 'src/core/loader/linker.cpp')
0 files changed, 0 insertions, 0 deletions