Class Instance
Context for all other wgpu objects. Instance of wgpu.
class Instance
;
This is the first thing you create when using wgpu. Its primary use is to create Adapters and Surfaces.
Does not have to be kept alive.
Fields
| Name | Type | Description |
|---|---|---|
id
|
__C | Handle identifier. |
Properties
| Name | Type | Description |
|---|---|---|
adapters[set]
|
Adapter[] | Retrieves all available Adapters that match the given Backends.
|
report[get]
|
__C |
Methods
| Name | Description |
|---|---|
create
(backends)
|
Create a new instance of wgpu. |
destroy
()
|
Release the given handle. |
requestAdapter
(powerPreference, backendType, forceFallbackAdapter)
|
Retrieves a new Adapter, asynchronously. |