Skip to content
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

Variables are defined in the header #2

Closed
NomAnor opened this issue May 15, 2016 · 1 comment
Closed

Variables are defined in the header #2

NomAnor opened this issue May 15, 2016 · 1 comment

Comments

@NomAnor
Copy link

NomAnor commented May 15, 2016

The header can't be included multiple times because all variables are defined in the header, not declared.

This line in vkel.h

PFN_vkAcquireNextImageKHR __vkAcquireNextImageKHR;

should be

extern PFN_vkAcquireNextImageKHR __vkAcquireNextImageKHR;

and the old line should be in the vkel.c file.

This needs to be done for all lines from // Instance and device extension names until #define vkAcquireNextImageKHR __vkAcquireNextImageKHR.
For a quick fixed I copied the generator lines but it would be better to put them in a seperate function.

@vallentin
Copy link
Owner

vallentin commented May 15, 2016

I haven't extensively tested this yet. Just wanted to get a fix out, so I'll verify that everything works tomorrow!

For a quick fixed I copied the generator lines but it would be better to put them in a seperate function.

I did so as well. But I've been planning on doing a rewrite of the generator, since it's gotten pretty messy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants