Skip to content

Commit 4493591

Browse files
Add wgpuDeviceGetAdapterInfo (#384)
1 parent eb05816 commit 4493591

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

webgpu.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2542,6 +2542,11 @@ typedef WGPUTexture (*WGPUProcDeviceCreateTexture)(WGPUDevice device, WGPUTextur
25422542
* > @copydoc wgpuDeviceDestroy
25432543
*/
25442544
typedef void (*WGPUProcDeviceDestroy)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
2545+
/**
2546+
* Proc pointer type for @ref wgpuDeviceGetAdapterInfo:
2547+
* > @copydoc wgpuDeviceGetAdapterInfo
2548+
*/
2549+
typedef WGPUAdapterInfo (*WGPUProcDeviceGetAdapterInfo)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
25452550
/**
25462551
* Proc pointer type for @ref wgpuDeviceGetFeatures:
25472552
* > @copydoc wgpuDeviceGetFeatures
@@ -3337,6 +3342,7 @@ WGPU_EXPORT WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPU_NULLABLE
33373342
WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
33383343
WGPU_EXPORT WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
33393344
WGPU_EXPORT void wgpuDeviceDestroy(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
3345+
WGPU_EXPORT WGPUAdapterInfo wgpuDeviceGetAdapterInfo(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
33403346
/**
33413347
* Get the list of @ref WGPUFeatureName values supported by the device.
33423348
*

webgpu.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3944,6 +3944,14 @@ objects:
39443944
type: struct.supported_features
39453945
pointer: mutable
39463946
passed_with_ownership: true
3947+
- name: get_adapter_info
3948+
doc: |
3949+
TODO
3950+
returns:
3951+
doc: |
3952+
TODO
3953+
type: struct.adapter_info
3954+
passed_with_ownership: true
39473955
- name: get_queue
39483956
doc: |
39493957
TODO

0 commit comments

Comments
 (0)