]> git.tdb.fi Git - libs/gl.git/commit
Support multiple PipelineStates in Renderer
authorMikko Rasa <tdb@tdb.fi>
Mon, 17 Jan 2022 20:41:24 +0000 (22:41 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 17 Jan 2022 20:41:24 +0000 (22:41 +0200)
commitab9b22356f16aea822527c06186641d3121e1355
treeadceb00dbcf2c400baae4d430921d7ac9c0f434e
parentb7808c60e0bbbb198500066880b6ed37c0b0e9d0
Support multiple PipelineStates in Renderer

In the Vulkan backend it can be beneficial to keep separate pipeline
states and avoid having to repeatedly compute hashes and look them up
from the cache.  The downside is that every time the used state object
changes, shader data has to be reapplied.  But it's likely this would
be necessary anyway due to different shader or data being used.
source/backends/opengl/renderer_backend.h
source/backends/vulkan/renderer_backend.cpp
source/backends/vulkan/renderer_backend.h
source/render/renderer.cpp
source/render/renderer.h