Last active
May 19, 2018 16:38
-
-
Save dnevera/37d671669dc3af555a3c4ec8d1e2fee4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if self.centers.count > 0 { | |
// центры - читаем | |
command.setBuffer(self.centersBuffer, offset: 0, index: 0) | |
// цвета - пишем | |
command.setBuffer(self.colorsBuffer, offset: 0, index: 1) | |
// размер области | |
command.setBytes(&self.regionSize, length:MemoryLayout.size(ofValue: self.regionSize), index:2) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment