Add a way of setting the initial label for the default queue#2645
Add a way of setting the initial label for the default queue#2645litherum merged 1 commit intogpuweb:mainfrom
Conversation
|
This strikes me as a little awkward, but otherwise fine. I suppose we could instead specify something like, the queue's initial label is always |
|
I agree with Kai. The functionality isn't bad, but it's an usual place to put it. Obviously there's not an alternative, however, since the queue is created with the device. A couple of thoughts:
adapter.requestDevice({
requiredFeatures: [],
defaultQueue: {
label: 'myQueue',
theoreticalFoo: 'bar'
},
}); |
|
Good thoughts, I agree with both. I'm OK with either leaving this out entirely or going ahead and adding a queue descriptor inside the device descriptor. |
1c6ac3d to
3bfeb72
Compare
|
I've updated the PR to add a |
toji
left a comment
There was a problem hiding this comment.
Perfect! Kai and I talked about this yesterday and agree this is thr right path forward, glad to see you had it ready to go!
LGTM with one very minor change request.
spec/index.bs
Outdated
| dictionary GPUDeviceDescriptor : GPUObjectDescriptorBase { | ||
| sequence<GPUFeatureName> requiredFeatures = []; | ||
| record<DOMString, GPUSize64> requiredLimits = {}; | ||
| GPUQueueDescriptor defaultQueueDescriptor = {}; |
There was a problem hiding this comment.
Elsewhere in the spec even when we have nested descriptors we don't refer to them as such, so I have a mild preference for leaving the name here as simply defaultQueue.
spec/index.bs
Outdated
| dictionary GPUDeviceDescriptor : GPUObjectDescriptorBase { | ||
| sequence<GPUFeatureName> requiredFeatures = []; | ||
| record<DOMString, GPUSize64> requiredLimits = {}; | ||
| GPUQueueDescriptor defaultQueueDescriptor = {}; |
3bfeb72 to
b938754
Compare
Preview | Diff