-
Notifications
You must be signed in to change notification settings - Fork 28
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
Wrong parameter type in index.d.ts #38
Comments
nvk's documentation is generated based on the original documentation and not finished yet - the documentation incorrectly states here that Edit: Having a quick look at the type definition file, it seems that |
But if you use VkInout it doesn't work, if I use this code let surface_support = { $: 0 }
vkGetPhysicalDeviceSurfaceSupportKHR(this.physical_device, 0, this.surface, surface_support) I get
And if use this let surface_support = { $: false }
vkGetPhysicalDeviceSurfaceSupportKHR(this.physical_device, 0, this.surface, surface_support) I get
I'm not sure another way to solve this issue rather than change in the generated files the |
Hey my comment edit above was a reminder for myself, not an actual answer :) - this is a bug in nvk I'm busy this week, but if you can't wait for a fix, then (depending on your OS) you can try editing the two top lines of this file, by changing them from this: declare var VkInout: { $: number; }
export interface VkInout { $: number; } to this: declare var VkInout: { $: number | boolean; }
export interface VkInout { $: number | boolean; } |
Cool, thanks! |
This should be fixed in |
I don't know if is related, but the |
@norman784 sorry for that, is |
Thanks, now it works! |
There's an issue with the generated Typescript definitions, the function must take
VkBool32
as pSupported parameter but it takesVkInout
.The text was updated successfully, but these errors were encountered: