Skip to content

GpuBufferDescriptor #3815

Answered by daxpedda
qemlab asked this question in Q&A
Jan 26, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I'm not entirely sure of what the original plan was, but generally speaking this is correct.
JS represents all Numbers as f64, even if the IDL specifies it as unsigned long long it takes a Number in JS and not a BigInt (the only true integer type I'm aware of in JS).

I'm not entirely sure if this is a limitation by the spec (because the spec uses the word "Integer"), or if this is a limitation by JS being used to implement the spec in browsers.

In any case, as long as browsers take a Number for unsigned long long there isn't much we can do here.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@qemlab
Comment options

Answer selected by qemlab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #3814 on January 26, 2024 09:28.