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

◆ wgpuDeviceCreateBindGroup()

WGPUBindGroup wgpuDeviceCreateBindGroup ( WGPUDevice device,
WGPUBindGroupDescriptor const * descriptor )
Returns
This value is Returned with Ownership.

◆ wgpuDeviceCreateBindGroupLayout()

WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout ( WGPUDevice device,
WGPUBindGroupLayoutDescriptor const * descriptor )
Returns
This value is Returned with Ownership.

◆ wgpuDeviceCreateBuffer()

WGPUBuffer wgpuDeviceCreateBuffer ( WGPUDevice device,
WGPUBufferDescriptor const * descriptor )

TODO

If WGPUBufferDescriptor::mappedAtCreation is true and the mapping allocation fails, returns NULL.

Returns
This value is Returned with Ownership.

◆ wgpuDeviceCreateCommandEncoder()

WGPUCommandEncoder wgpuDeviceCreateCommandEncoder ( WGPUDevice device,
WGPUCommandEncoderDescriptor const * descriptor )
Returns
This value is Returned with Ownership.

◆ wgpuDeviceCreateComputePipeline()

WGPUComputePipeline wgpuDeviceCreateComputePipeline ( WGPUDevice device,
WGPUComputePipelineDescriptor const * descriptor )
Returns
This value is Returned with Ownership.

◆ wgpuDeviceCreateComputePipelineAsync()

WGPUFuture wgpuDeviceCreateComputePipelineAsync ( WGPUDevice device,
WGPUComputePipelineDescriptor const * descriptor,
WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo )

◆ wgpuDeviceCreatePipelineLayout()

WGPUPipelineLayout wgpuDeviceCreatePipelineLayout ( WGPUDevice device,
WGPUPipelineLayoutDescriptor const * descriptor )
Returns
This value is Returned with Ownership.

◆ wgpuDeviceCreateQuerySet()

WGPUQuerySet wgpuDeviceCreateQuerySet ( WGPUDevice device,
WGPUQuerySetDescriptor const * descriptor )
Returns
This value is Returned with Ownership.

◆ wgpuDeviceCreateRenderBundleEncoder()

WGPURenderBundleEncoder wgpuDeviceCreateRenderBundleEncoder ( WGPUDevice device,
WGPURenderBundleEncoderDescriptor const * descriptor )
Returns
This value is Returned with Ownership.

◆ wgpuDeviceCreateRenderPipeline()

WGPURenderPipeline wgpuDeviceCreateRenderPipeline ( WGPUDevice device,
WGPURenderPipelineDescriptor const * descriptor )
Returns
This value is Returned with Ownership.

◆ wgpuDeviceCreateRenderPipelineAsync()

WGPUFuture wgpuDeviceCreateRenderPipelineAsync ( WGPUDevice device,
WGPURenderPipelineDescriptor const * descriptor,
WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo )

◆ wgpuDeviceCreateSampler()

WGPUSampler wgpuDeviceCreateSampler ( WGPUDevice device,
WGPUSamplerDescriptor const * descriptor )
Returns
This value is Returned with Ownership.

◆ wgpuDeviceCreateShaderModule()

WGPUShaderModule wgpuDeviceCreateShaderModule ( WGPUDevice device,
WGPUShaderModuleDescriptor const * descriptor )
Returns
This value is Returned with Ownership.

◆ wgpuDeviceCreateTexture()

WGPUTexture wgpuDeviceCreateTexture ( WGPUDevice device,
WGPUTextureDescriptor const * descriptor )
Returns
This value is Returned with Ownership.

◆ wgpuDeviceDestroy()

void wgpuDeviceDestroy ( WGPUDevice device)

◆ 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.

◆ wgpuDeviceGetQueue()

WGPUQueue wgpuDeviceGetQueue ( WGPUDevice device)
Returns
This value is Returned with Ownership.

◆ wgpuDeviceHasFeature()

WGPUBool wgpuDeviceHasFeature ( WGPUDevice device,
WGPUFeatureName feature )

◆ wgpuDevicePopErrorScope()

WGPUFuture wgpuDevicePopErrorScope ( WGPUDevice device,
WGPUPopErrorScopeCallbackInfo callbackInfo )

Pops an error scope to the current thread's error scope stack, asynchronously returning the result. See Error Scopes.

◆ wgpuDevicePushErrorScope()

void wgpuDevicePushErrorScope ( WGPUDevice device,
WGPUErrorFilter filter )

Pushes an error scope to the current thread's error scope stack. See Error Scopes.

◆ wgpuDeviceSetLabel()

void wgpuDeviceSetLabel ( WGPUDevice device,
WGPUStringView label )

◆ wgpuDeviceAddRef()

void wgpuDeviceAddRef ( WGPUDevice device)

◆ wgpuDeviceRelease()

void wgpuDeviceRelease ( WGPUDevice device)