From 259029e3ec8d07aa7ddc66801b422f2c31545298 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Beaufort?= Date: Fri, 7 Jun 2024 07:36:04 +0000 Subject: [PATCH] Add usages to WGPUSurfaceCapabilities --- webgpu.h | 1 + webgpu.yml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/webgpu.h b/webgpu.h index c1cce64..c0d58a5 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 b0a695c..d00a3d1 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