GitXplorerGitXplorer
m

vk

public
179 stars
36 forks
16 issues

Commits

List of commits on branch master.
Unverified
95ee42ec5304b9af8123fa25861f0c04024f0c8f

Bump version to 1.0.25.

mmellinoe committed 4 years ago
Unverified
9fe8524e78ef9aa434059f517538e363c241dbb8

[android] fix NativeLibrary.Load()

SSupinePandora43 committed 4 years ago
Unverified
2433f15e7d9ceab603a06a261cc5eab510a2a173

Change conditional to NET5_0.

mmellinoe committed 4 years ago
Unverified
9b10c8531793d1f9f5cdc854091120954043d632

Bump to version 1.0.23.

mmellinoe committed 4 years ago
Unverified
f63ec2d4199e8c45ea5c364b62584f79b7621fee

Update vk.csproj post-build target for latest .NET SDK.

mmellinoe committed 4 years ago
Unverified
bcb2c9d2a524db782312f4275f92eade7dbadc85

add net5 target

SSupinePandora43 committed 4 years ago

README

The README file for this repository.

This repository contains low-level bindings for the Vulkan graphics and compute API.

Vulkan bindings and samples for .NET Core

There are several projects included in this repository, including some sample projects using the Vulkan API, which have been adapted from the excellent samples created by Sascha Willems: https://github.com/SaschaWillems/Vulkan.

Building

To build this repository, you need the .NET Core SDK: https://www.microsoft.com/net/core#windowscmd.

dotnet restore src\vk.sln
dotnet msbuild src\vk\vk.csproj
dotnet msbuild src\samples\triangle\triangle.csproj

The bindings can be built and work on all platforms. Currently, the sample projects only work on Windows.

Components

vk.dll

Contains the raw bindings for the Vulkan API. These bindings differ from many other .NET bindings in that they are low-level and unsafe. There is no attempt made to provide a higher-level abstraction on top of Vulkan. This means you must be very careful with usages of the API. On the other hand, it means that you can simply and easily translate from the many C++ examples available on the web.

vk.generator.dll

Contains parsing and code generation logic for creating the C# bindings for Vulkan.

vk.rewriter.dll

Contains assembly rewriting logic, using Mono.Cecil, which completes some of the handling for the native calls used by vk.dll.

Samples

There are several sample projects included under the src/samples directory. These have been adapted line-by-line from the projects here.

This is the simplest demo, which just renders a colored triangle to the screen.

Attributions / Licenses

Please note that (some) models and textures use separate licenses. Please comply to these when redistributing or using them in your own projects :

  • Cubemap used in cubemap example by Emil Persson(aka Humus)
  • Voyager model by NASA
  • Hidden treasure scene used in pipeline and debug marker examples by Laurynas Jurgila