adding missing function implementation

This commit is contained in:
2024-12-15 03:53:56 +01:00
parent 5a36b90a72
commit 5b726fe74a
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;