You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
` 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 '.
Issue on typescript by using the following lines:
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?
The text was updated successfully, but these errors were encountered: