External Publication
Visit Post

An assessment of slang

jMonkeyEngine Hub May 3, 2026
Source

I disagree on some parts, but i agree that integrating anything other then glsl requires a major change of the material system and is probably out of scope currently.

That said, the g_ m_ prefixes are likely a leftover and honestly a pain in the ass. the guild in macros are working fine, but in the end spirv and slang even more support far more advanced features like interfaces that should easily replace the macros. Any modern technique requires and/or prefers reading the variables from a buffer anyways. so already that removes the existence if m_ g_ parameters.

Slang can output glsl directly, there is no need for reconvert spirv.

one additional benefit of slang is the shader reflection which allows you to query offsets for all members of a struct in a buffer. in glsl you require manual parsing of the glsl to know what buffer layout has to be used, and then map accordingly to the bytebuffer. Just beeing able to get this information for free is priceless.

I have written a prove of concept that renders the on opengl/vulcan/webgpu/teavm-gl/graal-wasm-gl using slang, so it is possible and working.

Discussion in the ATmosphere

Loading comments...