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

Issue with BigUint64Array #59

Open
kalysti opened this issue Jul 4, 2021 · 0 comments
Open

Issue with BigUint64Array #59

kalysti opened this issue Jul 4, 2021 · 0 comments

Comments

@kalysti
Copy link

kalysti commented Jul 4, 2021

Issue on typescript by using the following lines:

   ` var arr =  new BigUint64Array([BigInt(0)]);
      vkCmdBindVertexBuffers(cmdBuffer, 0, 1, [uploadBuffer.vertexBuffer],arr);`

Thats the error

`error TS2345: Argument of type 'BigUint64Array' is not assignable to parameter of type 'Float32Array'.
Types of property 'every' are incompatible.
Type '(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any) => boolean' is not assignable to type '(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any) => boolean'.
Types of parameters 'predicate' and 'predicate' are incompatible.
Types of parameters 'value' and 'value' are incompatible.
Type 'bigint' is not assignable to type 'number '.

Thats the lines in the index.d.ts of nvk:

type BigUint64Array = Float32Array
declare const BigUint64Array: typeof Float32Array
export function vkCmdBindVertexBuffers(commandBuffer: VkCommandBuffer | null, firstBinding: number, bindingCount: number, pBuffers: VkBuffer[] | null, pOffsets: BigUint64Array | null): void;

Somebody have an idea or can help me with this issue?

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