Skip to content

How to translate GLSL buffer_reference with header, unsized array member and specified alignment to slang? #5705

Answered by expipiplus1
tkerscher asked this question in Q&A
Discussion options

You must be logged in to vote

Slang does support trailing unsized arrays.

At the moment we don't have an attribute for specifying struct alignment (however we do output alignment specification on the backend for buffer pointer types). The best design for specifying struct alignment did come up in conversation recently however, so I wouldn't be surprised if we implement something along those lines in the future.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by tkerscher
Comment options

You must be logged in to vote
2 replies
@tkerscher
Comment options

@csyonghe
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants