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

Cannot run examples due to BigInt error #3

Open
ihasq opened this issue Nov 15, 2023 · 0 comments
Open

Cannot run examples due to BigInt error #3

ihasq opened this issue Nov 15, 2023 · 0 comments

Comments

@ihasq
Copy link

ihasq commented Nov 15, 2023

$ cd vulkan/examples/triangle
$ deno run -A --unstable ./main.ts
error: Uncaught (in promise) TypeError: Cannot convert object to primitive value
    this.#view.setBigUint64(16, BigInt(anyPointer(value)), LE);
                                ^
    at BigInt (<anonymous>)
    at ApplicationInfo.set pApplicationName (vulkan/api/vk.ts:16106:33)
    at new ApplicationInfo (vulkan/api/vk.ts:16076:69)
    at TriangleApplication.createInstance (vulkan/examples/triangle/main.ts:181:21)
    at TriangleApplication.setupVulkan (vulkan/examples/triangle/main.ts:84:10)
    at TriangleApplication.run (vulkan/examples/triangle/main.ts:76:16)
    at vulkan/examples/triangle/main.ts:1515:11

This error is occurring in both examples.
I am having trouble resolving this error because I do not fully understand the structure of anyPointer() and the specification of Deno.PointerView itself.
What is the solution to this?

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

1 participant