SPIRV-Reflect Sharp provides .NET bindings for SPIRV-Reflect to allow generating reflection data for shaders entirely using C#
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();
}
This project is licensed under the MIT License
SPIRV-Reflect is licensed under the Apache License
KhronosGroup for SPIRV-Reflect