Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/hyblocker/spirv-reflect-sharp
- Owner: hyblocker
- License: mit
- Created: 2021-04-06T21:48:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-02T16:37:28.000Z (over 2 years ago)
- Last Synced: 2024-10-10T21:13:33.048Z (26 days ago)
- Topics: csharp, dotnet, dotnet-standard, spirv, spirv-tools, vulkan, vulkan-sdk, windows
- Language: C
- Homepage:
- Size: 274 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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