Skip to content

Commit

Permalink
This is the July 2021 Update (v2.6.0 - #535)
Browse files Browse the repository at this point in the history
  • Loading branch information
Perksey authored Jul 3, 2021
1 parent 48554d8 commit 1409a8e
Show file tree
Hide file tree
Showing 52 changed files with 2,093 additions and 41 deletions.
Binary file modified build/cache/cl.json.gz
Binary file not shown.
Binary file modified build/cache/vulkan.json.gz
Binary file not shown.
26 changes: 10 additions & 16 deletions build/props/common.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,23 @@
<LangVersion>preview</LangVersion>
<Authors>.NET Foundation and Contributors</Authors>
<PackageReleaseNotes>
Silk.NET June 2021 Update
Silk.NET July 2021 Update

- OpenXR bindings are now production-ready &amp; no longer experimental!
- Add (optional) native binaries for OpenAL Soft
- Add support for reversed-z projection matrices in Silk.NET.Maths
- Add bindings for a number of missing Vulkan and OpenCL extensions
- Add OpenGL-OpenXR interoperability helper APIs
- Add more helper APIs in Silk.NET.Core and Silk.NET.Maths
- Update to latest OpenGL and OpenGLES specifications
- Update to OpenXR 1.0.16
- Update to Vulkan 1.2.180
- Fix SDL OpenGL context issues when not using OpenGL
- Fix GLFW native window issues on 32-bit Windows
- Fix OpenXR loading issues
- Fix incorrect bindings in OpenXR
- Miscellaneous windowing &amp; input bugfixes &amp; improvements
- Add support for OpenAL Soft native libraries for ALContext
- Update to Vulkan 1.2.183
- Update to latest OpenCL specifications
- Fix struct layout issues in DirectX and OpenXR bindings
- Fix OpenCL library name resolution on Linux
- Fix NU5127, NU5128, and NU1701 native package NuGet errors on .NET Framework
- Improve FileNotFoundExceptions when native library loading fails
- Improve GlobalMemory call chains by removing unnecessary usage of Span&lt;T&gt;
</PackageReleaseNotes>
<PackageTags Condition="'$(PackageTags)' == ''">OpenCL;OpenGL;OpenAL;OpenGLES;GLES;Vulkan;Assimp;DirectX;GLFW;SDL;Windowing;Input;Gamepad;Joystick;Keyboard;Mouse;SilkTouch;Source;Generator;C#;F#;.NET;DotNet;Mono;Vector;Math;Maths;Numerics;Game;Graphics;Compute;Audio;Sound;Engine;Silk;Silk.NET;Slim.NET;ElgarTK;GPU;Sharp;Science;Scientific;Visualization;Visual;Audiovisual;Windows;macOS;Linux;Android;Bindings;OSX;Wrapper;Native</PackageTags>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageOutputPath>$(MSBuildThisFileDirectory)/../output_packages</PackageOutputPath>
<RepositoryUrl>https://github.com/dotnet/Silk.NET</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<VersionPrefix>2.5.0</VersionPrefix>
<VersionPrefix>2.6.0</VersionPrefix>
<VersionSuffix Condition="'$(VersionSuffix)' == ''"></VersionSuffix>
<Description Condition="'$(Description)' == ''">
Silk.NET is a high-speed, advanced library, providing bindings to popular low-level APIs such as OpenGL, OpenCL, OpenAL, OpenXR, GLFW, SDL, Vulkan, Assimp, and DirectX.
Expand Down
5 changes: 4 additions & 1 deletion generator.json
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,10 @@
"ID3D12Device*": "void*",
"ID3D12Resource*": "void*",
"ID3D12CommandQueue*": "void*",
"IDirect3DSurface9*": "void*"
"IDirect3DSurface9*": "void*",
"DXGI_FORMAT": "uint",
"VAImageFormat*": "void*",
"D3DFORMAT": "uint"
},
{
"cl_GLsync": "intptr_t",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Text;
using Silk.NET.Core;
using Silk.NET.Core.Native;
using Silk.NET.Core.Attributes;
using Silk.NET.Core.Contexts;
using Silk.NET.Core.Loader;
using Silk.NET.OpenCL;
using Extension = Silk.NET.Core.Attributes.ExtensionAttribute;

#pragma warning disable 1591

namespace Silk.NET.OpenCL.Extensions.INTEL
{
[Extension("INTEL_sharing_format_query_d3d10")]
public unsafe partial class IntelSharingFormatQueryD3d10 : NativeExtension<CL>
{
public const string ExtensionName = "INTEL_sharing_format_query_d3d10";
[NativeApi(EntryPoint = "clGetSupportedD3D10TextureFormatsINTEL")]
public unsafe partial int GetSupportedD3D10TextureFormats([Flow(FlowDirection.In)] nint context, [Flow(FlowDirection.In)] INTEL flags, [Flow(FlowDirection.In)] uint image_type, [Flow(FlowDirection.In)] uint num_entries, [Flow(FlowDirection.Out)] uint* d3d10_formats, [Flow(FlowDirection.Out)] uint* num_texture_formats);

[NativeApi(EntryPoint = "clGetSupportedD3D10TextureFormatsINTEL")]
public unsafe partial int GetSupportedD3D10TextureFormats([Flow(FlowDirection.In)] nint context, [Flow(FlowDirection.In)] INTEL flags, [Flow(FlowDirection.In)] uint image_type, [Flow(FlowDirection.In)] uint num_entries, [Flow(FlowDirection.Out)] uint* d3d10_formats, [Flow(FlowDirection.Out)] out uint num_texture_formats);

[NativeApi(EntryPoint = "clGetSupportedD3D10TextureFormatsINTEL")]
public unsafe partial int GetSupportedD3D10TextureFormats([Flow(FlowDirection.In)] nint context, [Flow(FlowDirection.In)] INTEL flags, [Flow(FlowDirection.In)] uint image_type, [Flow(FlowDirection.In)] uint num_entries, [Flow(FlowDirection.Out)] out uint d3d10_formats, [Flow(FlowDirection.Out)] uint* num_texture_formats);

[NativeApi(EntryPoint = "clGetSupportedD3D10TextureFormatsINTEL")]
public partial int GetSupportedD3D10TextureFormats([Flow(FlowDirection.In)] nint context, [Flow(FlowDirection.In)] INTEL flags, [Flow(FlowDirection.In)] uint image_type, [Flow(FlowDirection.In)] uint num_entries, [Flow(FlowDirection.Out)] out uint d3d10_formats, [Flow(FlowDirection.Out)] out uint num_texture_formats);

public IntelSharingFormatQueryD3d10(INativeContext ctx)
: base(ctx)
{
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Text;
using Silk.NET.Core;
using Silk.NET.Core.Native;
using Silk.NET.Core.Attributes;
using Silk.NET.Core.Contexts;
using Silk.NET.Core.Loader;

#pragma warning disable 1591

namespace Silk.NET.OpenCL.Extensions.INTEL
{
public static class IntelSharingFormatQueryD3d10Overloads
{
public static unsafe int GetSupportedD3D10TextureFormats(this IntelSharingFormatQueryD3d10 thisApi, [Flow(FlowDirection.In)] nint context, [Flow(FlowDirection.In)] INTEL flags, [Flow(FlowDirection.In)] uint image_type, [Flow(FlowDirection.In)] uint num_entries, [Flow(FlowDirection.Out)] uint* d3d10_formats, [Flow(FlowDirection.Out)] Span<uint> num_texture_formats)
{
// SpanOverloader
return thisApi.GetSupportedD3D10TextureFormats(context, flags, image_type, num_entries, d3d10_formats, out num_texture_formats.GetPinnableReference());
}

public static unsafe int GetSupportedD3D10TextureFormats(this IntelSharingFormatQueryD3d10 thisApi, [Flow(FlowDirection.In)] nint context, [Flow(FlowDirection.In)] INTEL flags, [Flow(FlowDirection.In)] uint image_type, [Flow(FlowDirection.In)] uint num_entries, [Flow(FlowDirection.Out)] Span<uint> d3d10_formats, [Flow(FlowDirection.Out)] uint* num_texture_formats)
{
// SpanOverloader
return thisApi.GetSupportedD3D10TextureFormats(context, flags, image_type, num_entries, out d3d10_formats.GetPinnableReference(), num_texture_formats);
}

public static unsafe int GetSupportedD3D10TextureFormats(this IntelSharingFormatQueryD3d10 thisApi, [Flow(FlowDirection.In)] nint context, [Flow(FlowDirection.In)] INTEL flags, [Flow(FlowDirection.In)] uint image_type, [Flow(FlowDirection.In)] uint num_entries, [Flow(FlowDirection.Out)] Span<uint> d3d10_formats, [Flow(FlowDirection.Out)] Span<uint> num_texture_formats)
{
// SpanOverloader
return thisApi.GetSupportedD3D10TextureFormats(context, flags, image_type, num_entries, out d3d10_formats.GetPinnableReference(), out num_texture_formats.GetPinnableReference());
}

}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Text;
using Silk.NET.Core;
using Silk.NET.Core.Native;
using Silk.NET.Core.Attributes;
using Silk.NET.Core.Contexts;
using Silk.NET.Core.Loader;
using Silk.NET.OpenCL;
using Extension = Silk.NET.Core.Attributes.ExtensionAttribute;

#pragma warning disable 1591

namespace Silk.NET.OpenCL.Extensions.INTEL
{
[Extension("INTEL_sharing_format_query_d3d11")]
public unsafe partial class IntelSharingFormatQueryD3d11 : NativeExtension<CL>
{
public const string ExtensionName = "INTEL_sharing_format_query_d3d11";
[NativeApi(EntryPoint = "clGetSupportedD3D11TextureFormatsINTEL")]
public unsafe partial int GetSupportedD3D11TextureFormats([Flow(FlowDirection.In)] nint context, [Flow(FlowDirection.In)] INTEL flags, [Flow(FlowDirection.In)] uint image_type, [Flow(FlowDirection.In)] uint plane, [Flow(FlowDirection.In)] uint num_entries, [Flow(FlowDirection.Out)] uint* d3d11_formats, [Flow(FlowDirection.Out)] uint* num_texture_formats);

[NativeApi(EntryPoint = "clGetSupportedD3D11TextureFormatsINTEL")]
public unsafe partial int GetSupportedD3D11TextureFormats([Flow(FlowDirection.In)] nint context, [Flow(FlowDirection.In)] INTEL flags, [Flow(FlowDirection.In)] uint image_type, [Flow(FlowDirection.In)] uint plane, [Flow(FlowDirection.In)] uint num_entries, [Flow(FlowDirection.Out)] uint* d3d11_formats, [Flow(FlowDirection.Out)] out uint num_texture_formats);

[NativeApi(EntryPoint = "clGetSupportedD3D11TextureFormatsINTEL")]
public unsafe partial int GetSupportedD3D11TextureFormats([Flow(FlowDirection.In)] nint context, [Flow(FlowDirection.In)] INTEL flags, [Flow(FlowDirection.In)] uint image_type, [Flow(FlowDirection.In)] uint plane, [Flow(FlowDirection.In)] uint num_entries, [Flow(FlowDirection.Out)] out uint d3d11_formats, [Flow(FlowDirection.Out)] uint* num_texture_formats);

[NativeApi(EntryPoint = "clGetSupportedD3D11TextureFormatsINTEL")]
public partial int GetSupportedD3D11TextureFormats([Flow(FlowDirection.In)] nint context, [Flow(FlowDirection.In)] INTEL flags, [Flow(FlowDirection.In)] uint image_type, [Flow(FlowDirection.In)] uint plane, [Flow(FlowDirection.In)] uint num_entries, [Flow(FlowDirection.Out)] out uint d3d11_formats, [Flow(FlowDirection.Out)] out uint num_texture_formats);

public IntelSharingFormatQueryD3d11(INativeContext ctx)
: base(ctx)
{
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Text;
using Silk.NET.Core;
using Silk.NET.Core.Native;
using Silk.NET.Core.Attributes;
using Silk.NET.Core.Contexts;
using Silk.NET.Core.Loader;

#pragma warning disable 1591

namespace Silk.NET.OpenCL.Extensions.INTEL
{
public static class IntelSharingFormatQueryD3d11Overloads
{
public static unsafe int GetSupportedD3D11TextureFormats(this IntelSharingFormatQueryD3d11 thisApi, [Flow(FlowDirection.In)] nint context, [Flow(FlowDirection.In)] INTEL flags, [Flow(FlowDirection.In)] uint image_type, [Flow(FlowDirection.In)] uint plane, [Flow(FlowDirection.In)] uint num_entries, [Flow(FlowDirection.Out)] uint* d3d11_formats, [Flow(FlowDirection.Out)] Span<uint> num_texture_formats)
{
// SpanOverloader
return thisApi.GetSupportedD3D11TextureFormats(context, flags, image_type, plane, num_entries, d3d11_formats, out num_texture_formats.GetPinnableReference());
}

public static unsafe int GetSupportedD3D11TextureFormats(this IntelSharingFormatQueryD3d11 thisApi, [Flow(FlowDirection.In)] nint context, [Flow(FlowDirection.In)] INTEL flags, [Flow(FlowDirection.In)] uint image_type, [Flow(FlowDirection.In)] uint plane, [Flow(FlowDirection.In)] uint num_entries, [Flow(FlowDirection.Out)] Span<uint> d3d11_formats, [Flow(FlowDirection.Out)] uint* num_texture_formats)
{
// SpanOverloader
return thisApi.GetSupportedD3D11TextureFormats(context, flags, image_type, plane, num_entries, out d3d11_formats.GetPinnableReference(), num_texture_formats);
}

public static unsafe int GetSupportedD3D11TextureFormats(this IntelSharingFormatQueryD3d11 thisApi, [Flow(FlowDirection.In)] nint context, [Flow(FlowDirection.In)] INTEL flags, [Flow(FlowDirection.In)] uint image_type, [Flow(FlowDirection.In)] uint plane, [Flow(FlowDirection.In)] uint num_entries, [Flow(FlowDirection.Out)] Span<uint> d3d11_formats, [Flow(FlowDirection.Out)] Span<uint> num_texture_formats)
{
// SpanOverloader
return thisApi.GetSupportedD3D11TextureFormats(context, flags, image_type, plane, num_entries, out d3d11_formats.GetPinnableReference(), out num_texture_formats.GetPinnableReference());
}

}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Text;
using Silk.NET.Core;
using Silk.NET.Core.Native;
using Silk.NET.Core.Attributes;
using Silk.NET.Core.Contexts;
using Silk.NET.Core.Loader;
using Silk.NET.OpenCL;
using Extension = Silk.NET.Core.Attributes.ExtensionAttribute;

#pragma warning disable 1591

namespace Silk.NET.OpenCL.Extensions.INTEL
{
[Extension("INTEL_sharing_format_query_dx9")]
public unsafe partial class IntelSharingFormatQueryDx9 : NativeExtension<CL>
{
public const string ExtensionName = "INTEL_sharing_format_query_dx9";
[NativeApi(EntryPoint = "clGetSupportedDX9MediaSurfaceFormatsINTEL")]
public unsafe partial int GetSupportedDX9MediaSurfaceFormats([Flow(FlowDirection.In)] nint context, [Flow(FlowDirection.In)] INTEL flags, [Flow(FlowDirection.In)] uint image_type, [Flow(FlowDirection.In)] uint plane, [Flow(FlowDirection.In)] uint num_entries, [Flow(FlowDirection.Out)] uint* dx9_formats, [Flow(FlowDirection.Out)] uint* num_surface_formats);

[NativeApi(EntryPoint = "clGetSupportedDX9MediaSurfaceFormatsINTEL")]
public unsafe partial int GetSupportedDX9MediaSurfaceFormats([Flow(FlowDirection.In)] nint context, [Flow(FlowDirection.In)] INTEL flags, [Flow(FlowDirection.In)] uint image_type, [Flow(FlowDirection.In)] uint plane, [Flow(FlowDirection.In)] uint num_entries, [Flow(FlowDirection.Out)] uint* dx9_formats, [Flow(FlowDirection.Out)] out uint num_surface_formats);

[NativeApi(EntryPoint = "clGetSupportedDX9MediaSurfaceFormatsINTEL")]
public unsafe partial int GetSupportedDX9MediaSurfaceFormats([Flow(FlowDirection.In)] nint context, [Flow(FlowDirection.In)] INTEL flags, [Flow(FlowDirection.In)] uint image_type, [Flow(FlowDirection.In)] uint plane, [Flow(FlowDirection.In)] uint num_entries, [Flow(FlowDirection.Out)] out uint dx9_formats, [Flow(FlowDirection.Out)] uint* num_surface_formats);

[NativeApi(EntryPoint = "clGetSupportedDX9MediaSurfaceFormatsINTEL")]
public partial int GetSupportedDX9MediaSurfaceFormats([Flow(FlowDirection.In)] nint context, [Flow(FlowDirection.In)] INTEL flags, [Flow(FlowDirection.In)] uint image_type, [Flow(FlowDirection.In)] uint plane, [Flow(FlowDirection.In)] uint num_entries, [Flow(FlowDirection.Out)] out uint dx9_formats, [Flow(FlowDirection.Out)] out uint num_surface_formats);

public IntelSharingFormatQueryDx9(INativeContext ctx)
: base(ctx)
{
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Text;
using Silk.NET.Core;
using Silk.NET.Core.Native;
using Silk.NET.Core.Attributes;
using Silk.NET.Core.Contexts;
using Silk.NET.Core.Loader;

#pragma warning disable 1591

namespace Silk.NET.OpenCL.Extensions.INTEL
{
public static class IntelSharingFormatQueryDx9Overloads
{
public static unsafe int GetSupportedDX9MediaSurfaceFormats(this IntelSharingFormatQueryDx9 thisApi, [Flow(FlowDirection.In)] nint context, [Flow(FlowDirection.In)] INTEL flags, [Flow(FlowDirection.In)] uint image_type, [Flow(FlowDirection.In)] uint plane, [Flow(FlowDirection.In)] uint num_entries, [Flow(FlowDirection.Out)] uint* dx9_formats, [Flow(FlowDirection.Out)] Span<uint> num_surface_formats)
{
// SpanOverloader
return thisApi.GetSupportedDX9MediaSurfaceFormats(context, flags, image_type, plane, num_entries, dx9_formats, out num_surface_formats.GetPinnableReference());
}

public static unsafe int GetSupportedDX9MediaSurfaceFormats(this IntelSharingFormatQueryDx9 thisApi, [Flow(FlowDirection.In)] nint context, [Flow(FlowDirection.In)] INTEL flags, [Flow(FlowDirection.In)] uint image_type, [Flow(FlowDirection.In)] uint plane, [Flow(FlowDirection.In)] uint num_entries, [Flow(FlowDirection.Out)] Span<uint> dx9_formats, [Flow(FlowDirection.Out)] uint* num_surface_formats)
{
// SpanOverloader
return thisApi.GetSupportedDX9MediaSurfaceFormats(context, flags, image_type, plane, num_entries, out dx9_formats.GetPinnableReference(), num_surface_formats);
}

public static unsafe int GetSupportedDX9MediaSurfaceFormats(this IntelSharingFormatQueryDx9 thisApi, [Flow(FlowDirection.In)] nint context, [Flow(FlowDirection.In)] INTEL flags, [Flow(FlowDirection.In)] uint image_type, [Flow(FlowDirection.In)] uint plane, [Flow(FlowDirection.In)] uint num_entries, [Flow(FlowDirection.Out)] Span<uint> dx9_formats, [Flow(FlowDirection.Out)] Span<uint> num_surface_formats)
{
// SpanOverloader
return thisApi.GetSupportedDX9MediaSurfaceFormats(context, flags, image_type, plane, num_entries, out dx9_formats.GetPinnableReference(), out num_surface_formats.GetPinnableReference());
}

}
}

Loading

0 comments on commit 1409a8e

Please sign in to comment.