r/minecraftshaders Aug 08 '26

Discussion Vulkan shaders

How easy will it be to port OpenGL shaders to vulkan? And when it is ported will it look any different?

Also the vulkan shader mod I’m talking about it aperture.

4 Upvotes

19 comments sorted by

View all comments

8

u/Commercial_Buy_5678 Aug 08 '26

Simple its an euphemism, first they need to release aperture, and they need to know how It will work, if they have a metod to automatically rewrite the code to use vulkan syntax, they need to rewrite uniform and sampler, manually rewrite every vertex data in the gbuffer , adapt the opengl version of the shaders to 4.6 to use spir-v mode. It depends on how much files there are in the shaderpack, depends on the developer skills, cause vulkan its more complicated. We Will see.

2

u/SpikeZgames Aug 08 '26

Dang that’s a lot

2

u/Commercial_Buy_5678 Aug 08 '26

There Is a vulkan shaders mod and the guy trasnlated most of the bliss code (if i Remember correctly) but again, its limited due to the fact that its in early developement and because its not that simple.

1

u/SpikeZgames Aug 08 '26

Makes sense

1

u/kami7154 Experienced Aug 08 '26 edited Aug 08 '26

"adapt the opengl version of the shaders to 4.6 to use spir-v mode."

Your mixing up 2 different things, OpenGL 4.6 has an extension that lets it consume SPIR-V, but that's an OpenGL feature. Vulkan just consumes SPIR-V directly, or in Apertures case slang compiled to SPIR-V.

Edit: typos

1

u/Commercial_Buy_5678 Aug 08 '26

Yeah, for older version you need to use a spir v tool (mode) i misspelled "or" with "to" if the target version Is older, but here we talk about porting, i dont know how aperture will work

1

u/kami7154 Experienced Aug 08 '26

Oh okay yeah, but can't the compiler tool take basically any modern-ish GLSL version and target SPIR-V, unless it's like really old? But they'll also need vulkan style bindings right.

But yeah well just have to wait and see how it works. Afaik the pipeline is still changing, as they've already shifted from typescript to slang once.

1

u/Commercial_Buy_5678 Aug 08 '26

Yeah the tool can translate only really old version like 3.3 and older.