Snektron / vulkan-zig

Vulkan binding generator for Zig
MIT License
519 stars 60 forks source link

Change shader build integration to be compatible with zig 0.13.0 #154

Closed moomba42 closed 3 months ago

moomba42 commented 3 months ago

Running shader compilation with zig version 0.13.0 was throwing the following error:

/src/build_integration.zig:168:51: error: root struct of file 'Build.Step' has no member named 'MakeOptions'
    fn make(step: *Build.Step, options: Build.Step.MakeOptions) !void {
                                        ~~~~~~~~~~^~~~~~~~~~~~

This small change fixes that, but makes the library incompatible with previous zig versions.

Snektron commented 3 months ago

Current vulkan-zig is compatible with the master branch of Zig. The exact reverse of this merge request was made a few weeks ago: https://github.com/Snektron/vulkan-zig/pull/152. I've pushed a zig-0.13-compat branch for you that you should be able to use.

moomba42 commented 3 months ago

Oh I see, thank you very much :) I'm closing this then.