Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
clarify similarity to WebGLRenderingContext
  • Loading branch information
kainino0x committed Apr 15, 2021
commit bbaa20249c5c5933ca18213c5512478796f3f3e5
6 changes: 4 additions & 2 deletions explainer/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ if (!adapter) return goToFallback();

A WebGPU "device" (`GPUDevice`) represents a connection to a WebGPU implementation, as well as
an arena for all WebGPU objects created from it (textures, command buffers, etc.)
All WebGPU usage is done through a WebGPU "device" (`GPUDevice`).
A device is similar to a `WebGLRenderingContext`, but is **not** associated with a canvas object.
All WebGPU usage is done through a WebGPU "device" (`GPUDevice`) or objects created from it.
In this sense, it serves a subset of the purpose of `WebGLRenderingContext`; however, unlike
`WebGLRenderingContext`, it is not associated with a canvas object, and most commands are
issued through "child" objects.

To get a device, an application calls `adapter.requestDevice()`, optionally passing a descriptor
which enables additional optional capabilities (features and limits).
Expand Down