SPIRV-Cross.NET 0.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package SPIRV-Cross.NET --version 0.1.0                
NuGet\Install-Package SPIRV-Cross.NET -Version 0.1.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SPIRV-Cross.NET" Version="0.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SPIRV-Cross.NET --version 0.1.0                
#r "nuget: SPIRV-Cross.NET, 0.1.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SPIRV-Cross.NET as a Cake Addin
#addin nuget:?package=SPIRV-Cross.NET&version=0.1.0

// Install SPIRV-Cross.NET as a Cake Tool
#tool nuget:?package=SPIRV-Cross.NET&version=0.1.0                

SPIRV-Cross.NET: cross-platform C# wrapper for SPIRV-Cross

A cross-platform .NET 8.0 wrapper for Microsoft's DirectX Shader Compiler, written in C#.

NuGet

Usage

For a brief showcase of how SPIRV-Cross.NET works, check the Example folder. At the moment, the object structure maps relatively close to SPIRV-Cross's C++ API, and the library's documentation can generally be used in most cases. However, if there is not a direct mapping for a given field, property, or function, please consult the source files in Source/Managed/.. for more info.

Native Details

To facilitate cross-platform releases, the native SPIRV-Cross library is built using zig instead of CMake/GN. As Zig's compiler supports cross-compilation out of the box, it allows SPIRV-Cross to build easily from most desktop platforms, for most platforms. The libraries produced by building this repository are what SPIRV-Cross.NET uses in its releases.

Building Native Libraries

To build native libraries, run the BuildNative.cs file inside the Native folder, specicying your target architecture [x64, arm64, all] with -A and your target platform [windows, linux, macos, all] with -P.

Native build requirements:

  • Zig compiler version of at least 0.14.0

Pre-built binaries are bundled in the NuGet package for the following operating systems:

  • Windows x64
  • Windows arm64
  • OSX x64
  • OSX arm64
  • Linux x64
  • Linux arm64
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on SPIRV-Cross.NET:

Repository Stars
ProwlEngine/Prowl
An Open Source C# 3D Game Engine under MIT license, inspired by Unity and featuring a complete editor
Version Downloads Last updated
1.0.2 93 10/31/2024
1.0.1 683 8/22/2024
1.0.0 114 8/7/2024
0.2.0 102 8/7/2024
0.1.0 101 8/6/2024