mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-04 19:25:47 +00:00
This is a reland of 2b3975f808fd6f5afc5a52e58a3dcd5e73984b17 The previous CL failed to retain autoreleased ObjC objects which should live longer than the autoreleasepool block. This reland fixes the issue and adds tests for it. Original change's description: > Metal: Add CommandRecordingContext > > Introduces the idea of a CommandRecordingContext to the Metal backend, > similar to other backends. This is a class to track which Metal encoder > is open on the device-global pending MTLCommandBuffer. > It will be needed to open/close encoders for lazy clearing. > > Bug: dawn:145 > Change-Id: Ief6b71a079d73943677d2b61382d1c36b88a4f87 > Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/14780 > Reviewed-by: Corentin Wallez <cwallez@chromium.org> > Reviewed-by: Kai Ninomiya <kainino@chromium.org> > Commit-Queue: Austin Eng <enga@chromium.org> Bug: dawn:145 Change-Id: I67494b35225ce8f6443a3fa9787d054522e5d422 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/15042 Commit-Queue: Austin Eng <enga@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>