The high-speed OpenGL, OpenCL, OpenAL, OpenXR, GLFW, SDL, Vulkan, Assimp, WebGPU, and DirectX bindings library your mother warned you about.
Перейти к файлу
Dylan Perks b079b28cd5
Fix #2149 (#2237)
* Fix #2149

* Update MultiNativeContext.cs

* Update MultiNativeContext.cs
2024-07-14 22:01:36 -05:00
.github Include snupkgs in artifacts 2024-05-05 15:17:11 -05:00
.nuke A bunch of improvements to native library builds (#2049) 2024-04-17 21:51:27 -05:00
.vscode Add VS Code support for tutorials (#322) 2020-11-05 19:43:07 +00:00
build Add missing types for WindowsCodec (#2167) 2024-05-14 21:45:19 -05:00
documentation Document the runner setup (#2195) 2024-05-27 10:08:54 -05:00
examples/CSharp Use sensible defaults for depth/stencil (#1991) 2024-04-18 10:21:02 -05:00
src Fix #2149 (#2237) 2024-07-14 22:01:36 -05:00
website Fix broken github link (#2228) 2024-06-15 16:00:52 +00:00
.editorconfig Fix some build warnings. (#2021) 2024-04-07 14:33:11 -05:00
.gitattributes .NET Foundation Onboarding (#425) 2021-03-18 18:49:58 +00:00
.gitignore Use ref readonly instead of in (#1882) 2024-03-20 22:42:24 -05:00
.gitmodules A bunch of improvements to native library builds (#2049) 2024-04-17 21:51:27 -05:00
CODEOWNERS Make Beyley the codeowner of WebGPU (#1158) 2022-11-24 18:52:25 +00:00
CODE_OF_CONDUCT.md .NET Foundation Onboarding (#425) 2021-03-18 18:49:58 +00:00
CONTRIBUTING.md Patch/move nuke to contributing (#853) 2022-03-29 08:51:13 +02:00
LICENSE.md Fix a markdown blip I haven't noticed until now 2021-03-18 21:43:07 +00:00
README.md Some minor README.md corrections. (#2116) 2024-04-15 16:16:33 +00:00
Silk.NET.sln [2.X] Add a helper for custom IO in Assimp (#2199) 2024-07-01 10:32:31 -05:00
Silk.NET.sln.DotSettings First class DXVK support (#1201) 2023-03-31 20:51:53 -07:00
build.cmd Fix build (#857) 2022-03-28 15:02:27 +02:00
build.ps1 Fix build (#857) 2022-03-28 15:02:27 +02:00
build.sh Fix build (#857) 2022-03-28 15:02:27 +02:00
generator.json Add missing types for WindowsCodec (#2167) 2024-05-14 21:45:19 -05:00
global.json Use a self-hosted runner (#1222) 2023-01-19 23:34:47 +00:00

README.md


NuGet Version Preview Feed CI Build Join our Discord

Silk.NET is your one-stop-shop for high-speed .NET multimedia, graphics, and compute; providing bindings to popular low-level APIs such as OpenGL, OpenCL, OpenAL, OpenXR, GLFW, SDL, Vulkan, Assimp, WebGPU, and DirectX.

Use Silk.NET to spruce up applications with cross-platform 3D graphics, audio, compute and haptics!

Silk.NET works on any .NET Standard 2.0 compliant platform, including .NET 6.0, Xamarin, .NET Framework 4.6.1+, and .NET Core 2.0+.


.NET Foundation

Proud to be an official project under the benevolent .NET Foundation umbrella.

Features

Performance

Having poured lots of hours into examining generated C# code and its JIT assembly, you can count on us to deliver blazing fast bindings with negligible overhead induced by Silk.NET!

Up-to-date

With an efficient bindings regeneration mechanism, we are committed to ensuring our bindings reflect the latest specifications with frequent updates generated straight from the upstream sources.

High-level utilities

In addition to providing high-speed, direct, and transparent bindings, we provide high-level utilities and wrappers to maximise productivity in common workloads such as platform-agnostic abstractions around Windowing and Input, bringing your apps to a vast number of platforms without changing a single line!

Good-to-go

Silk.NET caters for anything you could need in swift development of multimedia, graphics, compute applications. Silk.NET is an all-in-one solution, complete with Graphics, Compute, Audio, Input, and Windowing.

The team

We currently have the following maintainers:

In addition, the Silk.NET working group help drive larger user-facing changes providing key consultation from the perspective of dedicated users and professionals.

Building from source

Prerequisites

  • .NET 6 SDK and .NET 7 SDK
  • Android, iOS, and Mac Catalyst workloads (use dotnet workload install android ios maccatalyst to install them)
    • On Linux, ios and maccatalyst should be omitted as they are not available
  • Android SDK versions 31, 33, and 34 with NDK tools installed
    • On Windows, for best results, this should be installed into C:\ProgramData\Android\android-sdk
  • Java JDK 11+
  • Visual Studio 2022 Community version 17.0 or later (optional)

Instructions

  • Clone the repository
    • Note: Avoid performing a recursive clone as the submodules are not necessary for a normal build
  • Run build.sh, build.cmd, build.ps1, or nuke compile
    • On Linux, you may need to pass --msbuild-properties AndroidSdkDirectory=/path/to/android/sdk
  • Use the built assemblies
    • To get .nupkgs that you can use with NuGet instead, use nuke pack

There are more advanced build actions you can do too, such as FullBuild, Pack, FullPack, among others which you can view by doing nuke --plan.

Contributing

Silk.NET uses and encourages Early Pull Requests. Please don't wait until you're done to open a PR!

  1. Fork Silk.NET
  2. Add an empty commit to a new branch to start your work off: git commit --allow-empty -m "start of [thing you're working on]"
  3. Once you've pushed a commit, open a draft pull request. Do this before you actually start working.
  4. Make your commits in small, incremental steps with clear descriptions.
  5. Tag a maintainer when you're done and ask for a review!

The Silk.NET solution is very large. Learn about how you can combat this using our build process in CONTRIBUTING.md.

Funding

Silk.NET requires significant effort to maintain, as such we greatly appreciate any financial support you are able to provide!

This helps ensure Silk.NET's long term viability, and to help support the developers who maintain Silk.NET in their free time. Kai is accepting GitHub Sponsorships.

Further resources

Licensing and governance

Silk.NET is distributed under the very permissive MIT/X11 license and all dependencies are distributed under MIT-compatible licenses.

Silk.NET is a .NET Foundation project, and has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information, see the .NET Foundation Code of Conduct.


JetBrains

Special thanks to JetBrains for supporting us with open-source licenses for their IDEs.