diff --git a/src/Core/Silk.NET.SilkTouch/NativeApiGenerator.cs b/src/Core/Silk.NET.SilkTouch/NativeApiGenerator.cs index 257cc8d9a1..4539a03718 100644 --- a/src/Core/Silk.NET.SilkTouch/NativeApiGenerator.cs +++ b/src/Core/Silk.NET.SilkTouch/NativeApiGenerator.cs @@ -412,22 +412,22 @@ INamedTypeSymbol pInvokeAttribute var processedEntrypoints = new List(); bool any = false; foreach (var (declaration, symbol, entryPoint, callingConvention) in from declaration in - from member in classDeclarations.SelectMany(x => x.Item1.Members.Select(x2 => (x2, x.Item2))) - where member.x2.IsKind(SyntaxKind.MethodDeclaration) - select ((MethodDeclarationSyntax) member.x2, member.Item2) - let symbol = declaration.Item2.GetDeclaredSymbol(declaration.Item1) - where symbol is not null - let attribute = ToNativeApiAttribute - ( - symbol.GetAttributes() - .FirstOrDefault - (att => SymbolEqualityComparer.Default.Equals(att.AttributeClass, nativeApiAttributeSymbol)) - ) - where declaration.Item1.Modifiers.Any - (modifier => modifier.IsKind(SyntaxKind.PartialKeyword)) && symbol.PartialImplementationPart is null - let entryPoint = NativeApiAttribute.GetEntryPoint(attribute, classNativeApiAttribute, symbol.Name) - let callingConvention = NativeApiAttribute.GetCallingConvention(attribute, classNativeApiAttribute) - select (declaration, symbol, entryPoint, callingConvention)) + from member in classDeclarations.SelectMany(x => x.Item1.Members.Select(x2 => (x2, x.Item2))) + where member.x2.IsKind(SyntaxKind.MethodDeclaration) + select ((MethodDeclarationSyntax) member.x2, member.Item2) + let symbol = declaration.Item2.GetDeclaredSymbol(declaration.Item1) + where symbol is not null + let attribute = ToNativeApiAttribute + ( + symbol.GetAttributes() + .FirstOrDefault + (att => SymbolEqualityComparer.Default.Equals(att.AttributeClass, nativeApiAttributeSymbol)) + ) + where declaration.Item1.Modifiers.Any + (modifier => modifier.IsKind(SyntaxKind.PartialKeyword)) && symbol.PartialImplementationPart is null + let entryPoint = NativeApiAttribute.GetEntryPoint(attribute, classNativeApiAttribute, symbol.Name) + let callingConvention = NativeApiAttribute.GetCallingConvention(attribute, classNativeApiAttribute) + select (declaration, symbol, entryPoint, callingConvention)) { any = true; diff --git a/src/Native/Silk.NET.WebGPU.Native.WGPU/runtimes/linux-x64/native/libwgpu_native.so b/src/Native/Silk.NET.WebGPU.Native.WGPU/runtimes/linux-x64/native/libwgpu_native.so index 940c650bc3..0938aefd45 100755 Binary files a/src/Native/Silk.NET.WebGPU.Native.WGPU/runtimes/linux-x64/native/libwgpu_native.so and b/src/Native/Silk.NET.WebGPU.Native.WGPU/runtimes/linux-x64/native/libwgpu_native.so differ diff --git a/src/Native/Silk.NET.WebGPU.Native.WGPU/runtimes/linux-x86/native/libwgpu_native.so b/src/Native/Silk.NET.WebGPU.Native.WGPU/runtimes/linux-x86/native/libwgpu_native.so index acf6ddd000..fb27aea8e3 100755 Binary files a/src/Native/Silk.NET.WebGPU.Native.WGPU/runtimes/linux-x86/native/libwgpu_native.so and b/src/Native/Silk.NET.WebGPU.Native.WGPU/runtimes/linux-x86/native/libwgpu_native.so differ