WebGPU Headers
The WebGPU C API
 
Loading...
Searching...
No Matches
WGPUInstance methods

Functions whose first argument has type WGPUInstance. More...

Functions

WGPUSurface wgpuInstanceCreateSurface (WGPUInstance instance, WGPUSurfaceDescriptor const *descriptor)
 
WGPUStatus wgpuInstanceGetWGSLLanguageFeatures (WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures *features)
 
WGPUBool wgpuInstanceHasWGSLLanguageFeature (WGPUInstance instance, WGPUWGSLLanguageFeatureName feature)
 
void wgpuInstanceProcessEvents (WGPUInstance instance)
 
WGPUFuture wgpuInstanceRequestAdapter (WGPUInstance instance, WGPURequestAdapterOptions const *options, WGPURequestAdapterCallbackInfo callbackInfo)
 
WGPUWaitStatus wgpuInstanceWaitAny (WGPUInstance instance, size_t futureCount, WGPUFutureWaitInfo *futures, uint64_t timeoutNS)
 
void wgpuInstanceAddRef (WGPUInstance instance)
 
void wgpuInstanceRelease (WGPUInstance instance)
 

Detailed Description

Functions whose first argument has type WGPUInstance.

Function Documentation

◆ wgpuInstanceCreateSurface()

WGPUSurface wgpuInstanceCreateSurface ( WGPUInstance instance,
WGPUSurfaceDescriptor const * descriptor )

Creates a WGPUSurface, see Surface Creation for more details.

Parameters
descriptorThe description of the WGPUSurface to create.
Returns
A new WGPUSurface for this descriptor (or an error WGPUSurface).

◆ wgpuInstanceGetWGSLLanguageFeatures()

WGPUStatus wgpuInstanceGetWGSLLanguageFeatures ( WGPUInstance instance,
WGPUSupportedWGSLLanguageFeatures * features )

Get the list of WGPUWGSLLanguageFeatureName values supported by the instance.

◆ wgpuInstanceProcessEvents()

void wgpuInstanceProcessEvents ( WGPUInstance instance)

Processes asynchronous events on this WGPUInstance, calling any callbacks for asynchronous operations created with WGPUCallbackMode_AllowProcessEvents.

See wgpuInstanceProcessEvents for more information.

◆ wgpuInstanceWaitAny()

WGPUWaitStatus wgpuInstanceWaitAny ( WGPUInstance instance,
size_t futureCount,
WGPUFutureWaitInfo * futures,
uint64_t timeoutNS )

Wait for at least one WGPUFuture in futures to complete, and call callbacks of the respective completed asynchronous operations.

See wgpuInstanceWaitAny for more information.