WebGPU Headers
The WebGPU C API
 
All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
Loading...
Searching...
No Matches
Global Functions

Functions that are not specific to an object. More...

Functions

WGPUInstance wgpuCreateInstance (WGPUInstanceDescriptor const *descriptor)
 
void wgpuGetInstanceFeatures (WGPUSupportedInstanceFeatures *features)
 
WGPUStatus wgpuGetInstanceLimits (WGPUInstanceLimits *limits)
 
WGPUBool wgpuHasInstanceFeature (WGPUInstanceFeatureName feature)
 
WGPUProc wgpuGetProcAddress (WGPUStringView procName)
 

Detailed Description

Functions that are not specific to an object.

Function Documentation

◆ wgpuCreateInstance()

WGPUInstance wgpuCreateInstance ( WGPUInstanceDescriptor const * descriptor)

Create a WGPUInstance

Returns
This value is Returned with Ownership.

◆ wgpuGetInstanceFeatures()

void wgpuGetInstanceFeatures ( WGPUSupportedInstanceFeatures * features)

Get the list of WGPUInstanceFeatureName values supported by the instance.

Parameters
featuresThis parameter is Returned with Ownership.

◆ wgpuGetInstanceLimits()

WGPUStatus wgpuGetInstanceLimits ( WGPUInstanceLimits * limits)

Get the limits supported by the instance.

Returns
Indicates if there was an Out-Struct-Chain Error.

◆ wgpuHasInstanceFeature()

WGPUBool wgpuHasInstanceFeature ( WGPUInstanceFeatureName feature)

Check whether a particular WGPUInstanceFeatureName is supported by the instance.

◆ wgpuGetProcAddress()

WGPUProc wgpuGetProcAddress ( WGPUStringView procName)

Returns the "procedure address" (function pointer) of the named function. The result must be cast to the appropriate proc pointer type.