From 958ee956cb345ff6ceb3b9924cec5eef3a3d2e62 Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Wed, 17 Dec 2025 15:52:24 -0800 Subject: [PATCH] Add wgpuTextureGetTextureBindingViewDimension This is was recently added to the WebGPU spec for compatibility mode https://www.w3.org/TR/webgpu/#dom-gputexture-texturebindingviewdimension --- webgpu.h | 6 ++++++ webgpu.json | 8 ++++++++ webgpu.yml | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/webgpu.h b/webgpu.h index cbf69b7..a2d5cea 100644 --- a/webgpu.h +++ b/webgpu.h @@ -5802,6 +5802,11 @@ typedef uint32_t (*WGPUProcTextureGetMipLevelCount)(WGPUTexture texture) WGPU_FU * > @copydoc wgpuTextureGetSampleCount */ typedef uint32_t (*WGPUProcTextureGetSampleCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE; +/** + * Proc pointer type for @ref wgpuTextureGetTextureBindingViewDimension: + * > @copydoc wgpuTextureGetTextureBindingViewDimension + */ +typedef WGPUTextureViewDimension (*WGPUProcTextureGetTextureBindingViewDimension)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE; /** * Proc pointer type for @ref wgpuTextureGetUsage: * > @copydoc wgpuTextureGetUsage @@ -6635,6 +6640,7 @@ WGPU_EXPORT WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture) WGPU_FUN WGPU_EXPORT uint32_t wgpuTextureGetHeight(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE; WGPU_EXPORT uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE; WGPU_EXPORT uint32_t wgpuTextureGetSampleCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE; +WGPU_EXPORT WGPUTextureViewDimension wgpuTextureGetTextureBindingViewDimension(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE; WGPU_EXPORT WGPUTextureUsage wgpuTextureGetUsage(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE; WGPU_EXPORT uint32_t wgpuTextureGetWidth(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE; WGPU_EXPORT void wgpuTextureSetLabel(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE; diff --git a/webgpu.json b/webgpu.json index 9d0e0dd..422be04 100644 --- a/webgpu.json +++ b/webgpu.json @@ -4609,6 +4609,14 @@ "type": "enum.texture_dimension" } }, + { + "doc": "TODO\n", + "name": "get_texture_binding_view_dimension", + "returns": { + "doc": "TODO\n", + "type": "enum.texture_view_dimension" + } + }, { "doc": "TODO\n", "name": "get_format", diff --git a/webgpu.yml b/webgpu.yml index d719cbb..28d1a3a 100644 --- a/webgpu.yml +++ b/webgpu.yml @@ -5356,6 +5356,13 @@ objects: doc: | TODO type: enum.texture_dimension + - name: get_texture_binding_view_dimension + doc: | + TODO + returns: + doc: | + TODO + type: enum.texture_view_dimension - name: get_format doc: | TODO