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 Adapter
s and Surface
s.
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 Adapter s 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. |