Skip to content

Cannot run examples due to BigInt error #3

@ihasq

Description

@ihasq
$ 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions