Skip to content

Commit

Permalink
Expose limits on the adapter (gpuweb#489)
Browse files Browse the repository at this point in the history
There's no reason to leave this out anymore.
Implementations can implement it whenever they want.
  • Loading branch information
kainino0x authored and Kangz committed Nov 11, 2019
1 parent 37812f5 commit 53bf767
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spec/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ and exposes its capabilities (extensions and limits).
interface GPUAdapter {
readonly attribute DOMString name;
readonly attribute object extensions;
//readonly attribute GPULimits limits; Don't expose higher limits for now.
readonly attribute object limits;

// May reject with DOMException // TODO: DOMException("OperationError")?
Promise<GPUDevice> requestDevice(optional GPUDeviceDescriptor descriptor = {});
Expand All @@ -354,6 +354,11 @@ interface GPUAdapter {
not by the [=adapter=], it will be `false`.
- If an extension is supported by the user agent and
by the [=adapter=], it will be `true`.

: <dfn>limits</dfn>
::
A {{GPULimits}} object which exposes the maximum limits supported
by the adapter.
</dl>

{{GPUAdapter}} also has the following internal slots:
Expand Down

0 comments on commit 53bf767

Please sign in to comment.