Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hyblocker/spirv-reflect-sharp

SPIRV-Reflect Bindings for .NET
https://github.com/hyblocker/spirv-reflect-sharp

csharp dotnet dotnet-standard spirv spirv-tools vulkan vulkan-sdk windows

Last synced: 9 days ago
JSON representation

SPIRV-Reflect Bindings for .NET

Awesome Lists containing this project

README

        

# SPIRV-Reflect Sharp

SPIRV-Reflect Sharp provides .NET bindings for [SPIRV-Reflect](https://github.com/KhronosGroup/SPIRV-Reflect) to allow generating reflection data for shaders entirely using C#

# Usage

```cs
byte[] shaderBytes = File.ReadAllBytes(@"shader.frag.spv");
using (ShaderModule module = SpirvReflect.ReflectCreateShaderModule(shaderBytes))
{
var in_vars = module.EnumerateInputVariables();
var intf_vars = module.EnumerateInterfaceVariables();
var push_constants = module.EnumeratePushConstants();
}
```

# License

This project is licensed under the MIT License

SPIRV-Reflect is licensed under the Apache License

# Credits

KhronosGroup for SPIRV-Reflect