Skip to content

C# Wrapper for slang #23

@qian-o

Description

@qian-o

About the Library

  • Has C-Interface (C header files)
  • Has COM-Interface
  • Has C++ only Interface (exclusively C++ classes)

Link to repository: slang

Short Description of the Library:

Slang is a new shader language that supports multiple compilation targets and the latest features of D3D12 and Vulkan.

Why This Library Deserves a Wrapper:

  1. Slang is a shader language with HLSL style, supporting multiple compilation targets, including DXIL, SPIR-V, GLSL, HLSL, etc.
  2. Complete tool support, with plugins available in both Visual Studio and Visual Studio Code, providing a better writing experience than HLSL.
  3. Slang supports reflection, allowing you to get the input and output information of the shader through reflection, which is very helpful for writing rendering pipelines.

Supplement:

The above content is mostly from the official documentation. For me, Slang is novel and perfect.
I hope this proposal will not affect your work. If you have time, I highly recommend you to experience Slang.
I am using slangc to compile shaders, which is a command-line tool. Compared to the API, it is really slow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions