Callbacks through which asynchronous functions return. More...
Typedefs | |
| typedef void(* | WGPUBufferMapCallback) (WGPUMapAsyncStatus status, WGPUStringView message, void *userdata1, void *userdata2) |
| typedef void(* | WGPUCompilationInfoCallback) (WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const *compilationInfo, void *userdata1, void *userdata2) |
| typedef void(* | WGPUCreateComputePipelineAsyncCallback) (WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2) |
| typedef void(* | WGPUCreateRenderPipelineAsyncCallback) (WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2) |
| typedef void(* | WGPUDeviceLostCallback) (WGPUDevice const *device, WGPUDeviceLostReason reason, WGPUStringView message, void *userdata1, void *userdata2) |
| typedef void(* | WGPUPopErrorScopeCallback) (WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2) |
| typedef void(* | WGPUQueueWorkDoneCallback) (WGPUQueueWorkDoneStatus status, WGPUStringView message, void *userdata1, void *userdata2) |
| typedef void(* | WGPURequestAdapterCallback) (WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, void *userdata1, void *userdata2) |
| typedef void(* | WGPURequestDeviceCallback) (WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, void *userdata1, void *userdata2) |
| typedef void(* | WGPUUncapturedErrorCallback) (WGPUDevice const *device, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2) |
Callbacks through which asynchronous functions return.
| typedef void(* WGPUBufferMapCallback) (WGPUMapAsyncStatus status, WGPUStringView message, void *userdata1, void *userdata2) |
See also Callback Error.
| message | This parameter is Passed without Ownership. |
| typedef void(* WGPUCompilationInfoCallback) (WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const *compilationInfo, void *userdata1, void *userdata2) |
See also Callback Error.
| compilationInfo | This argument contains multiple Implementation-Allocated Struct Chain roots. Arbitrary chains must be handled gracefully by the application! This parameter is Passed without Ownership. |
| typedef void(* WGPUCreateComputePipelineAsyncCallback) (WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2) |
See also Callback Error.
| pipeline | This parameter is Passed with Ownership. |
| typedef void(* WGPUCreateRenderPipelineAsyncCallback) (WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2) |
See also Callback Error.
| pipeline | This parameter is Passed with Ownership. |
| typedef void(* WGPUDeviceLostCallback) (WGPUDevice const *device, WGPUDeviceLostReason reason, WGPUStringView message, void *userdata1, void *userdata2) |
See also Callback Error.
| device | Pointer to the device which was lost. This is always a non-null pointer. The pointed-to WGPUDevice will be null if, and only if, either: (1) The reason is WGPUDeviceLostReason_FailedCreation. (2) The last ref of the device has been (or is being) released: see Releasing a Device object. This parameter is Passed without Ownership. |
| message | This parameter is Passed without Ownership. |
| typedef void(* WGPUPopErrorScopeCallback) (WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2) |
See also Callback Error.
| status | See WGPUPopErrorScopeStatus. |
| type | The type of the error caught by the scope, or WGPUErrorType_NoError if there was none. If the status is not WGPUPopErrorScopeStatus_Success, this is WGPUErrorType_NoError. |
| message | If the status is not WGPUPopErrorScopeStatus_Success or the type is not WGPUErrorType_NoError, this is a non-empty Localizable Human-Readable Message String; otherwise, this is an empty string. This parameter is Passed without Ownership. |
| typedef void(* WGPUQueueWorkDoneCallback) (WGPUQueueWorkDoneStatus status, WGPUStringView message, void *userdata1, void *userdata2) |
See also Callback Error.
| status | See WGPUQueueWorkDoneStatus. |
| message | If the status is not WGPUQueueWorkDoneStatus_Success, this is a non-empty Localizable Human-Readable Message String; otherwise, this is an empty string. This parameter is Passed without Ownership. |
| typedef void(* WGPURequestAdapterCallback) (WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, void *userdata1, void *userdata2) |
See also Callback Error.
| adapter | This parameter is Passed with Ownership. |
| message | This parameter is Passed without Ownership. |
| typedef void(* WGPURequestDeviceCallback) (WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, void *userdata1, void *userdata2) |
See also Callback Error.
| device | This parameter is Passed with Ownership. |
| message | This parameter is Passed without Ownership. |
| typedef void(* WGPUUncapturedErrorCallback) (WGPUDevice const *device, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2) |
See also Callback Error.
| device | This parameter is Passed without Ownership. |
| message | This parameter is Passed without Ownership. |