adding missing function implementation

This commit is contained in:
Kbz-8
2024-12-15 03:53:56 +01:00
parent 323b16f107
commit 11ccc041d2
5 changed files with 85 additions and 2 deletions

View File

@@ -214,6 +214,7 @@ namespace mlx
return;
if(!m_staging_buffer.has_value())
OpenCPUBuffer();
// Needs to reverse bytes order because why not
unsigned char bytes[4];
bytes[0] = (color >> 24) & 0xFF;
bytes[1] = (color >> 16) & 0xFF;