mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 18:59:21 +00:00
Backdoor to get the number of texture lazy clears for testing
Bug: dawn:145 Change-Id: Ie01b21ce490832c459e74c76a7b8d9f203552bfe Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/9400 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Natasha Lee <natlee@microsoft.com>
This commit is contained in:
committed by
Commit Bot service account
parent
506ce9bba4
commit
e69627f35e
@@ -115,4 +115,9 @@ namespace dawn_native {
|
||||
return mImpl->IsBeginCaptureOnStartupEnabled();
|
||||
}
|
||||
|
||||
size_t GetLazyClearCountForTesting(DawnDevice device) {
|
||||
dawn_native::DeviceBase* deviceBase = reinterpret_cast<dawn_native::DeviceBase*>(device);
|
||||
return deviceBase->GetLazyClearCountForTesting();
|
||||
}
|
||||
|
||||
} // namespace dawn_native
|
||||
|
||||
Reference in New Issue
Block a user