mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 15:46:28 +00:00
Add wgpuDeviceGetLimits. Split Required/Supported limit structs
Bug: dawn:685 Change-Id: Ibb5dd0479f5e887d4b2ca864c014ebaafb674dba Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/64443 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
@@ -196,6 +196,12 @@ namespace dawn_wire { namespace client {
|
||||
return Buffer::CreateError(this);
|
||||
}
|
||||
|
||||
bool Device::GetLimits(WGPUSupportedLimits* limits) {
|
||||
// Not implemented in the wire.
|
||||
UNREACHABLE();
|
||||
return false;
|
||||
}
|
||||
|
||||
WGPUQueue Device::GetQueue() {
|
||||
// The queue is lazily created because if a Device is created by
|
||||
// Reserve/Inject, we cannot send the GetQueue message until
|
||||
|
||||
@@ -64,6 +64,7 @@ namespace dawn_wire { namespace client {
|
||||
WGPUCreatePipelineAsyncStatus status,
|
||||
const char* message);
|
||||
|
||||
bool GetLimits(WGPUSupportedLimits* limits);
|
||||
WGPUQueue GetQueue();
|
||||
|
||||
void CancelCallbacksForDisconnect() override;
|
||||
|
||||
Reference in New Issue
Block a user