From 50eb3e7c738fcb27ecb755399ded286c420c1811 Mon Sep 17 00:00:00 2001 From: Kai Ninomiya Date: Fri, 20 Dec 2024 23:15:14 -0800 Subject: [PATCH] Rename WGPUInstanceDescriptor.features -> .capabilities I completely forgot about this in 375. --- webgpu.h | 6 +++--- webgpu.yml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/webgpu.h b/webgpu.h index d2804998..24d94225 100644 --- a/webgpu.h +++ b/webgpu.h @@ -3845,11 +3845,11 @@ typedef struct WGPUFutureWaitInfo { typedef struct WGPUInstanceDescriptor { WGPUChainedStruct * nextInChain; /** - * Instance features to enable + * Instance capabilities to enable. * * The `INIT` macro sets this to @ref WGPU_INSTANCE_CAPABILITIES_INIT. */ - WGPUInstanceCapabilities features; + WGPUInstanceCapabilities capabilities; } WGPUInstanceDescriptor WGPU_STRUCTURE_ATTRIBUTE; /** @@ -3857,7 +3857,7 @@ typedef struct WGPUInstanceDescriptor { */ #define WGPU_INSTANCE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceDescriptor, { \ /*.nextInChain=*/NULL _wgpu_COMMA \ - /*.features=*/WGPU_INSTANCE_CAPABILITIES_INIT _wgpu_COMMA \ + /*.capabilities=*/WGPU_INSTANCE_CAPABILITIES_INIT _wgpu_COMMA \ }) /** diff --git a/webgpu.yml b/webgpu.yml index 2f4af11f..8d77c400 100644 --- a/webgpu.yml +++ b/webgpu.yml @@ -2074,8 +2074,8 @@ structs: TODO type: extensible members: - - name: features - doc: Instance features to enable + - name: capabilities + doc: Instance capabilities to enable. type: struct.instance_capabilities - name: limits doc: |