Skip to content

How closely slang follows Microsoft's HLSL development? #3932

Answered by natevm
godlikepanos asked this question in Q&A
Discussion options

You must be logged in to vote

Because both HLSL and Slang are under active development, there will always be divergence between the two languages. For the most part, slang supports HLSL 2021 syntax, though C++-style templates are still on the backlog.

Generally, the goal is to stay compatible with HLSL where it makes sense. Iiuc, there are some good arguments for generics over templates when it comes to sensible compilation errors and pre-compilation code analysis. But I believe the intention is to add templates for backwards compatibility with HLSL.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by godlikepanos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants