gpu: cache path data for compute

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-01-02 20:13:06 +01:00
parent 23f710910f
commit bb9252f9d4
3 changed files with 22 additions and 12 deletions
+4 -3
View File
@@ -27,9 +27,10 @@ type opCache struct {
type opCacheValue struct {
data pathData
// cpuData is the retained data, if kept by the compute renderer.
cpuData []byte
bounds f32.Rectangle
// computePath is the encoded path for compute.
computePath encoder
bounds f32.Rectangle
// the fields below are handled by opCache
key ops.Key
keep bool