gpu,op/clip: implement dashed stroked paths

Signed-off-by: Sebastien Binet <s@sbinet.org>
This commit is contained in:
Sebastien Binet
2020-12-09 09:59:46 +00:00
committed by Elias Naur
parent ac14320bec
commit e71bf13c9a
14 changed files with 745 additions and 7 deletions
+3
View File
@@ -33,6 +33,7 @@ const (
TypeCursor
TypePath
TypeStroke
TypeDash
)
const (
@@ -61,6 +62,7 @@ const (
TypeCursorLen = 1 + 1
TypePathLen = 1 + 4
TypeStrokeLen = 1 + 4 + 4 + 1 + 1
TypeDashLen = 1 + 4 + 1
)
func (t OpType) Size() int {
@@ -90,6 +92,7 @@ func (t OpType) Size() int {
TypeCursorLen,
TypePathLen,
TypeStrokeLen,
TypeDashLen,
}[t-firstOpIndex]
}