Repository navigation
Replace GPULimits with GPUAdapterLimits and record<> - #1312
Conversation
| The default is used if a value is not explicitly specified in {{GPUDeviceDescriptor/limits}}. | ||
|
|
||
| <table class="data no-colspan-center" dfn-type=dict-member dfn-for=GPULimits> | ||
| <table class="data no-colspan-center" dfn-type=attribute dfn-for="supported limits"> |
There was a problem hiding this comment.
Internally, the limits structure is still technically duplicated between this [=supported limits=] and {{GPUAdapterLimits}}, but it doesn't end up taking any more room in the spec. (Except note we now have no definitions for the members of GPUAdapterLimits; we might want to link them in here? Alternatively, we can use GPUAdapterLimits (rename to GPUSupportedLimits) everywhere instead of [=supported limits=].)
| dictionary GPUDeviceDescriptor : GPUObjectDescriptorBase { | ||
| sequence<GPUFeatureName> features = []; | ||
| GPULimits limits = {}; | ||
| record<DOMString, GPUSize32> limits = {}; |
There was a problem hiding this comment.
not all limits will be u32 though. Maybe this should be Number?
There was a problem hiding this comment.
As mentioned in the comment, we can change this later by changing it to double or any and writing out the type conversions explicitly for each limit. It's easier to have this now so we don't have to write that now.
This PR adds unimplemented stub tests for the `acosh` builtin. Issue: gpuweb#1221
Preview | Diff