Re: [heycam/webidl] Allow constants on namespaces (#977)

I did this because of the WebGPU case mentioned in https://github.com/heycam/webidl/issues/440, which is currently using interfaces: https://github.com/gpuweb/gpuweb/issues/304, e.g. https://gpuweb.github.io/gpuweb/#gpubufferusage

They're using enums in most places. However they use constants for bitmasks, which seems reasonable: it's relatively tricky to express the equivalent of `GPUBufferUsage.MAP_READ | GPUBufferUsage.MAP_WRITE | GPUBufferUsage.VERTEX` otherwise.

They also discuss this in https://gpuweb.github.io/gpuweb/explainer/#bitflags

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/977#issuecomment-822643692

Received on Monday, 19 April 2021 17:27:51 UTC