diff --git a/vendor/wgpu/wgpu.odin b/vendor/wgpu/wgpu.odin index 3d75af6ed72..3013723e516 100644 --- a/vendor/wgpu/wgpu.odin +++ b/vendor/wgpu/wgpu.odin @@ -2109,7 +2109,7 @@ foreign libwgpu { @(link_name="wgpuAdapterGetFeatures") RawAdapterGetFeatures :: proc(adapter: Adapter, features: ^SupportedFeatures) --- @(link_name="wgpuAdapterGetInfo") - RawAdapterGetInfo :: proc(adapter: Adapter, info: ^AdapterInfo) --- + RawAdapterGetInfo :: proc(adapter: Adapter, info: ^AdapterInfo) -> Status --- @(link_name="wgpuAdapterGetLimits") RawAdapterGetLimits :: proc(adapter: Adapter, limits: ^Limits) -> Status --- AdapterHasFeature :: proc(adapter: Adapter, feature: FeatureName) -> b32 --- @@ -2383,8 +2383,8 @@ AdapterGetFeatures :: proc "c" (adapter: Adapter) -> (features: SupportedFeature return } -AdapterGetInfo :: proc "c" (adapter: Adapter) -> (info: AdapterInfo) { - RawAdapterGetInfo(adapter, &info) +AdapterGetInfo :: proc "c" (adapter: Adapter) -> (info: AdapterInfo, status: Status) { + status = RawAdapterGetInfo(adapter, &info) return }