Skip to content

DGriffin91/bevy_mod_slang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bevy_mod_slang

WIP

Slang shaders for Bevy.

Compilation requires slangc to be in path

  • Hot reloading
  • DX12 / Vulkan / WebGPU / (WebGL TBD)

Slang has a lot in common with hlsl. It supports most hlsl features/syntax (though less so from hlsl 2021), while adding many other features on top. This plugin outputs Slang to SPIR-V. Here's some useful resources for using hlsl with SPIR-V output: https://github.com/microsoft/DirectXShaderCompiler/blob/main/docs/SPIR-V.rst https://github.com/microsoft/DirectXShaderCompiler/blob/main/docs/SPIRV-Cookbook.rst

Error with webgl2:
Internal error in ShaderStages(FRAGMENT) shader: ERROR: 0:13: '_S1__block_0Fragment' : identifiers containing two consecutive underscores (__) are reserved as possible future keywords

About

Slang shaders for Bevy

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-Apache-2.0
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages