Skip to content
/ HLSV Public

High-Level SPIRV - a language designed to simplify writing Vulkan shaders

License

Notifications You must be signed in to change notification settings

mossseank/HLSV

Repository files navigation

HLSV Build Status

High-Level SPIRV - a language designed to simplify writing Vulkan shaders.

HLSV is a C-like GPU shader language very similar to GLSL and HLSL, mainly derived from GLSL for Vulkan. It is designed to be easy to pick up if you know either GLSL or HLSL, and even more so if you are familiar with the GLSL extensions for Vulkan. The language is cross-compiled into Vulkan-style GLSL, which is then compiled into SPIR-V bytecode programs using the existing tools in the Vulkan SDK.

HLSV was created over frustration with some of the limitations of GLSL, its extreme verbosity and error-prone syntax when extended to support Vulkan features, and near-complete lack of program reflection. It is mostly a personal project, and is not meant to support all of the nuanced features of full GLSL. The goal is for it to support all of the common shader functions, and to eventually become a viable alternative to GLSL for most common use cases.

More information, including tutorials and a language overview, can be found on the project wiki.

Acknowledgements

  • ANTLR - Lexer/parser generator used to read HLSV source
  • filesystem - Filesystem api for C++14.

About

High-Level SPIRV - a language designed to simplify writing Vulkan shaders

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages