-
Notifications
You must be signed in to change notification settings - Fork 40
Closed
Description
Hi! Not sure if this is the right place to file an issue.
A change in 0.1.58 makes writeTexture's typing more narrow than before and we are seeing type errors on working code.
SharedArrayBuffer was explicitly included in @types/webgpu
in 0.1.56 and removed in 0.1.58.
It looks like AllowSharedBufferSource
should include SharedArrayBuffer
in its type definition looking at this:
AllowSharedBufferSource https://webidl.spec.whatwg.org/#AllowSharedBufferSource
It is not, however, in the Typescript lib.dom
type definition. lib/dom.generated.d.ts#L29329
type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView;
type BufferSource = ArrayBufferView | ArrayBuffer;
Not sure where in this tool chain this should be addressed. Is Typescript's type definition wrong? Or if this is an intentional change and SharedArrayBuffer should not be used with textures.
Downgrading @types/webgpu
to 0.1.56 for now. Thanks for any insights
Metadata
Metadata
Assignees
Labels
No labels