1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-21 17:16:44 +00:00

Having learnt a bit more: eliminates Metal attribute tags, switches to more natural expression of structs.

Also thereby eliminates the need for a forced alignas(4) on various structs.
This commit is contained in:
Thomas Harte
2020-08-08 17:27:32 -04:00
parent edf41b06fd
commit bdcf266e45
3 changed files with 40 additions and 30 deletions
+2 -4
View File
@@ -210,11 +210,9 @@ struct ScanTarget {
/*!
Defines a scan in terms of its two endpoints.
Is guaranteed to be a multiple of four bytes in size.
*/
struct alignas(4) Scan {
struct alignas(4) EndPoint {
struct Scan {
struct EndPoint {
/// Provide the coordinate of this endpoint. These are fixed point, purely fractional
/// numbers, relative to the scale provided in the Modals.
uint16_t x, y;