forked from ShuriZma/suyu
1
0
Fork 0

metal: add info about command recorder memory leaks

This commit is contained in:
Samuliak 2024-04-06 12:42:19 +02:00
parent 863842948b
commit 789bc69281
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,8 @@ public:
private: private:
const Device& device; const Device& device;
// HACK: Command buffers and encoders currently aren't released every frame due to Xcode
// crashing in Debug mode. This leads to memory leaks
MTLCommandBuffer_t command_buffer = nil; MTLCommandBuffer_t command_buffer = nil;
MTLCommandEncoder_t encoder = nil; MTLCommandEncoder_t encoder = nil;