mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 18:59:21 +00:00
Change Device::Tick To Return Bool
Changes Device::Tick to return a boolean that denotes whether or not Tick needs to be called again. Bug: dawn:119 Change-Id: I9d4c7e291536d676b33fc61d652667c1fbff8c62 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/29980 Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Brandon Jones <brandon1.jones@intel.com>
This commit is contained in:
committed by
Commit Bot service account
parent
294f71c5c9
commit
4ad35865b0
@@ -196,6 +196,11 @@ namespace dawn_native {
|
||||
return GetProcMapNamesForTestingInternal();
|
||||
}
|
||||
|
||||
DAWN_NATIVE_EXPORT bool DeviceTick(WGPUDevice device) {
|
||||
dawn_native::DeviceBase* deviceBase = reinterpret_cast<dawn_native::DeviceBase*>(device);
|
||||
return deviceBase->Tick();
|
||||
}
|
||||
|
||||
// ExternalImageDescriptor
|
||||
|
||||
ExternalImageDescriptor::ExternalImageDescriptor(ExternalImageType type) : type(type) {
|
||||
|
||||
Reference in New Issue
Block a user