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

NameTypeDescription
id __C.WGPUInstanceImpl*Handle identifier.

Properties

NameTypeDescription
adapters[set] Adapter[]Retrieves all available Adapters that match the given Backends.
report[get] __C.WGPUGlobalReport

Methods

NameDescription
create (backends) Create a new instance of wgpu.
destroy () Release the given handle.
requestAdapter (powerPreference, backendType, forceFallbackAdapter) Retrieves a new Adapter, asynchronously.

See Also

wgpu::Instance