mirror of
https://github.com/simple64/simple64.git
synced 2026-11-14 03:28:42 +01:00
update parallel rdp
This commit is contained in:
1 parent
06a962d607
commit
08a78f6073
46 files changed
+1896
-631
No files matched your search
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user