Skip to content

vulkan enums give "error: compiler bug" messages #1077

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ghost opened this issue Jun 8, 2018 · 1 comment
Closed

vulkan enums give "error: compiler bug" messages #1077

ghost opened this issue Jun 8, 2018 · 1 comment
Labels
bug Observed behavior contradicts documented or intended behavior
Milestone

Comments

@ghost
Copy link

ghost commented Jun 8, 2018

The following gives me these kinds of errors: "error: compiler bug: @cImport generated invalid zig code"

const c = @cImport({
    @cInclude("vulkan/vulkan.h");
});

pub fn main() void {
    const s : VulkanContext = undefined;
}

const VulkanContext = struct {
    present_mode:           c.VkPresentModeKHR,
    swapchain_format:       c.VkSurfaceFormatKHR,
};

Both of these enums produce compiler errors, independently of each other and together. I have not tested other vulkan enums.

@ghost ghost changed the title "error: compiler bug: @cImport generated invalid zig code" vulkan enums give "error: compiler bug" messages Jun 8, 2018
@andrewrk andrewrk added this to the 0.3.0 milestone Jun 9, 2018
@andrewrk andrewrk added the bug Observed behavior contradicts documented or intended behavior label Jun 9, 2018
@andrewrk
Copy link
Member

One of the issues was #1360 which is now fixed.

The other issue is #1359, which is scheduled for 0.4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior
Projects
None yet
Development

No branches or pull requests

1 participant