gpu,gpu/backend: [compute] handle loss of buffer contents during download

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-02-24 18:48:03 +01:00
parent e66979a8c0
commit f973b3f384
3 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -704,7 +704,7 @@ func (b *gpuBuffer) Download(data []byte) error {
}
copy(data, bufferMap)
if !b.backend.funcs.UnmapBuffer(firstBinding) {
return errors.New("buffer content lost")
return backend.ErrContentLost
}
return nil
}