Add wgpuTextureGetTextureBindingViewDimension (#575)
This is was recently added to the WebGPU spec for compatibility mode
https://www.w3.org/TR/webgpu/#dom-gputexture-texturebindingviewdimension
diff --git a/webgpu.h b/webgpu.h
index cbf69b7..a2d5cea 100644
--- a/webgpu.h
+++ b/webgpu.h
@@ -5803,6 +5803,11 @@
*/
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 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
@@ -4611,6 +4611,14 @@
},
{
"doc": "TODO\n",
+ "name": "get_texture_binding_view_dimension",
+ "returns": {
+ "doc": "TODO\n",
+ "type": "enum.texture_view_dimension"
+ }
+ },
+ {
+ "doc": "TODO\n",
"name": "get_format",
"returns": {
"doc": "TODO\n",
diff --git a/webgpu.yml b/webgpu.yml
index d719cbb..28d1a3a 100644
--- a/webgpu.yml
+++ b/webgpu.yml
@@ -5356,6 +5356,13 @@
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