Skip to content

Commit ff7bca8

Browse files
Add wgpuDeviceGetAdapterInfo
1 parent 6f549cc commit ff7bca8

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

webgpu.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2533,6 +2533,11 @@ typedef WGPUTexture (*WGPUProcDeviceCreateTexture)(WGPUDevice device, WGPUTextur
25332533
* > @copydoc wgpuDeviceDestroy
25342534
*/
25352535
typedef void (*WGPUProcDeviceDestroy)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
2536+
/**
2537+
* Proc pointer type for @ref wgpuDeviceGetAdapterInfo:
2538+
* > @copydoc wgpuDeviceGetAdapterInfo
2539+
*/
2540+
typedef void (*WGPUProcDeviceGetAdapterInfo)(WGPUDevice device, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
25362541
/**
25372542
* Proc pointer type for @ref wgpuDeviceGetFeatures:
25382543
* > @copydoc wgpuDeviceGetFeatures
@@ -3333,6 +3338,11 @@ WGPU_EXPORT WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPU_NULLABLE
33333338
WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
33343339
WGPU_EXPORT WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
33353340
WGPU_EXPORT void wgpuDeviceDestroy(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
3341+
/**
3342+
* @param info
3343+
* This parameter is @ref ReturnedWithOwnership.
3344+
*/
3345+
WGPU_EXPORT void wgpuDeviceGetAdapterInfo(WGPUDevice device, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
33363346
/**
33373347
* Get the list of @ref WGPUFeatureName values supported by the device.
33383348
*

webgpu.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3926,6 +3926,16 @@ objects:
39263926
type: struct.supported_features
39273927
pointer: mutable
39283928
passed_with_ownership: true
3929+
- name: get_adapter_info
3930+
doc: |
3931+
TODO
3932+
args:
3933+
- name: info
3934+
doc: |
3935+
TODO
3936+
type: struct.adapter_info
3937+
pointer: mutable
3938+
passed_with_ownership: true
39293939
- name: get_queue
39303940
doc: |
39313941
TODO

0 commit comments

Comments
 (0)