- From: Dean Jackson <notifications@github.com>
- Date: Tue, 23 Apr 2019 16:53:16 -0700
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 23 April 2019 23:53:38 UTC
@annevk review is most welcome! The main issue we have is that some values in WebGPU are bitmasks, which don't translate terribly well to JS and WebIDL. Using dictionaries instead would be equally weird: ``` stateDescriptor.writeMask = { red: true, blue: true, alpha: true }; ``` ... which is what I think you're suggesting. Although that example isn't too bad, what happens with: ``` stateDescriptor.writeMask = { red: false, all: true }; ``` With bitmasks there is a logical answer. With dictionaries you'd have to refer to the specification. -- 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/issues/717#issuecomment-486015500
Received on Tuesday, 23 April 2019 23:53:38 UTC