gpu: add and track fields needed by the compute renderer

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-12-27 22:06:02 +01:00
parent 0a56609769
commit 7d24b790a2
2 changed files with 54 additions and 32 deletions
+4 -2
View File
@@ -26,8 +26,10 @@ type opCache struct {
}
type opCacheValue struct {
data pathData
bounds f32.Rectangle
data pathData
// cpuData is the retained data, if kept by the compute renderer.
cpuData []byte
bounds f32.Rectangle
// the fields below are handled by opCache
key ops.Key
keep bool