{"id":18772495,"url":"https://github.com/feliwir/sharpshadercompiler","last_synced_at":"2025-04-13T08:27:29.871Z","repository":{"id":86862402,"uuid":"134608835","full_name":"feliwir/SharpShaderCompiler","owner":"feliwir","description":"A .NET Standard wrapper to shaderc","archived":false,"fork":false,"pushed_at":"2018-05-31T08:01:40.000Z","size":8233,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T08:27:24.991Z","etag":null,"topics":["compiler","csharp","opengl","shader","shaderc","vulkan","wrapper"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/feliwir.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-23T18:14:01.000Z","updated_at":"2024-05-02T07:49:44.000Z","dependencies_parsed_at":"2023-06-27T02:37:47.137Z","dependency_job_id":null,"html_url":"https://github.com/feliwir/SharpShaderCompiler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feliwir%2FSharpShaderCompiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feliwir%2FSharpShaderCompiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feliwir%2FSharpShaderCompiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feliwir%2FSharpShaderCompiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feliwir","download_url":"https://codeload.github.com/feliwir/SharpShaderCompiler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248683325,"owners_count":21144883,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compiler","csharp","opengl","shader","shaderc","vulkan","wrapper"],"created_at":"2024-11-07T19:29:18.211Z","updated_at":"2025-04-13T08:27:29.863Z","avatar_url":"https://github.com/feliwir.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SharpShaderCompiler\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/feliwir/SharpShaderCompiler/blob/master/LICENSE)\n[![Build status](https://ci.appveyor.com/api/projects/status/k3cl4ce8sgry8wy3?svg=true)](https://ci.appveyor.com/project/feliwir/sharpshadercompiler)\n\n**SharpShaderCompiler** is a .NET shader compiler for compiling GLSL and HLSL to SPIRV bytecode.\n\n## Example\n\n```csharp\nvoid Compile()\n{\n    //Create a new compiler and new options\n    var c = new ShaderCompiler();\n    var o = new CompileOptions();\n\n    //Set our compile options\n    o.Language = CompileOptions.InputLanguage.GLSL;\n    o.Optimization = CompileOptions.OptimizationLevel.Performance;\n\n    //Specify a minimal vertex shader\n    string testShader =  @\"#version 450\n                            void main()\n                            {}\";\n\n    //Compile the specified vertex shader and give it a name\n    var r = c.Compile(testShader, ShaderCompiler.Stage.Vertex, o,\"testShader\");\n\n    //Check if we had any compilation errors\n    if(r.CompileStatus != CompileResult.Status.Success)\n    {\n        //Write the error out\n        System.Console.WriteLine(r.ErrorMessage);\n        return;\n    }\n\n    //Get the produced SPV bytecode\n    var bc = r.GetBytes();\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeliwir%2Fsharpshadercompiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeliwir%2Fsharpshadercompiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeliwir%2Fsharpshadercompiler/lists"}