From f686ddfe70bf77a6b0e33a6b7dfce09c93e249c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Beaufort?= Date: Mon, 10 Jun 2024 20:35:28 +0200 Subject: [PATCH] Add usages to WGPUSurfaceCapabilities (#301) --- webgpu.h | 1 + webgpu.yml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/webgpu.h b/webgpu.h index 521ee1c..5b760bd 100644 --- a/webgpu.h +++ b/webgpu.h @@ -1028,6 +1028,7 @@ typedef struct WGPUStorageTextureBindingLayout { typedef struct WGPUSurfaceCapabilities { WGPUChainedStructOut * nextInChain; + WGPUTextureUsageFlags usages; size_t formatCount; WGPUTextureFormat const * formats; size_t presentModeCount; diff --git a/webgpu.yml b/webgpu.yml index ccf3b9b..c4755ae 100644 --- a/webgpu.yml +++ b/webgpu.yml @@ -1667,6 +1667,10 @@ structs: type: base_out free_members: true members: + - name: usages + doc: | + TODO + type: bitflag.texture_usage - name: formats doc: | TODO