From 8888cac604e9249032ea7a59e3a7a2bde491ad02 Mon Sep 17 00:00:00 2001 From: Kai Ninomiya Date: Fri, 11 Jul 2025 12:36:49 -0700 Subject: [PATCH] [breaking] Remove return value from wgpuInstanceGetWGSLLanguageFeatures This method has no error conditions, so it should return void like wgpuAdapter/DeviceGetFeatures and wgpuGetInstanceFeatures. --- webgpu.h | 4 ++-- webgpu.yml | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/webgpu.h b/webgpu.h index f22fe4b..d3618c3 100644 --- a/webgpu.h +++ b/webgpu.h @@ -5116,7 +5116,7 @@ typedef WGPUSurface (*WGPUProcInstanceCreateSurface)(WGPUInstance instance, WGPU * Proc pointer type for @ref wgpuInstanceGetWGSLLanguageFeatures: * > @copydoc wgpuInstanceGetWGSLLanguageFeatures */ -typedef WGPUStatus (*WGPUProcInstanceGetWGSLLanguageFeatures)(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE; +typedef void (*WGPUProcInstanceGetWGSLLanguageFeatures)(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE; /** * Proc pointer type for @ref wgpuInstanceHasWGSLLanguageFeature: * > @copydoc wgpuInstanceHasWGSLLanguageFeature @@ -6104,7 +6104,7 @@ WGPU_EXPORT WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, WGPUSur /** * Get the list of @ref WGPUWGSLLanguageFeatureName values supported by the instance. */ -WGPU_EXPORT WGPUStatus wgpuInstanceGetWGSLLanguageFeatures(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE; +WGPU_EXPORT void wgpuInstanceGetWGSLLanguageFeatures(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE; WGPU_EXPORT WGPUBool wgpuInstanceHasWGSLLanguageFeature(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE; /** * Processes asynchronous events on this `WGPUInstance`, calling any callbacks for asynchronous operations created with @ref WGPUCallbackMode_AllowProcessEvents. diff --git a/webgpu.yml b/webgpu.yml index 2c7fb37..d5a2483 100644 --- a/webgpu.yml +++ b/webgpu.yml @@ -4432,10 +4432,6 @@ objects: - name: get_WGSL_language_features doc: | Get the list of @ref WGPUWGSLLanguageFeatureName values supported by the instance. - returns: - doc: | - TODO - type: enum.status args: - name: features doc: |