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

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

Functions

WGPUBindGroup wgpuDeviceCreateBindGroup (WGPUDevice device, WGPUBindGroupDescriptor const *descriptor)
 
WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout (WGPUDevice device, WGPUBindGroupLayoutDescriptor const *descriptor)
 
WGPUBuffer wgpuDeviceCreateBuffer (WGPUDevice device, WGPUBufferDescriptor const *descriptor)
 
WGPUCommandEncoder wgpuDeviceCreateCommandEncoder (WGPUDevice device, WGPUCommandEncoderDescriptor const *descriptor)
 
WGPUComputePipeline wgpuDeviceCreateComputePipeline (WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor)
 
WGPUFuture wgpuDeviceCreateComputePipelineAsync (WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor, WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo)
 
WGPUPipelineLayout wgpuDeviceCreatePipelineLayout (WGPUDevice device, WGPUPipelineLayoutDescriptor const *descriptor)
 
WGPUQuerySet wgpuDeviceCreateQuerySet (WGPUDevice device, WGPUQuerySetDescriptor const *descriptor)
 
WGPURenderBundleEncoder wgpuDeviceCreateRenderBundleEncoder (WGPUDevice device, WGPURenderBundleEncoderDescriptor const *descriptor)
 
WGPURenderPipeline wgpuDeviceCreateRenderPipeline (WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor)
 
WGPUFuture wgpuDeviceCreateRenderPipelineAsync (WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo)
 
WGPUSampler wgpuDeviceCreateSampler (WGPUDevice device, WGPUSamplerDescriptor const *descriptor)
 
WGPUShaderModule wgpuDeviceCreateShaderModule (WGPUDevice device, WGPUShaderModuleDescriptor const *descriptor)
 
WGPUTexture wgpuDeviceCreateTexture (WGPUDevice device, WGPUTextureDescriptor const *descriptor)
 
void wgpuDeviceDestroy (WGPUDevice device)
 
WGPUStatus wgpuDeviceGetAdapterInfo (WGPUDevice device, WGPUAdapterInfo *adapterInfo)
 
void wgpuDeviceGetFeatures (WGPUDevice device, WGPUSupportedFeatures *features)
 
WGPUStatus wgpuDeviceGetLimits (WGPUDevice device, WGPULimits *limits)
 
WGPUFuture wgpuDeviceGetLostFuture (WGPUDevice device)
 
WGPUQueue wgpuDeviceGetQueue (WGPUDevice device)
 
WGPUBool wgpuDeviceHasFeature (WGPUDevice device, WGPUFeatureName feature)
 
WGPUFuture wgpuDevicePopErrorScope (WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo)
 
void wgpuDevicePushErrorScope (WGPUDevice device, WGPUErrorFilter filter)
 
void wgpuDeviceSetLabel (WGPUDevice device, WGPUStringView label)
 
void wgpuDeviceAddRef (WGPUDevice device)
 
void wgpuDeviceRelease (WGPUDevice device)
 

Detailed Description

Functions whose first argument has type WGPUDevice.

Function Documentation

◆ wgpuDeviceGetAdapterInfo()

WGPUStatus wgpuDeviceGetAdapterInfo ( WGPUDevice device,
WGPUAdapterInfo * adapterInfo )
Parameters
adapterInfoThis parameter is Returned with Ownership.
Returns
Indicates if there was an Out-Struct-Chain Error.

◆ wgpuDeviceGetFeatures()

void wgpuDeviceGetFeatures ( WGPUDevice device,
WGPUSupportedFeatures * features )

Get the list of WGPUFeatureName values supported by the device.

Parameters
featuresThis parameter is Returned with Ownership.

◆ wgpuDeviceGetLimits()

WGPUStatus wgpuDeviceGetLimits ( WGPUDevice device,
WGPULimits * limits )
Returns
Indicates if there was an Out-Struct-Chain Error.

◆ wgpuDeviceGetLostFuture()

WGPUFuture wgpuDeviceGetLostFuture ( WGPUDevice device)
Returns
The WGPUFuture for the device-lost event of the device.