Package-level declarations
Types
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
The callback mode controls how a callback for an asynchronous operation may be fired. See Asynchronous-Operations for how these are used.
An RGBA color. Represents a f32, i32, or u32 color using DoubleAsSupertype.
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
Describes how frames are composited with other contents on the screen when wgpuSurfacePresent is called.
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
See WGPURequestAdapterOptions::featureLevel.
TODO
TODO
TODO
TODO
Opaque handle to an asynchronous operation. See Asynchronous-Operations for more information.
Struct holding a future to wait on, and a completed boolean flag.
TODO
TODO
Features enabled on the WGPUInstance
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
Describes when and in which order frames are presented on the screen when wgpuSurfacePresent is called.
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
Status code returned (synchronously) from many operations. Generally indicates an invalid input like an unknown enum value or OutStructChainError. Read the function's documentation for specific error conditions.
TODO
TODO
TODO
TODO
TODO
TODO
TODO
An object used to continuously present image data to the user, see @ref Surfaces for more details.
Filled by wgpuSurfaceGetCapabilities with what's supported for wgpuSurfaceConfigure for a pair of WGPUSurface and WGPUAdapter.
Extension of WGPUSurfaceConfiguration for color spaces and HDR.
Options to wgpuSurfaceConfigure for defining how a WGPUSurface will be rendered to and presented to the user. See Surface-Configuration for more details.
The root descriptor for the creation of an WGPUSurface with wgpuInstanceCreateSurface. It isn't sufficient by itself and must have one of the WGPUSurfaceSource* in its chain. See Surface-Creation for more details.
The status enum for wgpuSurfaceGetCurrentTexture.
Chained in WGPUSurfaceDescriptor to make an WGPUSurface wrapping an Android ANativeWindow.
Chained in WGPUSurfaceDescriptor to make an WGPUSurface wrapping a CAMetalLayer.
Chained in WGPUSurfaceDescriptor to make an WGPUSurface wrapping a Wayland wl_surface.
Chained in WGPUSurfaceDescriptor to make an WGPUSurface wrapping a Windows HWND.
Chained in WGPUSurfaceDescriptor to make an WGPUSurface wrapping an XCB xcb_window_t.
Chained in WGPUSurfaceDescriptor to make an WGPUSurface wrapping an Xlib Window.
Queried each frame from a WGPUSurface to get a WGPUTexture to render to along with some metadata. See Surface-Presenting for more details.
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
If attributes is empty and stepMode is WGPUVertexStepMode.Undefined, indicates a "hole" in the parent WGPUVertexState.buffers array, with behavior equivalent to null in the JS API.
TODO
TODO
TODO
Status returned from a call to ::wgpuInstanceWaitAny.
TODO
Functions
Get the list of WGPUFeatureName values supported by the adapter.
TODO
TODO
TODO
TODO
TODO
TODO
TODO
Returns a const pointer to beginning of the mapped range. It must not be written; writing to this range causes undefined behavior. See GetMappedRangeBehavior for error conditions and guarantees. This function is safe to call inside spontaneous callbacks (see CallbackReentrancy).
Returns a mutable pointer to beginning of the mapped range. See GetMappedRangeBehavior for error conditions and guarantees. This function is safe to call inside spontaneous callbacks (see CallbackReentrancy).
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
Create a WGPUInstance
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
Get the list of WGPUFeatureName values supported by the device.
TODO
TODO
TODO
Pops an error scope to the current thread's error scope stack, asynchronously returning the result. See ErrorScopes.
Pushes an error scope to the current thread's error scope stack. See ErrorScopes.
TODO
Query the supported instance capabilities.
Creates a WGPUSurface, see Surface-Creation for more details.
Get the list of WGPUWGSLLanguageFeatureName values supported by the instance.
TODO
Processes asynchronous events on this WGPUInstance, calling any callbacks for asynchronous operations created with WGPUCallbackMode.AllowProcessEvents.
TODO
Wait for at least one WGPUFuture in futures to complete, and call callbacks of the respective completed asynchronous operations.
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
Produces a DeviceError both content-timeline (size alignment) and device-timeline errors defined by the WebGPU specification.
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
Configures parameters for rendering to surface. Produces a DeviceError for all content-timeline errors defined by the WebGPU specification.
Provides information on how adapter is able to use surface. See Surface-Capabilities for more details.
Returns the WGPUTexture to render to surface this frame along with metadata on the frame. Returns NULL and WGPUSurfaceGetCurrentTextureStatus.Error if the surface is not configured.
Shows surface's current texture to the user. See Surface-Presenting for more details.
Modifies the label used to refer to surface.
Removes the configuration for surface. See Surface-Configuration for more details.
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO