]> git.tdb.fi Git - libs/gl.git/commit
Make use of the sorted nature of PipelineState resource arrays
authorMikko Rasa <tdb@tdb.fi>
Tue, 15 Mar 2022 19:25:18 +0000 (21:25 +0200)
committerMikko Rasa <tdb@tdb.fi>
Tue, 15 Mar 2022 19:25:18 +0000 (21:25 +0200)
commit1ed4d66194a8a86413701a4c4e4178c2fb0a4ded
tree65515c9f3a794144863656c1784fe8763d8cd6a7
parent8d211effd0c6db66e57f9ffd8ee712eef6069a1c
Make use of the sorted nature of PipelineState resource arrays

Since descriptor set is in the high bits, lower_bound can be used to
find its first resource and then go through elements until the next set
is reached.
source/backends/vulkan/pipelinestate_backend.cpp