From 8049c324dc7b3c09dc96ea04cb02860f272c8686 Mon Sep 17 00:00:00 2001 From: hocheung-chromium <168883047+hocheung-chromium@users.noreply.github.com> Date: Sat, 18 May 2024 20:09:19 +0800 Subject: [PATCH] Rename WGPUDeviceLostReason_Undefined to Unknown (#288) * Rename WGPUDeviceLostReason_Undefined to Unknown Please check https://issues.chromium.org/issues/42241081 for more information and progress. * Remove "Undefined" --------- Co-authored-by: Kai Ninomiya --- webgpu.h | 4 ++-- webgpu.yml | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/webgpu.h b/webgpu.h index b1801f9..0ad782a 100644 --- a/webgpu.h +++ b/webgpu.h @@ -292,8 +292,8 @@ typedef enum WGPUCullMode { } WGPUCullMode WGPU_ENUM_ATTRIBUTE; typedef enum WGPUDeviceLostReason { - WGPUDeviceLostReason_Undefined = 0x00000000, - WGPUDeviceLostReason_Destroyed = 0x00000001, + WGPUDeviceLostReason_Unknown = 0x00000001, + WGPUDeviceLostReason_Destroyed = 0x00000002, WGPUDeviceLostReason_Force32 = 0x7FFFFFFF } WGPUDeviceLostReason WGPU_ENUM_ATTRIBUTE; diff --git a/webgpu.yml b/webgpu.yml index 85344c1..0c0b6f8 100644 --- a/webgpu.yml +++ b/webgpu.yml @@ -435,10 +435,12 @@ enums: doc: | TODO entries: - - name: undefined + - name: unknown + value: 0x0001 doc: | TODO - name: destroyed + value: 0x0002 doc: | TODO