We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The fifth argument claims it should be of type Float32Array but should actually be BigUint64Array.
Float32Array
BigUint64Array
It says:
vkCmdBindVertexBuffers(commandBuffer: VkCommandBuffer | null, firstBinding: number, bindingCount: number, pBuffers: VkBuffer[] | null, pOffsets: Float32Array | null): void
Attempting to use a Float32Array results in a crash with the message: TypeError: Invalid type for argument 5 'pOffsets' in 'vkCmdBindVertexBuffers'
TypeError: Invalid type for argument 5 'pOffsets' in 'vkCmdBindVertexBuffers'
Giving a type of BigUint64Array makes TypeScript complain, so I suppose the only work-around at the moment is to silence the TS compiler.
const offsets = new BigUint64Array(); vkCmdBindVertexBuffers(/*...*/, offsets as any);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The fifth argument claims it should be of type
Float32Array
but should actually beBigUint64Array
.It says:
Attempting to use a
Float32Array
results in a crash with the message:TypeError: Invalid type for argument 5 'pOffsets' in 'vkCmdBindVertexBuffers'
Giving a type of
BigUint64Array
makes TypeScript complain, so I suppose the only work-around at the moment is to silence the TS compiler.The text was updated successfully, but these errors were encountered: