update parallel rdp

This commit is contained in:
Logan McNaughton committed 2022-12-20 09:32:55 -05:00
1 parent 06a962d607
commit 08a78f6073
46 files changed
+1896 -631

No files matched your search

+1 -7
View File
@@ -20,6 +20,7 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#define NOMINMAX
#include "shader.hpp"
#include "device.hpp"
#ifdef GRANITE_VULKAN_SPIRV_CROSS
@@ -620,21 +621,14 @@ void Program::destroy_pipeline(const Pipeline &pipeline)
void Program::promote_read_write_to_read_only()
{
#ifdef GRANITE_VULKAN_MT
pipelines.move_to_read_only();
#endif
}
Program::~Program()
{
#ifdef GRANITE_VULKAN_MT
for (auto &pipe : pipelines.get_read_only())
destroy_pipeline(pipe.get());
for (auto &pipe : pipelines.get_read_write())
destroy_pipeline(pipe.get());
#else
for (auto &pipe : pipelines)
destroy_pipeline(pipe.get());
#endif
}
}