gpu: update definition of path vertex size

The size is unchanged, but a corner is no longer encoded as two
16-bit ints (2*2 bytes); it is encoded as a float32 (1*4 bytes).

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-12-26 19:24:35 +01:00
parent e012c3f393
commit 0a56609769
+1 -1
View File
@@ -143,7 +143,7 @@ const (
// Number of path quads per draw batch.
pathBatchSize = 10000
// Size of a vertex as sent to gpu
vertStride = 7*4 + 2*2
vertStride = 8 * 4
)
func newPather(ctx backend.Device) *pather {