summaryrefslogtreecommitdiff
path: root/src/core/loader/linker.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-03-26 21:54:16 -0500
committerJames Rowe <jroweboy@gmail.com>2018-04-06 20:44:46 -0600
commitb0ca330e149b5f1609980a8167faa0c363066fd2 (patch)
tree8ded3061ecb0cacf79e0f4b5d192c8fdddd09de4 /src/core/loader/linker.cpp
parentcb3183212d72836a7b6b196fde9896de66db62e6 (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